From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 13:31:47 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E63710656A3 for ; Mon, 17 Mar 2008 13:31:47 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id A178E8FC32 for ; Mon, 17 Mar 2008 13:31:46 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2HDVjL3004539; Mon, 17 Mar 2008 06:31:45 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2HDVi32004538; Mon, 17 Mar 2008 06:31:44 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 17 Mar 2008 06:31:44 -0700 From: Greg Lewis To: Peter Jeremy Message-ID: <20080317133144.GA4473@misty.eyesbeyond.com> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080316223054.GA46447@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 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: Mon, 17 Mar 2008 13:31:52 -0000 On Mon, Mar 17, 2008 at 09:30:54AM +1100, Peter Jeremy wrote: > On Tue Jan 1 09:11:52 PST 2008, Greg Lewis wrote: > >On Sat, Dec 29, 2007 at 11:38:01PM +1300, Jonathan Chen wrote: > >> I'm trying out the jdk-1.5.0.13p7_1,1 javaws on 7-STABLE/amd64 system. > >> Running it with no arguments will pop-up the web-start manager; but if > >> an jnlp file is supplied I get: > >> > >> Exception in thread "main" java.lang.NoClassDefFoundError: > >> com/sun/deploy/util/PerfLogger > >> at com.sun.javaws.Main.main(Main.java:65 > >> > >> The invocation on a 7-STABLE/i386 system appears to work; I'm hoping > >> for tips on general whereabouts or what to look in the source tree so > >> that I can attempt to fix the problem. > > > >That class file should be in jre/lib/deploy.jar. Thats where it is on > >i386 at least. I don't immediately see any reason it wouldn't be included > >on amd64. > > That's an old posting but I've just run into the same issue with > jdk-1.5.0.14p8,1 on 7-STABLE/amd64. I have confirmed that > /usr/local/jdk1.5.0/jre/lib/deploy.jar does exist and includes > com/sun/deploy/util/PerfLogger.class - the problem seems to be that > java has a corrupt path. The following is an extract from a ktrace of > javaws. Note the path it uses for deploy.jar. I'm uncertain where > this is coming from as the preceeding load of javaws.jar is correct. > > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" > 75310 java CALL open(0x7fffffffcba0,O_RDONLY,0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" ... > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "<8B>H<83>[]?1?H<83>[]?AUATUSH<83>H<89>?H<8B>^E?^M^R/deploy.jar" > 75310 java RET stat -1 errno 2 No such file or directory That certainly is an interesting path for deploy.jar... The path to deploy.jar is set up in deploy/src/javaws/share/native/launcher.c, so thats probably a good place to start. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org