Hi,
Thanks. I actually managed to solve it just now.
The classpath system variable of the user running the Applab-server was
overwritten. I actually tried to insert (bashrc) export
CLASSPATH=$CLASSPATH:<my_classpath>. However, this did not work (the error
message mysteriously gone but nothing at all happening when executing my program
instead).
What did work is simply java -classpath <my_classpath> <my_program>
Should of course have thought about trying that first of all.
Cheers,
Anders
> > I have written a shell script for a custom soaplab ws that
> > calls a number of command line tools in sequence, creating
> > and reading temporary files as it goes. Some of the calls are
> > to java classes available in my classpath. However, these do
> > not seem to work (NoClassDefFoundError). It does work when I
> > call it directly rather than as a WS.
> >
> > Is this because the system classpath is not used even from
> > the shell?
> > How can I fix it?
>
> Hi Anders,
> Hope it makes sense, but I guess you can set the classpath variable in the
> profile for the user that runs the applab server.
> Another option would be to set it in the run-AppLab-server script directly.
> HTH,
> Marc
>
|