Date: Tue, 3 Apr 2007 16:38:59 +0300 From: Nikos Ntarmos <ntarmos@ceid.upatras.gr> To: freebsd-java <freebsd-java@freebsd.org> Subject: Re: problem with FreeBSD run JAVA programme Message-ID: <20070403133859.GB92079@ace.b020.ceid.upatras.gr> In-Reply-To: <200704031856047651159@sigma-rt.com> References: <200704031856047651159@sigma-rt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070403133859.GB92079>