Hi Ian and thanks for your help

lewis@lewis-desktop:~$ for f in /home/lewis/trunk/lib/*.jar
> do
> CLASSPATH=$CLASSPATH:$f
> done
lewis@lewis-desktop:~$ cd ~/trunk
lewis@lewis-desktop:~/trunk$ java jena.eyeball -check 
section6energydomestic2010rdf.owl
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 have my rdf dataset in ~/trunk...
It's as if the bash is not acknowledging the classpath variable command!

________________________________________
From: Ian Dickinson [[email protected]]
Sent: 24 May 2011 17:38
To: [email protected]
Subject: Re: Setting classpath in Eyeball

Hi Lewis,

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
> 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/

How about (I presume you're using bash):

for f in /home/lewis/trunk/lib/*.jar
do
  CLASSPATH=$CLASSPATH:$f
done

Ian

--
____________________________________________________________
Ian Dickinson                   Epimorphics Ltd, Bristol, UK
mailto:[email protected]        http://www.epimorphics.com
cell: +44-7786-850536              landline: +44-1275-399069
------------------------------------------------------------
Epimorphics Ltd.  is a limited company registered in England
(no. 7016688). Registered address: Court Lodge, 105 High St,
              Portishead, Bristol BS20 6PT, UK


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