From owner-freebsd-java@FreeBSD.ORG Tue Apr 3 15:26:49 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 0993616A402 for ; Tue, 3 Apr 2007 15:26:49 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id EBC0D13C4BC for ; Tue, 3 Apr 2007 15:26:48 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 3EDBA17042; Tue, 3 Apr 2007 07:55:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 3BCCB17034; Tue, 3 Apr 2007 07:55:21 -0700 (PDT) Date: Tue, 3 Apr 2007 07:55:21 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: Top Chai In-Reply-To: <200704031856047651159@sigma-rt.com> Message-ID: <20070403075157.B3995@turing> References: <200704031856047651159@sigma-rt.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-java 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: Tue, 03 Apr 2007 15:26:49 -0000 On Tue, 3 Apr 2007, Top Chai wrote: > java -classpath -esa .:/usr/lss/node.jar:/usr/lss/node/lib/external.jar com.sigma_rt.lss.application.AGENT_Startup & > # Exception in thread "main" java.lang.NoClassDefFoundError: /:/usr/lss/node/jar:/usr/lss/node/lib/external/jar > > why i am input /usr/lss/node.jar but it change to /usr/lss/node/jar ???? Because you got the order of the arguments wrong. You told Java that the classpath is "-esa" and that you wanted to run a class called .:/usr/lss/node.jar. In Java, package names translate to directory paths everywhere you find a ".", so the path translates to /:/usr/lss/node/jar. I think you may benefit from reading the Java tutorial at http://java.sun.com/tutorial/ as these are really basic Java questions unrelated to Java on FreeBSD. Nick -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/