There are two ways to build JDK (j2se) project.
The easiest one is to open World project (~/sources/jdk8_tl/jdk/make/netbeans/) from NetBeans, add "build.properties" file to
~/sources/jdk8_tl/jdk/make/netbeans/world/private/
with following content
During this build hotspot, jaxp, jaxws, langtools and corba projects are also will be built.
Another way is to build all of these projects separately.
-------------------
1). To build hotspot you can run "make" command from
~/sources/jdk8_tl/hotspot/make
or use Hacking Hotspot in Eclipse instruction
-------------------
2). For corba project there is no NetBeans project.
To build it you have to open
3). To build jaxp project from NetBeans you should:
1. Run NetBeans. Open jaxp project using File-->Open Project. It is located here: ~/sources/jdk8_tl/
2. (Optional) Create a file with name "build.properties" at the
~/sources/jdk8_tl/jaxp/nbproject/private
with following content:
3. In jaxp NetBeans project right click on "build.xml" file, then select "Run Target" and click on "dist" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/jaxp/dist" directory.
-------------------
4). To build jaxws project from NetBeans you should:
1. Run NetBeans. Open jaxws project using File-->Open Project. It is located here: ~/sources/jdk8_tl/
2. (Optional) Create a file with name "build.properties" at the
~/sources/jdk8_tl/jaxws/nbproject/private
with following content:
3. In jaxws NetBeans project right click on "build.xml" file, then select "Run Target" and click on "dist" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/jaxws/dist" directory.
-------------------
5). To build langtools project from NetBeans you should:
1. Run NetBeans. Open langtools project using File-->Open Project. It is located here: ~/sources/jdk8_tl/langtools/make/netbeans
2. In langtools NetBeans project open "Build files" folder and then "build.properties" file. In this file uncomment line 32 and set
3.In langtools NetBeans project right click on "build.xml" file, then select "Run Target" and click on "build" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/langtools/dist" directory.
-------------------
6). To build jdk (j2se) project from NetBeans you should:
1. Run NetBeans. Open j2se project using File-->Open Project. It is located here: ~/sources/jdk8_tl/jdk/make/netbeans/
2. Create a file with name "build.properties" at the
/home/openjdk/sources/jdk8_tl/jdk/make/netbeans/j2se/nbproject/private
with following content:
4. Wait near one or two hours
The easiest one is to open World project (~/sources/jdk8_tl/jdk/make/netbeans/) from NetBeans, add "build.properties" file to
~/sources/jdk8_tl/jdk/make/netbeans/world/private/
with following content
#PATH to JDK7and wait 4-6 hours.
bootstrap.jdk=/usr/lib/jvm/java-7-openjdk-amd64
During this build hotspot, jaxp, jaxws, langtools and corba projects are also will be built.
Another way is to build all of these projects separately.
-------------------
1). To build hotspot you can run "make" command from
~/sources/jdk8_tl/hotspot/make
or use Hacking Hotspot in Eclipse instruction
-------------------
2). For corba project there is no NetBeans project.
To build it you have to open
vi ~/.bachrcand append
export ALT_JDK_IMPORT_PATH=/usr/lib/jvm/java-7-openjdk-amd64Then execute
source ~/.bashrc ;-------------------
cd ~/sources/jdk8_tl/corba/make ;
make ;
3). To build jaxp project from NetBeans you should:
1. Run NetBeans. Open jaxp project using File-->Open Project. It is located here: ~/sources/jdk8_tl/
2. (Optional) Create a file with name "build.properties" at the
~/sources/jdk8_tl/jaxp/nbproject/private
with following content:
#PATH to JDK7
bootstrap.jdk=/usr/lib/jvm/java-7-openjdk-amd64
3. In jaxp NetBeans project right click on "build.xml" file, then select "Run Target" and click on "dist" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/jaxp/dist" directory.
-------------------
4). To build jaxws project from NetBeans you should:
1. Run NetBeans. Open jaxws project using File-->Open Project. It is located here: ~/sources/jdk8_tl/
2. (Optional) Create a file with name "build.properties" at the
~/sources/jdk8_tl/jaxws/nbproject/private
with following content:
#PATH to JDK7
bootstrap.jdk=/usr/lib/jvm/java-7-openjdk-amd64
3. In jaxws NetBeans project right click on "build.xml" file, then select "Run Target" and click on "dist" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/jaxws/dist" directory.
-------------------
5). To build langtools project from NetBeans you should:
1. Run NetBeans. Open langtools project using File-->Open Project. It is located here: ~/sources/jdk8_tl/langtools/make/netbeans
2. In langtools NetBeans project open "Build files" folder and then "build.properties" file. In this file uncomment line 32 and set
boot.java.home =/usr/lib/jvm/java-7-openjdk-amd64
3.In langtools NetBeans project right click on "build.xml" file, then select "Run Target" and click on "build" target.
The built files that will be imported into the jdk build will be in the "~/sources/jdk8_tl/langtools/dist" directory.
-------------------
6). To build jdk (j2se) project from NetBeans you should:
1. Run NetBeans. Open j2se project using File-->Open Project. It is located here: ~/sources/jdk8_tl/jdk/make/netbeans/
2. Create a file with name "build.properties" at the
/home/openjdk/sources/jdk8_tl/jdk/make/netbeans/j2se/nbproject/private
with following content:
bootstrap.jdk=/usr/lib/jvm/java-7-openjdk-amd643. In jdk (j2se) NetBeans project right click on "build.xml" file, then select "Run Target" and click on "build" target.
make.options=\
ALT_BOOTDIR=/usr/lib/jvm/java-7-openjdk-amd64 \
ALT_LANGTOOLS_DIST=~/sources/jdk8_tl/langtools/dist \
ALT_CORBA_DIST=~/sources/jdk8_tl/corba/dist \
ALT_JAXP_DIST=~/sources/jdk8_tl/jaxp/dist/ \
ALT_JAXWS_DIST=~/sources/jdk8_tl/jaxws/dist/ \
ALT_HOTSPOT_IMPORT_PATH=~/sources/jdk8_tl/hotspot/build/linux/export-linux-amd64 \
OPENJDK=true
4. Wait near one or two hours
Комментариев нет:
Отправить комментарий