On 24/07/12 19:28, ASPSA wrote:
Sorry, I wasn't clear.
No problem, and I appreciate your responses.

In addition to setting the environment, class and classpath variables:

Environment
----------------
JENAROOT = “<Apache Jena 2.7.2 distribution path>”

Exactly what is this set to?

[[
Error: Could not find or load main class <Apache Jena 2.7.2 distribution
path>\ARQ
]]

The ARQ part is wrong. There should be no capitalized ARQ - that looks more like an old (when ARQ was distributed separately) path.

Path
------
…other semicolon-delimited path entries…, followed by
<Apache Jena 2.7.2 distribution path>\bat; <Apache Jena 2.7.2 distribution 
path>\bin

bat or bin -- not both.


ClassPath
------------
…other semicolon-delimited path entries…, followed by
<Apache Jena 2.7.2 distribution path>\bat; <Apache Jena 2.7.2 distribution 
path>\bin

Not needed - the classpath is set by the scripts - have a look at arq.bat:

You will see:

[[
set JENA_CP="%JENAROOT%\lib\*;"
]]
and
[[
java %JVM_ARGS% %LOGGING% -cp %JENA_CP% arq.arq %*
]]

You can call the java command directly.



I also include additional classpath values as prescribed here: 
http://jena.sourceforge.net/ARQ/Tutorial/query1.html (under the section "Using the 
Java command line applications directly". Naturally, I added values commensurate 
with the aforementioned Jena release and rebooted by system for good measure.

jena.sourceforge.net is out-of-date.

Please use the jena.apache.org site.

If you go to :
http://jena.sourceforge.net/ARQ/Tutorial/
http://jena.sourceforge.net/ARQ/

you get redirected to the Apache Jena site.

The set up for apache-jena is different.  See it's README.


I continue to receive the same error message:

Error: Could not find or load main class <Apache Jena 2.7.2 distribution 
path>\ARQ



-----Original Message-----
From: Joshua TAYLOR [mailto:[email protected]]
Sent: Tuesday, July 24, 2012 9:45 AM
To: [email protected]
Subject: Re: Unable to Run Jena'a ARQ Command Line Utility

-----Original Message-----
From: Joshua TAYLOR [mailto:[email protected]]
Sent: Monday, July 23, 2012 12:29 PM
To: [email protected]
Subject: Re: Unable to Run Jena'a ARQ Command Line Utility

On Mon, Jul 23, 2012 at 12:10 PM, ASPSA <[email protected]> wrote:
I recently download the "apache-jena-2.7.2" distribution, which
includes "jena-arq-2.9.2.jar" under the "bin" directory.
Unfortunately, when I run the ARQ command line utility I receive an
error message. For example, when I execute

arq --data <some valid Turtle file> --query <some valid SPARQL query
file>

the command line utility returns the following error:

Error: Could not find or load main class <Apache Jena 2.7.2
distribution
path>\ARQ

I have the following environment, PATH and CLASSPATH variables set,
and I restarted my OS.

Will ARQ run if you an absolute path and set just the JENAROOT variable?  For 
instance, I can do the following:

$ JENAROOT=/usr/local/lib/apache-jena-2.7.2/
/usr/local/lib/apache-jena-2.7.2/bin/arq
No query string or query file

(I'm not a Jena developer, but a satisfied user who makes lots of use
of the command line utilities and recently switched to 2.7.2.)

On Tue, Jul 24, 2012 at 8:43 AM, ASPSA <[email protected]> wrote:
I assigned the JENAROOT variable an absolute path. I simply used "<Apache Jena 2.7.2 
distribution path>\bat" in the post as a shortcut for the actual path.

Sorry, I wasn't clear.  I meant, what happens if you set JENAROOT and use the 
absolute path to the executable (so as to confirm that the problem isn't with 
the value of PATH). But since you're getting a Java error and not a shell 
error, I guess ARQ is running, at least.  I was just trying to decrease the 
number of things that could be the problem.  //JT

--
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/



Reply via email to