problem with FreeBSD run JAVA programme

Nikos Ntarmos ntarmos at ceid.upatras.gr
Wed Apr 4 12:38:08 UTC 2007


Hi there.

On Tue, Apr 03, 2007 at 06:56:06PM +0800, Top Chai wrote:
> script:  java -classpath .:/usr/lss/node.jar:/usr/lss/node/lib/external.jar com.sigma_rt.lss.application.AGENT_Startup &
> see error with " Exception in thread "main" java.lang.NoClassDefFoundError: com/sigma_rt/lss/application/AGENT_Startup"

By adding '.' at your classpath, you instruct java to search for
_directories_ containing class files under the current directory. If
com.sigma_rt.lss.application.AGENT_Startup is in a jar file under '.',
you should add that at your classpath instead (i.e.: java -classpath
./some-jar-file.jar:/usr/lss/node.jar:...) or unjar it under . (i.e.:
jar xf some-jar-file.jar) and then retry your command. Of course, the
former is the preferred way of doing things.

> but jar file assured .
> debug java with following 
> java -classpath -esa .:/usr/lss/node.jar:/usr/lss/node/lib/external.jar com.sigma_rt.lss.application.AGENT_Startup &

That should read: java -esa -classpath ... ?

\n\n


More information about the freebsd-java mailing list