From owner-freebsd-java@FreeBSD.ORG Wed Apr 4 12:38:08 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5FA816A405 for ; Wed, 4 Apr 2007 12:38:07 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 87CF313C458 for ; Wed, 4 Apr 2007 12:38:07 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from rhea.ceid.upatras.gr (rhea.ceid.upatras.gr [150.140.141.171]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 6F6FE5C2485 for ; Wed, 4 Apr 2007 15:17:04 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 4F1EA80004 for ; Wed, 4 Apr 2007 15:16:55 +0300 (EEST) Received: from rhea.ceid.upatras.gr ([127.0.0.1]) by localhost (rhea [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16500-09 for ; Wed, 4 Apr 2007 15:16:52 +0300 (EEST) Received: from ace.b020.ceid.upatras.gr (unknown [194.219.148.90]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id D5CDE80003 for ; Wed, 4 Apr 2007 15:16:50 +0300 (EEST) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 10FA73F466; Tue, 3 Apr 2007 16:39:00 +0300 (EEST) Date: Tue, 3 Apr 2007 16:38:59 +0300 From: Nikos Ntarmos To: freebsd-java Message-ID: <20070403133859.GB92079@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java References: <200704031856047651159@sigma-rt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200704031856047651159@sigma-rt.com> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by amavisd-new at ceid.upatras.gr Subject: Re: problem with FreeBSD run JAVA programme X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 12:38:08 -0000 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