Im running a gentoo machine and setting up java on my machine and I am having a bit of trouble getting some information on whether I can bootstrap openjdk7 with a jdk6 compiler. I keep hitting an error and IDK if it is due to some sort of misconfiguration.
Code:
../../../src/share/classes/java/lang/management/PlatformComponent.java:42: error: Util is not public in sun.management; cannot be accessed from outside package
import sun.management.Util;
^
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:176: error: cannot find symbol
result = Util.newObjectName(LOGGING_MXBEAN_NAME);
^
symbol: method newObjectName(String)
location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:234: error: cannot find symbol
result = Util.newObjectName(BUFFER_POOL_MXBEAN_NAME +
^
symbol: method newObjectName(String)
location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:331: error: cannot find symbol
final ObjectName objName = Util.newObjectName(mbeanName);
^
symbol: method newObjectName(String)
location: class Util
../../../src/share/classes/sun/management/ManagementFactoryHelper.java:391: error: cannot find symbol
final ObjectName objName = Util.newObjectName(mbeanName);
^
symbol: method newObjectName(String)
location: class Util
../../../src/share/classes/java/lang/management/PlatformComponent.java:269: error: type argument HotSpotDiagnosticMXBean is not within bounds of type-variable T
new MXBeanFetcher<HotSpotDiagnosticMXBean>() {
^
where T is a type-variable:
T extends PlatformManagedObject declared in interface MXBeanFetcher
../../../src/share/classes/java/lang/management/PlatformComponent.java:429: error: cannot find symbol
ObjectName on = Util.newObjectName(domainAndType);
^
symbol: variable Util
location: class PlatformComponent
Note: ../../../src/share/classes/sun/net/www/protocol/jar/Handler.java 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.
7 errors
/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot/jdk/make/common/Rules.gmk:251: recipe for target '.compile.classlist' failed
gmake[5]: *** [.compile.classlist] Error 1
gmake[5]: Leaving directory '/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot/jdk/make/java/java'
Makefile:63: recipe for target 'all' failed
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory '/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot/jdk/make/java'
Makefile:253: recipe for target 'all' failed
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory '/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot/jdk/make'
make/jdk-rules.gmk:92: recipe for target 'jdk-build' failed
gmake[2]: *** [jdk-build] Error 2
gmake[2]: Leaving directory '/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot'
Makefile:251: recipe for target 'build_product_image' failed
gmake[1]: *** [build_product_image] Error 2
gmake[1]: Leaving directory '/var/tmp/portage/dev-java/icedtea-7.2.5.4/work/icedtea-2.5.4/openjdk-boot'
Makefile:2424: recipe for target 'stamps/icedtea-boot.stamp' failed
make: *** [stamps/icedtea-boot.stamp] Error 2