ubuntu compile openjdk87

0.

use oracle JDK,not OpenJDK

1.

遇到错误Error:./gamma: relocation error: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so: symbol JVM_FindClassFromCaller, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

修改文件:/home/westward/soft/openjdk-7u-40/openjdk/hotspot/make/linux/Makefile   (yuandaima)

去掉文件中所有的test_gamma即可

2.

./gamma: relocation error: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.36.x86_64/jre/lib/amd64/libjava.so: symbol JVM_FindClassFromCaller, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

通过vim `find . -name 'CurrencyData.properties'` 把里面的时间改在10年之内就可以了

//~/soft/openjdk-7u-40/openjdk/jdk/src/share/classes/java/util/CurrencyData.properties   (yuandaima)

上一篇:使用Java语言开发微信公众平台(五)——获取access_token


下一篇:Windows下使用命令行编译Qt项目(解决DLL丢失问题)