вторник, 24 июля 2012 г.

How to build Swing, JMX and JConsole projects from NetBeans

You should run these steps after Adopt OpenJDK VM Build (http://java.net/projects/adoptopenjdk/pages/AdoptOpenJDKVMBuild)

------------------------
To build Swing from NetBeans you should:
1. Run NetBeans. Open Swing 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
~/sources/jdk8_tl/jdk/make/netbeans/swing/nbproject/private
with following content:
#PATH to JDK8
bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-amd64_backup/j2sdk-image

3. Run the Build of Swing project

4. Wait for 10 min - 1 hour (it depends on performance of your computer)

------------------------
To build JMX from NetBeans you should:
1. Run NetBeans. Open JMX 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
~/sources/jdk8_tl/jdk/make/netbeans/jmx/nbproject/private
with following content:
#PATH to JDK8
bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-amd64_backup/j2sdk-image

3. Run the Build of Swing project

4. Wait for 10 min - 1 hour (it depends on performance of your computer)

---------------------------
To build JConsole from NetBeans you should:
1. Run NetBeans. Open JConsole 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
~/sources/jdk8_tl/jdk/make/netbeans/jconsole/nbproject/private
with following content:
#PATH to JDK8
bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-amd64_backup/j2sdk-image

3. Open file
~/sources/jdk8_tl/jdk/make/netbeans/common/shared.xml
and change values of java source and target to "1.7" in lines 130 and 132.
Otherwise you will get following errors during build phase:
"error: multi-catch statement is not supported in -source 1.5"

4. Run the Build of JConsole project

5. Wait for 10 min - 1 hour (it depends on performance of your computer)

6. Open file
~/sources/jdk8_tl/jdk/make/netbeans/common/shared.xml
and return values of java source and target in lines 130 and 132 to its previous values ("1.5" and "1.6")

Комментариев нет:

Отправить комментарий