On 24/05/11 16:50, McGibbney, Lewis John wrote:
I've just returned to this and I'm having bother trying out the -check param in 
jena.eyeball class.

I have java installed as follows
lewis@lewis-desktop:~/trunk$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1~10.04.1)
OpenJDK Server VM (build 19.0-b09, mixed mode)

I tried to add all of the jars in /lib to my classpath as follows

lewis@lewis-desktop:~/trunk$ export 
CLASSPATH=$CLASSPATH:/home/lewis/trunk/lib/*.jar

It would be:
export CLASSPATH=$CLASSPATH:'/home/lewis/trunk/lib/*'

Java 6 allows /* to mean all jars in a directory - use '' to stop the shell expanding the *

(yes - there is no ".jar")


java -cp '/home/lewis/trunk/lib/*' jena.eyeball ....

like this
lewis@lewis-desktop:~/trunk$ export CLASSPATH=$CLASSPATH:/home/lewis/trunk/lib/
and like this
lewis@lewis-desktop:~/trunk$ export CLASSPATH=$PATH:/home/lewis/trunk/lib/

Exception in thread "main" java.lang.NoClassDefFoundError: jena/eyeball
Caused by: java.lang.ClassNotFoundException: jena.eyeball
         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: jena.eyeball. Program will exit.

I apologise that this is obviously a trivial problem but it is starting to 
drive me crazy.

ARQ includes:

 ARQ/bin/make_classpath $DIR

which builds classpaths and hunts around for class  es directories as well.


-------------------
I did this:

Download eyeball:
https://sourceforge.net/projects/jena/files/Eyeball/Eyeball%202.3/eyeball-2.3.zip/download

~/Desktop >> unzip -q eyeball-2.3.zip

~/Desktop >> cd eyeball-2.3

~/Desktop/eyeball-2.3 >> ls
README.txt         build.xml  etc/       lib/     src/       testcases/
ReleaseNotes.text  doc/       examples/  mirror/  src-test/

~/Desktop/eyeball-2.3 >> java -cp 'lib/*' jena.eyeball -version
Eyeball 2.3RC1 (A Verbs Omen)


(I do not know why is it 2.3RC1)

        Andy

Reply via email to