在Ubuntu 12.04上构建openjdk7但出错

时间:2018-03-23 03:53:21

标签: java linux

我尝试在Ubuntu 12.04上构建openjdk 7热点,这些是我的build.sh

build.sh start

#!/bin/bash
export LANG=C

export ALT_BOOTDIR=/home/jdk1.6.0_45

export ALT_JDK_IMPORT_PATH=/home/jdk1.6.0_45

export ANT_HOME=/usr/local/ant/apache-ant-1.8.4

export PATH="/usr/lib/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/ usr/games:/usr/local/ant/apache-ant-1.8.4:/usr/lib/i386-linux-gnu:/usr/lib/gcc/i686-linux-gnu/4.6"

export HOTSPOT_BUILD_JOBS=5

export ALT_OUTPUTDIR=/home/jdk1.7

cd make
make jvmg jvmg1 2>&1 | tee $ALT_OUTPUTDIR/build.log

build.sh end

然后The Building成功了,输出了打击消息:

输出开始

cd linux_i486_compiler1/jvmg && ./test_gamma

java full version "1.6.0_45-b06"

java version "1.6.0_45"

Java(TM) SE Runtime Environment (build 1.6.0_45-b06)

OpenJDK Client VM (build 21.0-b17-internal-jvmg, mixed mode)

1. A1 B5 C8 D6 E3 F7 G2 H4

...

Using java runtime at: /home/jdk1.6.0_45/jre

make[2]: Leaving directory `/home/jdk1.7'

输出结束

我的问题是为什么建筑物jvm变成jdk1.6.0_45(' build.sh ALT_BOOTDIR'),我的建筑物openjdk 7 jvm在哪里?

1 个答案:

答案 0 :(得分:0)

没关系 热点已经成功编译,执行文件是~hotspot / build / linux_i486_compiler1 / jvmg / hotspot