jdk15/javaws on amd64

Peter Jeremy peterjeremy at optushome.com.au
Mon Mar 17 00:24:55 UTC 2008


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/classes"
 75310 java     RET   stat -1 errno 2 No such file or directory
 75310 java     CALL  stat(0x7fffffffd250,0x7fffffffd6f0)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre/lib/javaws.jar"
 75310 java     RET   stat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr"
 75310 java     RET   lstat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr/local"
 75310 java     RET   lstat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr/local/jdk1.5.0"
 75310 java     RET   lstat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre"
 75310 java     RET   lstat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre/lib"
 75310 java     RET   lstat 0
 75310 java     CALL  lstat(0x7fffffffd1f0,0x7fffffffcc90)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre/lib/javaws.jar"
 75310 java     RET   lstat 0
 75310 java     CALL  open(0x7fffffffcba0,O_RDONLY,<unused>0)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre/lib/javaws.jar"
 75310 java     RET   open 3
 75310 java     CALL  fstat(0x3,0x7fffffffc9c0)
 75310 java     RET   fstat 0
 75310 java     CALL  lseek(0x3,0,SEEK_END)
 75310 java     RET   lseek 863362/0xd2c82
 75310 java     CALL  mmap(0,0xd2c82,PROT_READ,MAP_SHARED,0x3,0)
 75310 java     RET   mmap 79900672/0x804c33000
 75310 java     CALL  close(0x3)
 75310 java     RET   close 0
 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
 75310 java     CALL  mmap(0,0x3000000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xffffffff,0)
 75310 java     RET   mmap 80764928/0x804d06000
 75310 java     CALL  mmap(0x804d06000,0x270000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,0xffffffff,0)
 75310 java     RET   mmap 80764928/0x804d06000
 75310 java     CALL  mmap(0,0xc0000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xffffffff,0)
 75310 java     RET   mmap 131096576/0x807d06000
 75310 java     CALL  mmap(0x807d06000,0xa000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,0xffffffff,0)
 75310 java     RET   mmap 131096576/0x807d06000
 75310 java     CALL  open(0x800b1b140,O_RDONLY,<unused>0)
 75310 java     NAMI  "/usr/local/jdk1.5.0/jre/lib/amd64/server/classes.jsa"
 75310 java     RET   open -1 errno 2 No such file or directory

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-java/attachments/20080317/cbdcf232/attachment.pgp


More information about the freebsd-java mailing list