From owner-freebsd-java@FreeBSD.ORG Sun Jun 8 03:10:17 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A07237B4A7 for ; Sun, 8 Jun 2003 03:10:17 -0700 (PDT) Received: from bloodwood.hunterlink.net.au (mail.hunterlink.net.au [203.12.144.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA42843F75 for ; Sun, 8 Jun 2003 03:10:15 -0700 (PDT) (envelope-from boris@brooknet.com.au) Received: from as1-p38.mait.hunterlink.net.au (as1-p38.mait.hunterlink.net.au [202.7.67.38])h58ADVp3030811; Sun, 8 Jun 2003 20:13:32 +1000 From: Sam Lawrance To: Juan Velasco Date: Sun, 8 Jun 2003 20:10:58 +0000 User-Agent: KMail/1.5.1 References: <3EE303E5.2010409@shih.be> In-Reply-To: <3EE303E5.2010409@shih.be> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200306082009.47977.boris@brooknet.com.au> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: java@freebsd.org Subject: Re: Netbeans question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 10:10:17 -0000 On Sun, 8 Jun 2003 09:37 am, Juan Velasco wrote: > root@dune>netbeans -jdkhome /usr/local/jdk1.4.1 > expr: syntax error > expr: syntax error > expr: syntax error > Exception in thread "main" java.lang.NoClassDefFoundError: I had a similar problem. If I remember correctly, when the script runide.sh actually gets to the part where it runs java to launch netbeans, one of the arguments passed to java (through a script variable) is literally: "" That's where the NoClassDefFoundError comes from. Even though it's an empty string, java still tries to run it as a class (hence no class name following the error) instead of ignoring it. Sorry, but I can't remember which variable contains the "", but I do recall that it was used to pass some sort of argument to java. I ended up just removing the variable from the whole command to make it run. You could echo the whole command to help find out. -sam