快速业务通道

OpenJDK:构建JDK - 编程入门网

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-06-16
,所以我们就忽略这个问题吧。

TODO: 弄清楚正在进行的问题并进行修复。

现在只剩下一个警告和一个错误:

WARNING: This machine appears to only have 503Mb of physical memory,      builds on this machine could be slow. ERROR: You do not have access to valid Cups header files.     Please check your access to       /usr/include/cups/cups.h     and/or check your value of ALT_CUPS_HEADERS_PATH,     CUPS is frequently pre-installed on many systems,     or may be downloaded from http://www.cups.org 

OpenJDK:构建JDK(6)

时间:2011-07-22

我已经为这台笔记本订购了 4GB 的 RAM ,但货还没到。与此同时,我只能忍受缓慢的构建。但是,CUPS 可能是一个问题。返回到 Synaptic。好像又是一个设备安装问题。似乎是我需要的 libcupsys2-dev。我安装了并重试:

$ make sanity make[1]: Entering directory `/home/jars/openjdk/jdk/make'' make[2]: Entering directory `/home/jars/openjdk/jdk/make/tools/freetypecheck'' make[2]: Nothing to be done for `all''. make[2]: Leaving directory `/home/jars/openjdk/jdk/make/tools/freetypecheck'' make[1]: Leaving directory `/home/jars/openjdk/jdk/make'' Build Machine Information:   build machine = jars-desktop ... Previous JDK Settings:   PREVIOUS_RELEASE_PATH = /NOT-SET/re/jdk/1.6.0/archive/fcs/bundles/linux-i586    ALT_PREVIOUS_RELEASE_PATH =   PREVIOUS_JDK_VERSION = 1.6.0    ALT_PREVIOUS_JDK_VERSION =   PREVIOUS_JDK_FILE = jdk--linux-i586.tar.gz    ALT_PREVIOUS_JDK_FILE =   PREVIOUS_JRE_FILE = jre--linux-i586.tar.gz    ALT_PREVIOUS_JRE_FILE =   PREVIOUS_RELEASE_IMAGE =    ALT_PREVIOUS_RELEASE_IMAGE = WARNING: This machine appears to only have 503Mb of physical memory,      builds on this machine could be slow. Sanity check passed. 

终于!在开始了大约 7 个小时之后,完整性检查通过了。现在试着用 make 开始实际构建:

构建 Make 文件$ make linux i586 1.7.0-internal build started: 07-11-17 22:33 /bin/mkdir -p ../../control/build/linux-i586/j2sdk-image /bin/mkdir -p /home/jars/openjdk/control/build/linux-i586/j2sdk-image ... # Running javac: Check_ALT_JDK_IMPORT_PATH/bin/javac -J-XX:ThreadStackSize=768   -J-client -J-Xmx375m -J-Xms128m -J-XX:PermSize=32m   -J-XX:MaxPermSize=160m -source 1.5 -target 5 -encoding ascii   -classpath /usr/local/java/lib/tools.jar -sourcepath  /home/jars/openjdk/control/build/linux-i586/corba/gensrc: ../../../src/solaris/classes: ../../../src/share/classes -d /home/jars/openjdk/control/build/linux-i586/corba/classes @/home/jars/openjdk/control/build/linux-i586/corba/tmp/sun /javax.transaction.xa/.classes.list /bin/sh: Check_ALT_JDK_IMPORT_PATH/bin/javac: not found make[3]: *** [.compile.classlist] Error 127 make[3]: Leaving directory `/home/jars/openjdk/corba/make/javax/xa'' make[2]: *** [build] Error 1 make[2]: Leaving directory `/home/jars/openjdk/corba/make/javax'' make[1]: *** [build] Error 1 make[1]: Leaving directory `/home/jars/openjdk/corba/make'' make: *** [corba-build] Error 2

嗯,好像是需要一个 ALT_JDK_IMPORT_PATH 环境变量。完整性检查没有捕获到这一点。系统似乎正试着加

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号