You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by "McGibbney, Lewis John" <Le...@gcu.ac.uk> on 2011/05/22 13:41:19 UTC

Setting classpath in Eyeball

Hi list,

Just checked out eyeball trunk Revision 1125822 from new Apache SVN repository but I'm having problems setting my classpath!

I've looked on the old Yahoo dev list but can't get an answer so I know it i something stupid I'm doing. I get the following log output after adding jars as instructed in classpath.text

lewis@lewis-01:~/trunk$ set CLASSPATH=lib/antlr-2.7.5.jar;lib/arq-extra.jar;lib/arq.jar;lib/commons-logging-1.1.1.jar;lib/commons-logging.jar;lib/concurrent.jar;lib/eyeball.jar;lib/icu4j_3_4.jar;lib/iri.jar;lib/jazzy-core.jar;lib/jena.jar;lib/jenatest.jar;lib/json.jar;lib/junit4.jar;lib/log4j-1.2.12.jar;lib/slf4j-api-1.5.6.jar;lib/slf4j-log4j12-1.5.6.jar;lib/stax-api-1.0.jar;lib/wstx-asl-3.0.0.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xsdlib.jar
bash: lib/arq-extra.jar: Permission denied
bash: lib/arq.jar: Permission denied
bash: lib/commons-logging-1.1.1.jar: Permission denied
bash: lib/commons-logging.jar: Permission denied
bash: lib/concurrent.jar: Permission denied
bash: lib/eyeball.jar: Permission denied
bash: lib/icu4j_3_4.jar: Permission denied
bash: lib/iri.jar: Permission denied
bash: lib/jazzy-core.jar: Permission denied
bash: lib/jena.jar: Permission denied
bash: lib/jenatest.jar: Permission denied
bash: lib/json.jar: Permission denied
bash: lib/junit4.jar: Permission denied
bash: lib/log4j-1.2.12.jar: Permission denied
bash: lib/slf4j-api-1.5.6.jar: Permission denied
bash: lib/slf4j-log4j12-1.5.6.jar: Permission denied
bash: lib/stax-api-1.0.jar: Permission denied
bash: lib/wstx-asl-3.0.0.jar: Permission denied
bash: lib/xercesImpl.jar: Permission denied
bash: lib/xml-apis.jar: Permission denied
bash: lib/xsdlib.jar: Permission denied
lewis@lewis-01:~/trunk$

I then tried

