Results 1 to 3 of 3
Hi
i m new to java.
I m using Aperture which is a java framework for extracting and querying full-text content and metadata from various information systems and i wanna ...
- 05-03-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 2
java programming error
Hi
i m new to java.
I m using Aperture which is a java framework for extracting and querying full-text content and metadata from various information systems and i wanna to run it on fedora core 4 environment having jdk1.5.0_22 installed on it. when i run it gives me an error mentioned below:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/semanticdesktop/aperture/examples/filecrawler/CrawlerFrame
dis Crawlerframe class is placed in .jar file in example named sub-folder of Aperture directory.
this code runs successfully on windows 7 having jdk1.6.0_25 installed on it.
ny help would b appreciated.
thanx
- 05-04-2011 #2Just Joined!
- Join Date
- Dec 2009
- Location
- Maryland, USA
- Posts
- 83
If the executable .jar file ran successfully on Windows, it should run on Fedora, but I'm not sure that's what you meant.
You understand the error, the JRE can't find CrawlerFrame. You specify where CrawlerFrame is, and that doesn't sound right to me, unless the .jar was built from an environment that knew that CrawlerFrame was a necessary library and built the .jar with a correct path to it.
- 05-04-2011 #3Just Joined!
- Join Date
- May 2011
- Posts
- 2
Hi
first of all i would like to thank you for your time and helping me to solve dis problem.
nw cuming bck 2 d problem, actually i m running a script file named crawlerwindow.sh in a bin folder of Aperture whose contents are given below for your reference:
#!/bin/sh
. `dirname ${0}`/lcp.sh
java -classpath ${LOCALCLASSPATH} -Djava.util.logging.config.file=logging.properties org.semanticdesktop.aperture.examples.filecrawler. CrawlerFrame $*
i dnt knw much abt script language bt i guess here the path of d CrawlerFrame class is mentioned n lcp.sh file is in d bin folder only whose contents are like:
#!/bin/sh
APERTURE_HOME=`dirname "${0}"`/..
for i in ${APERTURE_HOME}/lib*.jar ${APERTURE_HOME}/example*.jar ${APERTURE_HOME}/optional/*.jar
do
# if the directory is empty, then it will return the input string
# this is stupid, so case for it
if [ -f "$i" ] ; then
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH="$i"
else
LOCALCLASSPATH="$i":"$LOCALCLASSPATH"
fi
fi
done
i've tried to run lcp.sh file alone n its running without giving ny error but when i run crawlerwindow.sh, it gives me d java exception which was mentioned in my first post.
thanx again!


Reply With Quote