Skip to main content

Anyone able to build JDK 7 from sources?

1 reply [Last post]
aaime
Offline
Joined: 2003-06-10

Hi,
I've been trying for a while to build JDK 7 (not OpenJDK, the Sun/Oracle one) from sources on a Linux 64bit box without success.
I've tried different distributions, all attempts fail with the same error, the compile failure of
java/security/Signature.java because the compiler cannot find the javax.crypto package.

Running "make sanity" does not report significant issues (besides the fact that I'm trying to build on Ubuntu, but I've also tried on Fedora and the build issue is the same).

The full build log is here:
http://sigma.openplans.org/~aaime/build.logs

The file I use to setup the proper enviroment contains:
export LANG=C
export ALT_BOOTDIR="/usr/lib/jvm/jdk1.6.0_18"
export ANT_HOME=/home/aaime/devel/jdk7/apache-ant-1.6.5
export ALT_BINARY_PLUGS_PATH=/home/aaime/devel/jdk7/b91-bin-plug
export SECURITY_BASELINE_160=1.6.0_20
export PATH=$ANT_HOME/bin:$ALT_BOOTDIR/bin:$PATH
# no mozilla headers, building on a 64bit platform

I looked around and the crypto package is contained in the jce.jar file is available in build/linux-amd64-fastdebug/lib, but that jar is not included in the classpath used for the compilation of Signature.

What am I doing wrong? Is there anybody that can build Sun/Oracle JDK 7 from sources?
(btw, I can build OpenJDK just fine, but I need to be able to build the Sun one to investigate a scalability issue with the Ductus renderer, which has been reported here if you're curious:
http://forums.java.net/jive/thread.jspa?messageID=399819)

Message was edited by: aaime

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
torkildj
Offline
Joined: 2010-05-21

Same problem here.
End in the i used OpenJDK with JDK binary plug. Then replaced all binary/library files from binary JDK with my OpenJDK. Then i had a fully functionally JDK with optimized binaries and libraries. Not too great solution though