Date: Mon, 5 Apr 2004 08:27:15 -0400 From: David Pullara <DPullara@epexchange.epnet.com> To: "'Christian Hofer'" <christian.hofer@gmx.de>, freebsd-java@freebsd.org Subject: RE: FreeBSD 5.2.1. - JDK 1.4 installation from ports collection Message-ID: <E3F40C0041F3D611B5E80002A5AE604A0C78B707@mailman.epnet.com>
next in thread | raw e-mail | index | archive | help
As I understand it you need the linux jdk to build the native one. I noticed I got that same "can't detect" error when running the linux java before I switched to the native one. However, before I switched I found these instructions either from this mailing list or with a google search: # kldload linprocfs # mount -t linprocfs linprocfs /compat/linux/proc Once I did that I didn't get that warning anymore. So if I'm understanding this correctly and after looking at the file, CurrencyData.java seems to be generated by a java program; maybe they redirect the output to a file, hence that warning showing up in the source. So maybe the solution is to do the above commands before building the native jdk? (Maybe the build scripts can check for that, if that is a good idea?) d -----Original Message----- From: Christian Hofer [mailto:christian.hofer@gmx.de] Sent: Sunday, April 04, 2004 3:12 PM To: freebsd-java@freebsd.org Subject: BUG: FreeBSD 5.2.1. - JDK 1.4 installation from ports collection Hi, I installed the JDK 1.4 from the ports collection into FreeBSD 5.2.1, with cvsup'ed java-ports. The installation fails. Searching the list, I see that obviously this already happened to other people. The error message is something like this (I included it from another post): >/usr/ports/java/jdk14/work/control/build/bsd-?>i586/gensrc/java/util/Curren cyData.java:1: >'class' or 'interface' expected >/Java HotSpot(TM) Client VM warning: Can't detect />/initial thread stack />/location />/^ />//usr/ports/java/jdk14/work/control/build/bsd->i586/gensrc/java/util/Curre ncyData.java:1: / >/unclosed character literal />/Java HotSpot(TM) Client VM warning: Can't detect />/initial thread stack />/location / ^ >/2 errors />/gmake[4]: *** [.compile.classlist] Error 1 />/gmake[4]: Leaving directory />/`/usr/ports/java/jdk14/work/j2se/make/java/java' />/gmake[3]: *** [optimized] Error 2 />/gmake[3]: Leaving directory />/`/usr/ports/java/jdk14/work/j2se/make/java/java' />/gmake[2]: *** [all] Error 1 />/gmake[2]: Leaving directory />/`/usr/ports/java/jdk14/work/j2se/make/java' />/gmake[1]: *** [all] Error 1 />/gmake[1]: Leaving directory />/`/usr/ports/java/jdk14/work/j2se/make' />/gmake: *** [j2se-build] Error 2 />/*** Error code 2 />/ />/Stop in /usr/ports/java/jdk14. Workaround: Robert Corsaro posted the following workaround (subject //usr/ports/java/jdk14 on 25 March): > I had the same problem and found the offensive file > (/usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/Currency Data.java) > and deleted the first line, which was : > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack This seems to work also with my installation. The compilation continued successfully afterwards. I didn't test, if the class CurrencyData is now working correctly. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E3F40C0041F3D611B5E80002A5AE604A0C78B707>