我在哪里可以find一组简单的指令来编译Ubuntu 11.10(Oneiric)上的OpenJDK 7debugging版本? debugging版本将使更多JVM选项可用于故障排除目的; 例如, WizardMode
。 开发者指南和构build自述文件有很多噪音,很难遵循。
sudo apt-get install ant build-essential openjdk-6-jdk sudo apt-get build-dep openjdk-6-jdk
jdk7u2
。 $ mkdir jdk7u2 $ cd jdk7u2 $ hg --config http_proxy.host = proxy:1234克隆http://hg.openjdk.java.net/jdk7u/jdk7u2森林 $ cd森林 $ sh ./get_source.sh
Makefile
: $ echo -e“--- old / jdk / make / javax / sound / jsoundalsa / Makefile 2012-01-28 12:00:00.000000000 -0500 \ n +++ new / jdk / make / javax / sound / jsoundalsa / Makefile 2012- 01-28 12:00:00.000000000 -0500 \ n @@ -65,7 +65,7 @@ \ n \ t \ $(MIDIFILES_export)\\\\ n \ t \ $(PORTFILES_export)\ n \ n -LDFLAGS + = - 弹出\ n + EXTRA_LIBS + = - 弹出\ n \ n CPPFLAGS + = \\\\\ n \ t-DUSE_DAUDIO = TRUE \\\\“| patch -p1
$ export LANG = C ALT_BOOTDIR = / usr / lib / jvm / java-6-openjdk ANT_OPTS =“ - Dhttp.proxyHost = proxy -Dhttp.proxyPort = 1234 -Dhttps.proxyHost = proxy -Dhttps.proxyPort = 1234” $。 JDK /化妆/ jdk_generic_profile.sh $ make ALLOW_DOWNLOADS = true fastdebug_build
$ build / linux-amd64-fastdebug / j2sdk-image / bin / java -version openjdk版本“1.7.0-internal-fastdebug” OpenJDK运行环境(build 1.7.0-internal-fastdebug-user_2012_01_28_13_25-b00) OpenJDK 64位服务器虚拟机(build 22.0-b10-fastdebug,混合模式) $ build / linux-amd64-fastdebug / j2sdk-image / bin / java -XX:+ AggressiveOpts -XX:+ UnlockDiagnosticVMOptions -XX:+ PrintFlagsFinal -XX:+ PrintFlagsWithComments -version