Hi Andy,

It worked. This is a case of my unfamiliarity with syntax for passing 
parameters to java commands. At least if anyone else new to Eyeball experiences 
this they can get round it.

Thanks for this and much appreciated.

Lewis
________________________________________
From: Andy Seaborne [[email protected]]
Sent: 24 May 2011 17:55
To: [email protected]
Subject: Re: Setting classpath in Eyeball

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

Email has been scanned for viruses by Altman Technologies' email management 
service - www.altman.co.uk/emailsystems

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 
2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career 
Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

Reply via email to