jdk15/javaws on amd64

Greg Lewis glewis at eyesbeyond.com
Mon Mar 17 13:31:52 UTC 2008


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,<unused>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 at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list