LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2015, 07:22 PM   #1
Alpha90
Member
 
Registered: Jul 2012
Posts: 97

Rep: Reputation: Disabled
Compiling java icedtea for openjdk 7 with openjdk 6


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
 
Old 03-28-2015, 02:30 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,929
Blog Entries: 1

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
You could try it with the latest Oracle-JDK, too. (It's 8u40 in this moment.)
 
Old 03-29-2015, 01:32 PM   #3
Alpha90
Member
 
Registered: Jul 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Yeah I know I could do that and I can use a bin distributed package opened 7 from my distro and it compiles fine. But I use a source base distribution and I wanted to be able to compile newer forms of Java with older compilers so I can skip a bin install
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed openjdk but no java? moisespedro Slackware 10 01-03-2014 10:59 AM
IBM java vs openjdk dazdaz Linux - Software 1 08-25-2013 03:19 PM
[SOLVED] icedtea plugin vs openjdk rubankumars Linux - Software 1 02-18-2013 12:20 PM
[SOLVED] Both java-1.7.0-openjdk and java-1.6.0-openjdk are installed ?? SharpyWarpy Linux - Software 2 01-16-2013 11:28 AM
Unable to build openjdk/icedtea on Slack 13.1 robertjinx Slackware 4 11-15-2010 07:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration