Prev: FreeBSD 6.2 does not reply to 802.1Q frame
Next: How to Install FreeBSD Using WDS (or RIS) and PXELINUX
From: Huub "v.niekerk at on 28 Feb 2007 06:14 My build of jdk15 ends in errors. Below is the list of what I could retrieve from the terminal: Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:227: ')' expected private static final class Aliases ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:390: ')' expected private static final class Classes ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:430: ')' expected private static final class Cache ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ .../../../src/share/classes/java/io/ObjectStreamClass.java:869: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return cons.newInstance(null); ^ .../../../src/share/classes/java/io/ObjectStreamClass.java:949: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning readObjectNoDataMethod.invoke(obj, null); ^ .../../../src/share/classes/java/io/ObjectStreamClass.java:977: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return writeReplaceMethod.invoke(obj, null); ^ .../../../src/share/classes/java/io/ObjectStreamClass.java:1006: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return readResolveMethod.invoke(obj, null); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ .../../../src/share/classes/sun/misc/ProxyGenerator.java:335: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning hashCodeMethod = Object.class.getMethod("hashCode", null); ^ .../../../src/share/classes/sun/misc/ProxyGenerator.java:338: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning toStringMethod = Object.class.getMethod("toString", null); ^ .../../../src/share/classes/sun/security/jca/ProviderConfig.java:243: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning obj = cons.newInstance(new String[] { argument }); ^ .../../../src/share/classes/javax/xml/transform/TransformerException.java:329: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning null); ^ .../../../src/share/classes/javax/xml/transform/TransformerException.java:334: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning exception = (Throwable) meth.invoke(exception, null); ^ .../../../src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java:1186: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return (IOException)ctr.newInstance(args); ^ .../../../src/share/classes/com/sun/jmx/mbeanserver/StandardMetaDataImpl.java:637: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning result = meth.invoke(instance,null); ^ .../../../src/share/classes/com/sun/jmx/mbeanserver/MBeanInstantiatorImpl.java:162: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning moi= cons.newInstance(null); ^ Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 21 errors 12 warnings gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. # What is the diablo-jdk15 you mention?
From: Jason Bourne on 28 Feb 2007 09:49 Huub <"v.niekerk at hccnet.nl"> wrote: [snip] > > What is the diablo-jdk15 you mention? There exists a license arrangement between Sun and the FreeBSD Foundation for FreeBSD to a have a "native" jre/jdk15. More information here: http://www.freebsdfoundation.org/downloads/java.shtml You will notice 2 sets of files at the top and 2 sets of files at the bottom of the page. The 2 at the bottom are for application writers/vendors who wish to bundle the jdk/jre with their release. The 2 at the top are either a package (.tbz) which can be downloaded and installed via pkg_add, or in the tarball section (tar.bz2) would get downloaded and placed in /usr/ports/distfiles and then the regular make install thingy would get done in /usr/ports/java/diablo-jdk15. The previous method of installing the java/jdk15 you are currently fighting with goes something like this: You hunt down the places to download the code for two ports manually[1] and place them in /usr/ports/distfiles. Of course, since you have to install the /usr/ports/java/linux-sun-jdk14 first it is necessary to have the linuxolator installed and set up. Install the /usr/ports/java/linux-sun-jdk14 first, then add linprocfs /compat/linux/proc linprocfs rw 0 0 to your /etc/fstab and mount it. Then you can proceed to do the make install dance in /usr/ports/java/jdk15. These multiple steps are not required with the diablo-jdk15. Download one file and build/install one java. It does not require the linuxolator either. I haven't done the jdk15 build in maybe something like at least 9 months or more. I tried the diable-jdk15 and haven't as yet come up with a reason to go back. I primarily use it to run tomcat and resin. I haven't tried any benchmarking but I could swear the diablo-jdk might just be a very teeny smidgen faster. Also, I did the port build install when the machine was 6.1-Release and subsequently upgraded the OS to 6.2-Release. I noticed on the page I pointed you to earlier there isn't a file there expressly for 6.2. Even though I haven't tried it I'd bet the 6.1 file will work. The port will run a checksum against it to be sure. If you're having lots of trouble and just want to move on you might consider downloading the .tbz package and just pkg_add it to get going quicker. [1] Due to license restrictions they can't be "fetched" by the ports system but must be downloaded manually. -Jason
From: Jason Bourne on 28 Feb 2007 10:08 Huub <"v.niekerk at hccnet.nl"> wrote: > My build of jdk15 ends in errors. Below is the list of what I could > retrieve from the terminal: > > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location > /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: > <identifier> expected > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location > ^ [snip long error list] One guess is that you don't the prerequisite dependencies installed. For the java/jdk15 it looks like this: Requires: XFree86-libraries-4.5.0, desktop-file-utils-0.12, expat-2.0.0_1, fontconfig-2.3.2_6,1, freetype2-2.2.1_1, gettext-0.14.5_2, glib-2.12.9, gmake-3.81_1, imake-4.5.0, javavmwrapper-2.3, ldconfig_compat-1.0_8, libiconv-1.9.2_2, linux-expat-1.95.8, linux-fontconfig-2.2.3_5, linux-sun-jdk-1.4.2.13, linux-xorg-libs-6.8.2_5, linux_base-fc-4_9, m4-1.4.8_1, nspr-4.6.4, open-motif-2.2.3_2, pkg-config-0.21, popt-1.7_2, rc_subr-1.31_1, zip-2.32 For the java/diablo-jdk15: Requires: XFree86-libraries-4.5.0, expat-2.0.0_1, fontconfig-2.3.2_6,1, freetype2-2.2.1_1, javavmwrapper-2.3, ldconfig_compat-1.0_8, pkg-config-0.21, rc_subr-1.31_1 Notice the difference? -Jason
First
|
Prev
|
Pages: 1 2 Prev: FreeBSD 6.2 does not reply to 802.1Q frame Next: How to Install FreeBSD Using WDS (or RIS) and PXELINUX |