still having troubles building jdk1.5 -- need a bootstrap java that works

Chad Leigh -- Shire.Net LLC chad at shire.net
Thu May 8 18:23:06 UTC 2008


I am on a 6.1 FBSD system trying to build the JDK1.5 in a jail.

I have an old 1.4.2 build but that seems to be too old and gives an  
error when trying to be used to bootstrap stuff.

So I installed the diablo pre built 1.5.  Now, diablo will not run  
unless passed -client  (-server is the default).   (procfs is not  
mounted)

# /usr/public/diablo-jdk1.5.0/bin/java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
#

# /usr/public/diablo-jdk1.5.0/bin/java -version -client
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0- 
b01)
Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b01, mixed mode)
#

So that doesn't help me bootstrap the native 1.5 jdk build as it won't  
run and the build thinks that I don't have a valid bootstrap jdk.

I tried to install the linux-sun-jdk15 port to use as a bootstrap  
jdk.  However, it requires a different linux base than I have  
installed and I am not going to mess with that as there are other  
things on this system that require the linux stuff  and I don't want  
to mess anything up (and the system is live and cannot be brought down  
at the moment anyway).

I did try unpacking the linux sun jdk by hand and using it anyway.  I  
get these errors in the build.  Are they errors based on the fact that  
the linux jdk was just unpacked and run and not patched and installed  
properly or are these real jdk build errors?


/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 - find_vma failed
                ^
/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 - find_vma failed
                                        ^
/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 - find_vma failed
                ^
/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 - find_vma failed
                                        ^
/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 - find_vma failed
                ^
/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 - find_vma failed
                                        ^
/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 - find_vma failed
              ^
/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 - find_vma failed
^
/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 - find_vma failed
              ^
/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 - find_vma failed
^
/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 - find_vma failed
              ^
/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 - find_vma failed
^
../../../src/share/classes/java/io/ObjectStreamClass.java:896:  
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:976:  
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:1004:  
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:1033:  
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 - find_vma failed
      ^
/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 - find_vma failed
      ^
/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 - find_vma failed
      ^
/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:1225: 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);
                                                                 ^
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
10 warnings


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net





More information about the freebsd-java mailing list