You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Markus Freudenberg <ma...@googlemail.com> on 2012/05/17 13:36:25 UTC

can't get ARQ to work

Hey there,

for 5 hours I'm trying to get arq to work but I alway get the following
error:

C:\Windows\system32>arq
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Files. Program will exit.

My PATH:

C:\Windows\system32>echo %PATH%
C:\Program Files (x86)\HP SimplePass 2011\;C:\Program Files\Common
Files\Microso
ft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft
Shared\Wind
ows
Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syst
em32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows
Live\Shared;C:\Progr
am Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program
Files\Broadcom\Br
oadcom 802.11\Driver;C:\Program Files (x86)\Microsoft SQL
Server\100\Tools\Binn\
;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program
Files\Microsof
t SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0_04\bin;C:\Program
File
s (x86)\jena\bat;C:\Program Files (x86)\jena\lib;C:\Program
Files\Java\jdk1.7.0_
04\lib;C:\Program Files\Java\jre6\bin;C:\Program
Files\Java\jre6\lib;C:\Program
Files\Java\SDK\lib

CLASSPATH:

C:\Windows\system32>echo %CLASSPATH%
C:\Program Files (x86)\Java\jre1.6.0_22\bin;C:\Program Files
(x86)\Java\jre1.6.0
_22\lib;C:\Program Files (x86)\jena\lib;C:\Program Files (x86)\jena

JENAROOT is correct.

What am I missing?

Thanks in advance for some help.

Markus

Re: can't get ARQ to work

Posted by Andy Seaborne <an...@apache.org>.
On 17/05/12 12:36, Markus Freudenberg wrote:
> Hey there,
>
> for 5 hours I'm trying to get arq to work but I alway get the following
> error:
>
> C:\Windows\system32>arq
> Exception in thread "main" java.lang.NoClassDefFoundError: Files
> Caused by: java.lang.ClassNotFoundException: Files
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: Files. Program will exit.
>
> My PATH:
>
> C:\Windows\system32>echo %PATH%
> C:\Program Files (x86)\HP SimplePass 2011\;C:\Program Files\Common
> Files\Microso
> ft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft
> Shared\Wind
> ows
> Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syst
> em32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows
> Live\Shared;C:\Progr
> am Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program
> Files\Broadcom\Br
> oadcom 802.11\Driver;C:\Program Files (x86)\Microsoft SQL
> Server\100\Tools\Binn\
> ;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program
> Files\Microsof
> t SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0_04\bin;C:\Program
> File
> s (x86)\jena\bat;C:\Program Files (x86)\jena\lib;C:\Program
> Files\Java\jdk1.7.0_
> 04\lib;C:\Program Files\Java\jre6\bin;C:\Program
> Files\Java\jre6\lib;C:\Program
> Files\Java\SDK\lib
>
> CLASSPATH:
>
> C:\Windows\system32>echo %CLASSPATH%
> C:\Program Files (x86)\Java\jre1.6.0_22\bin;C:\Program Files
> (x86)\Java\jre1.6.0
> _22\lib;C:\Program Files (x86)\jena\lib;C:\Program Files (x86)\jena
>
> JENAROOT is correct.

Which version are you running?

Check the arq.bat script -- these are helper scripts and may need altering.

The way to run it directly is:

java -cp 'DIR\lib\*;' arq.arq .....

where DIR is the installation directory.


	Andy

The current script is:
-------------------
@echo off
@rem Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

if NOT "%JENAROOT%" == "" goto :okRoot
echo JENAROOT not set
exit /B

:okRoot

set JVM_ARGS=-Xmx1024M
set JENA_CP="%JENAROOT%\lib\*;"
set LOGGING=-Dlog4j.configuration=file:%JENAROOT%/log4j.properties

java %JVM_ARGS% %LOGGING% -cp %JENA_CP% arq.arq %*
exit /B
-------------------



>
> What am I missing?
>
> Thanks in advance for some help.
>
> Markus
>