Date: Wed, 11 Apr 2001 01:47:43 +0300 From: A G F Keahan <ak@freenet.co.uk> To: freebsd-java@freebsd.org Cc: ak@freenet.co.uk Subject: /usr/ports/java/jdk12-beta build error Message-ID: <3AD38D8F.59A757B3@freenet.co.uk>
next in thread | raw e-mail | index | archive | help
While building the native JDK from ports, I got the following error: ... mkdir -p CClassHeaders /usr/local/linux-jdk1.2.2/bin/javah -old -bootclasspath ../../classes -d CClassHeaders/ \ java.io.InputStream java.lang.Boolean java.lang.Byte java.lang.Character java.lang.Class java.lang.ClassLoader java.lang.Double java.lang.Float java.lang.Integer java.lang.Long java.lang.Object java.lang.Runtime java.lang.Short java.lang.StackOverflowError java.lang.String java.lang.Thread java.lang.ThreadGroup java.lang.Throwable java.lang.ref.Reference java.lang.ref.SoftReference java.lang.reflect.Field java.lang.reflect.Method java.lang.reflect.Constructor java.lang.reflect.InvocationTargetException java.security.AccessControlContext java.util.Properties sun.io.ByteToCharConverter sun.io.CharToByteConverter sun.misc.VM java.util.MissingResourceException: Can't find resource for base name com.sun.tools.javah.resources.FreeBSD_i386, locale en_US at java.util.ResourceBundle.getBundle(ResourceBundle.java:423) at java.util.ResourceBundle.getBundle(ResourceBundle.java:339) at com.sun.tools.javah.Util.initPlatform(Util.java:163) at com.sun.tools.javah.Util.getPlatformString(Util.java:148) at com.sun.tools.javah.OldHeaders.write(OldHeaders.java:96) at com.sun.tools.javah.Gen.run(Gen.java:156) at com.sun.tools.javah.Main.run(Main.java:174) at com.sun.tools.javah.Main.main(Main.java:48) Error loading resources. Please file a bug report. gmake[3]: *** [.class.headers.i386] Error 10 gmake[3]: Leaving directory `/usr/ports/java/jdk12-beta/work/build/freebsd/java/jvm' gmake[2]: *** [optimized] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk12-beta/work/build/freebsd/java/jvm' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk12-beta/work/build/freebsd/java' gmake: *** [all] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk12-beta. *** Error code 1 Stop in /usr/ports/java/jdk12-beta. *** Error code 1 Stop in /usr/ports/java/jdk12-beta. Basically, Linux Java was looking for FreeBSD Java resources because of my sysctl settings: mutalisk:/usr/ports/java/jdk12-beta# sysctl -a | grep linux compat.linux.osname: FreeBSD compat.linux.osrelease: 4.3-STABLE I use these settings to make Linux Netscape advertise itself as FreeBSD Netscape in order to improve FreeBSD web browser usage stats (if you are using Linux Netscape, you should do the same!) Anyways, I think the port should check compat.linux.osname and if it's not "Linux", save the value, set to "Linux", build the port, restore the original value. Just FYI Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AD38D8F.59A757B3>