lewis@lewis-01:~/trunk$ set CLASSPATH=lib/*
lewis@lewis-01:~/trunk$ ant test
Buildfile: /home/lewis/trunk/build.xml

It appears that I've added the jars in /lib to the classpath. I then test with ant with the following failures

[junit] Null Test:      Caused an ERROR
    [junit] com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
    [junit] java.lang.ClassNotFoundException: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    [junit]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:186)
    [junit]
    [junit]

BUILD FAILED
/home/lewis/trunk/build.xml:146: Test com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector failed

Total time: 42 seconds

I hope that this has something to do with me not adding all jars to the classpath but if not then can I get some pointers.

Any help to get me going with this would be appreciated. Thank you.

Lewis

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

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Thank you for all posts helping me to solve this.

Right enough it was a case of rearranging to allow ant to use the correct junit jars for testing.

    [junit] ------------- Standard Error -----------------
    [junit] (Note: statistician test disabled; don't worry about this.)
    [junit] ------------- ---------------- ---------------
    [junit] Running com.hp.hpl.jena.eyeball.web.statistics.test.TestRunReports
    [junit] Testsuite: com.hp.hpl.jena.eyeball.web.statistics.test.TestRunReports
    [junit] Tests run: 0, Failures: 0, Errors: 0, Time elapsed: 0.006 sec
    [junit] Tests run: 0, Failures: 0, Errors: 0, Time elapsed: 0.006 sec
    [junit]

BUILD SUCCESSFUL
Total time: 1 minute 14 seconds

Thank you

________________________________________
From: Ian Dickinson [ian@epimorphics.com]
Sent: 23 May 2011 16:10
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

On 23/05/11 15:52, McGibbney, Lewis John wrote:
> This is latest available version. Is it possible that a recent ant
> branch rev will test with JUnit4?
Ant has supported Junit4 since (I believe) 1.6.5. You just need to
ensure that Ant can see the appropriate junit jars, as per:

http://ant.apache.org/manual/Tasks/junit.html

My guess is that your Ant installation is seeing the JUnit 3.x jars first.

Ian

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

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
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 [andy.seaborne@epimorphics.com]
Sent: 24 May 2011 17:55
To: jena-users@incubator.apache.org
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

Re: Setting classpath in Eyeball

Posted by Andy Seaborne <an...@epimorphics.com>.

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

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
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 [ian@epimorphics.com]
Sent: 24 May 2011 17:38
To: jena-users@incubator.apache.org
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:ian@epimorphics.com        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

Re: Setting classpath in Eyeball

Posted by Ian Dickinson <ia...@epimorphics.com>.
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:ian@epimorphics.com        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


RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
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/

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.
________________________________________
From: Ian Dickinson [ian@epimorphics.com]
Sent: 23 May 2011 16:10
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

On 23/05/11 15:52, McGibbney, Lewis John wrote:
> This is latest available version. Is it possible that a recent ant
> branch rev will test with JUnit4?
Ant has supported Junit4 since (I believe) 1.6.5. You just need to
ensure that Ant can see the appropriate junit jars, as per:

http://ant.apache.org/manual/Tasks/junit.html

My guess is that your Ant installation is seeing the JUnit 3.x jars first.

Ian

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

Re: Setting classpath in Eyeball

Posted by Ian Dickinson <ia...@epimorphics.com>.
On 23/05/11 15:52, McGibbney, Lewis John wrote:
> This is latest available version. Is it possible that a recent ant
> branch rev will test with JUnit4?
Ant has supported Junit4 since (I believe) 1.6.5. You just need to 
ensure that Ant can see the appropriate junit jars, as per:

http://ant.apache.org/manual/Tasks/junit.html

My guess is that your Ant installation is seeing the JUnit 3.x jars first.

Ian

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
This is latest available version. Is it possible that a recent ant branch rev will test with JUnit4?
________________________________________
From: McGibbney, Lewis John [Lewis.McGibbney@gcu.ac.uk]
Sent: 23 May 2011 15:42
To: jena-users@incubator.apache.org
Subject: RE: Setting classpath in Eyeball

Hi Chris,

I'm using Apache Ant(TM) version 1.8.2 compiled on December 20 2010

Take it I need to upgrade. I'll checkout a newer version and get back on this one.

________________________________________
From: Chris Dollin [chris.dollin@epimorphics.com]
Sent: 23 May 2011 14:42
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

> Some additional output on the failing class
>
> [junit] Running com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Testsuite: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit]
>     [junit] Testcase: warning(junit.framework.TestSuite$1):     FAILED
>     [junit] Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit] junit.framework.AssertionFailedError: Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit]
>     [junit]

Hmm. That looks as though you're running a JUnit3 test engine,
but Eyeball uses (and ships with) JUnit4. How odd.

Which version of ant are you running? Maybe it needs a junit4.

Chris

--
"You're down as expendable. You don't get a weapon."    /Dark Lord of Derkholm/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

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

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

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Hi Chris,

I'm using Apache Ant(TM) version 1.8.2 compiled on December 20 2010

Take it I need to upgrade. I'll checkout a newer version and get back on this one.

________________________________________
From: Chris Dollin [chris.dollin@epimorphics.com]
Sent: 23 May 2011 14:42
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

> Some additional output on the failing class
>
> [junit] Running com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Testsuite: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit]
>     [junit] Testcase: warning(junit.framework.TestSuite$1):     FAILED
>     [junit] Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit] junit.framework.AssertionFailedError: Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit]
>     [junit]

Hmm. That looks as though you're running a JUnit3 test engine,
but Eyeball uses (and ships with) JUnit4. How odd.

Which version of ant are you running? Maybe it needs a junit4.

Chris

--
"You're down as expendable. You don't get a weapon."    /Dark Lord of Derkholm/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

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

Re: Setting classpath in Eyeball

Posted by Chris Dollin <ch...@epimorphics.com>.
> Some additional output on the failing class
> 
> [junit] Running com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Testsuite: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
>     [junit]
>     [junit] Testcase: warning(junit.framework.TestSuite$1):     FAILED
>     [junit] Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit] junit.framework.AssertionFailedError: Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
>     [junit]
>     [junit]

Hmm. That looks as though you're running a JUnit3 test engine,
but Eyeball uses (and ships with) JUnit4. How odd.

Which version of ant are you running? Maybe it needs a junit4.

Chris

-- 
"You're down as expendable. You don't get a weapon."    /Dark Lord of Derkholm/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Some additional output on the failing class

[junit] Running com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
    [junit] Testsuite: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.003 sec
    [junit]
    [junit] Testcase: warning(junit.framework.TestSuite$1):     FAILED
    [junit] Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
    [junit] junit.framework.AssertionFailedError: Class com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector has no public constructor TestCase(String name) or TestCase()
    [junit]
    [junit]

________________________________________
From: McGibbney, Lewis John [Lewis.McGibbney@gcu.ac.uk]
Sent: 23 May 2011 13:30
To: jena-users@incubator.apache.org
Subject: RE: Setting classpath in Eyeball

Hi Dave thanks for your comments.

I run any build test and get

BUILD FAILED
/home/lewis/trunk/build.xml:146: Test com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector failed

Total time: 30 seconds

However running a plain 'ant' from command line produces

lewis@lewis-desktop:~/trunk$ ant
Buildfile: /home/lewis/trunk/build.xml

init:
is this nromal behaviour
compile:
    [javac] /home/lewis/trunk/build.xml:62: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

jar:

build:

BUILD SUCCESSFUL
Total time: 0 seconds

It leaves me slightly confused... I'm sure that this is not normal behaviour.


________________________________________
From: Dave Reynolds [dave.e.reynolds@gmail.com]
Sent: 22 May 2011 14:34
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

On Sun, 2011-05-22 at 12:41 +0100, McGibbney, Lewis John wrote:
> Hi list,
>
> Just checked out eyeball trunk Revision 1125822 from new Apache SVN repository but I'm having problems setting my classpath!
>
> I've looked on the old Yahoo dev list but can't get an answer so I know it i something stupid I'm doing. I get the following log output after adding jars as instructed in classpath.text
>
> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/antlr-2.7.5.jar;lib/arq-extra.jar;lib/arq.jar;lib/commons-logging-1.1.1.jar;lib/commons-logging.jar;lib/concurrent.jar;lib/eyeball.jar;lib/icu4j_3_4.jar;lib/iri.jar;lib/jazzy-core.jar;lib/jena.jar;lib/jenatest.jar;lib/json.jar;lib/junit4.jar;lib/log4j-1.2.12.jar;lib/slf4j-api-1.5.6.jar;lib/slf4j-log4j12-1.5.6.jar;lib/stax-api-1.0.jar;lib/wstx-asl-3.0.0.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xsdlib.jar

The ';' separator character only applies in windows, in the unix world
use ':'. What's happening is that ';' ends the command in bash and the
shell is then trying to run the remaining entries as if they were
commands.

> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/*
> lewis@lewis-01:~/trunk$ ant test
> Buildfile: /home/lewis/trunk/build.xml
>
> It appears that I've added the jars in /lib to the classpath. I then test with ant with the following failures
>
> [junit] Null Test:      Caused an ERROR
>     [junit] com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] java.lang.ClassNotFoundException: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector

Setting the CLASSPATH shouldn't be necessary for ant, the build.xml does
it's own classpath setting.

Glancing at the build.xml it looks as if the "test" target is missing
some dependency declarations so the test classes aren't being compiled.

Try doing "ant build test".

Dave



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

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

RE: Setting classpath in Eyeball

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Hi Dave thanks for your comments.

I run any build test and get

BUILD FAILED
/home/lewis/trunk/build.xml:146: Test com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector failed

Total time: 30 seconds

However running a plain 'ant' from command line produces

lewis@lewis-desktop:~/trunk$ ant
Buildfile: /home/lewis/trunk/build.xml

init:
is this nromal behaviour
compile:
    [javac] /home/lewis/trunk/build.xml:62: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

jar:

build:

BUILD SUCCESSFUL
Total time: 0 seconds

It leaves me slightly confused... I'm sure that this is not normal behaviour.


________________________________________
From: Dave Reynolds [dave.e.reynolds@gmail.com]
Sent: 22 May 2011 14:34
To: jena-users@incubator.apache.org
Subject: Re: Setting classpath in Eyeball

On Sun, 2011-05-22 at 12:41 +0100, McGibbney, Lewis John wrote:
> Hi list,
>
> Just checked out eyeball trunk Revision 1125822 from new Apache SVN repository but I'm having problems setting my classpath!
>
> I've looked on the old Yahoo dev list but can't get an answer so I know it i something stupid I'm doing. I get the following log output after adding jars as instructed in classpath.text
>
> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/antlr-2.7.5.jar;lib/arq-extra.jar;lib/arq.jar;lib/commons-logging-1.1.1.jar;lib/commons-logging.jar;lib/concurrent.jar;lib/eyeball.jar;lib/icu4j_3_4.jar;lib/iri.jar;lib/jazzy-core.jar;lib/jena.jar;lib/jenatest.jar;lib/json.jar;lib/junit4.jar;lib/log4j-1.2.12.jar;lib/slf4j-api-1.5.6.jar;lib/slf4j-log4j12-1.5.6.jar;lib/stax-api-1.0.jar;lib/wstx-asl-3.0.0.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xsdlib.jar

The ';' separator character only applies in windows, in the unix world
use ':'. What's happening is that ';' ends the command in bash and the
shell is then trying to run the remaining entries as if they were
commands.

> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/*
> lewis@lewis-01:~/trunk$ ant test
> Buildfile: /home/lewis/trunk/build.xml
>
> It appears that I've added the jars in /lib to the classpath. I then test with ant with the following failures
>
> [junit] Null Test:      Caused an ERROR
>     [junit] com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] java.lang.ClassNotFoundException: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector

Setting the CLASSPATH shouldn't be necessary for ant, the build.xml does
it's own classpath setting.

Glancing at the build.xml it looks as if the "test" target is missing
some dependency declarations so the test classes aren't being compiled.

Try doing "ant build test".

Dave



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

Re: Setting classpath in Eyeball

Posted by Dave Reynolds <da...@gmail.com>.
On Sun, 2011-05-22 at 12:41 +0100, McGibbney, Lewis John wrote: 
> Hi list,
> 
> Just checked out eyeball trunk Revision 1125822 from new Apache SVN repository but I'm having problems setting my classpath!
> 
> I've looked on the old Yahoo dev list but can't get an answer so I know it i something stupid I'm doing. I get the following log output after adding jars as instructed in classpath.text
> 
> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/antlr-2.7.5.jar;lib/arq-extra.jar;lib/arq.jar;lib/commons-logging-1.1.1.jar;lib/commons-logging.jar;lib/concurrent.jar;lib/eyeball.jar;lib/icu4j_3_4.jar;lib/iri.jar;lib/jazzy-core.jar;lib/jena.jar;lib/jenatest.jar;lib/json.jar;lib/junit4.jar;lib/log4j-1.2.12.jar;lib/slf4j-api-1.5.6.jar;lib/slf4j-log4j12-1.5.6.jar;lib/stax-api-1.0.jar;lib/wstx-asl-3.0.0.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xsdlib.jar

The ';' separator character only applies in windows, in the unix world
use ':'. What's happening is that ';' ends the command in bash and the
shell is then trying to run the remaining entries as if they were
commands.

> lewis@lewis-01:~/trunk$ set CLASSPATH=lib/*
> lewis@lewis-01:~/trunk$ ant test
> Buildfile: /home/lewis/trunk/build.xml
> 
> It appears that I've added the jars in /lib to the classpath. I then test with ant with the following failures
> 
> [junit] Null Test:      Caused an ERROR
>     [junit] com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector
>     [junit] java.lang.ClassNotFoundException: com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector

Setting the CLASSPATH shouldn't be necessary for ant, the build.xml does
it's own classpath setting.

Glancing at the build.xml it looks as if the "test" target is missing
some dependency declarations so the test classes aren't being compiled.

Try doing "ant build test".

Dave