Date: Mon, 17 Mar 2008 09:30:54 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 Message-ID: <20080316223054.GA46447@server.vk2pj.dyndns.org>
next in thread | raw e-mail | index | archive | help
--mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >>=20 >> Exception in thread "main" java.lang.NoClassDefFoundError: >> com/sun/deploy/util/PerfLogger >> at com.sun.javaws.Main.main(Main.java:65 >>=20 >> 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>[]=C31=C0H<83>[]=C3AUATUSH<83>H<89>=FDH<8B>= ^E=D1^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_E= XEC,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|MA= P_ANON,0xffffffff,0) 75310 java RET mmap 131096576/0x807d06000 75310 java CALL mmap(0x807d06000,0xa000,PROT_READ|PROT_WRITE|PROT_EXE= C,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 --=20 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. --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfdn54ACgkQ/opHv/APuIc2lQCdEMP4AiUO3RJcdJ6LADEz3y2o vR0AoI1JtZpfE6BAtSYvMCCP8CcTVQ0E =QNoS -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080316223054.GA46447>