On 19/03/12 16:51, Robert Vesse wrote:
Hi All
So I raised this issue a while ago in relation to TDB but I've been
playing around a bit and found that I can't seem to get any of the
bash scripts distributed with any of the modules to work for me on OS
X
I reliably get an error such as the following regardless of which
command I try to run:
Exception in thread "main" java.lang.NoClassDefFoundError: riotcmd/riot
Caused by: java.lang.ClassNotFoundException: riotcmd.riot
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Which means that the class path is not getting properly configured.
Given that these scripts have been in the distributions for a long
time I'm gonna to assume user error on my part but knowing very
little about bash I have no idea how to go about debugging the
problem.
What are the possible causes of seeing this problem with the scripts?
What should I be checking to make sure my environment is sane and get
the scripts actually running? I've set ARQROOT but maybe I've set it
inappropriately, which directory within ARQ should it point to?
Thanks in advance,
Rob
Rob,
I'm not sure what's a happening - is this the released version or
development version?
You need to set TDBROOT although the scripts tend to complain if you don't.
If in the development version:
1/ Make sure the local repo is up-to-date, e.g. the ARQ jar
2/ See if environment variable M2_REPO points to the right place.
What does bin/tdb_path print?
(This is invoked by tdb-init)
Andy