62,628
社区成员
发帖
与我相关
我的任务
分享
[root@centos-1 openjdk]# which java
/usr/bin/java
[root@centos-1 openjdk]# ls -l /usr/bin/java
lrwxrwxrwx. 1 root root 22 Aug 6 23:01 /usr/bin/java -> /etc/alternatives/java
[root@centos-1 openjdk]# ls -l /etc/alternatives/java
lrwxrwxrwx. 1 root root 76 Aug 6 23:01 /etc/alternatives/java -> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64/jre/bin/java
export LANG=C
export ALT_BOOTDIR=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64
export ALL_DOWNLOADS=true
export HOTSPOT_BUILD_JOBS=4
export ALT_PARALLEL_COMPILE_JOBS=4
export SKIP_COMPARE_IMAGES=true
export USE_PRECOMPILED_HEADER=true
export BUILD_LANGTOOLS=true
export BUILD_HOTSPOT=true
export BUILD_JDK=true
BUILD_DEPLOY=false
BUILD_INSTALL=false
export ALT_OUTPUTDIR=/home/centos/jvm-learn/javaSourceBuild
unset JAVA_HOME
unset CLSSPATH
make 2>&1 | tee $ALT_OUTPUTDIR/build.log
freetypecheck.c: In function 'main':
freetypecheck.c:77:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char** argv) {
cd linux_amd64_compiler2/product && ./test_gamma
Using java runtime at: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64/jre
Error occurred during initialization of VM
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:517)
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1121)
make[4]: *** [product] Error 1
make[4]: Leaving directory `/home/centos/jvm-learn/javaSourceBuild/hotspot/outputdir'
make[3]: *** [generic_build2] Error 2
make[3]: Leaving directory `/home/centos/jvm-learn/javaSource/openjdk/hotspot/make'
make[2]: *** [product] Error 2
make[2]: Leaving directory `/home/centos/jvm-learn/javaSource/openjdk/hotspot/make'
make[1]: *** [hotspot-build] Error 2
make[1]: Leaving directory `/home/centos/jvm-learn/javaSource/openjdk'
make: *** [build_product_image] Error 2

