NetBeans の main/contrib をビルドするには? その 3 [IC]
NetBeans の main/contrib をビルドするには? その 2 の続き。
ビルドを続けたところ、やっと binary のダウンロードが修了し、Java コードのコンパイルに入った。が、
BUILD FAILED
N:\tmp\main\nbbuild\build.xml:726: The following error occurred while executing this line:
N:\tmp\main\nbbuild\build.xml:721: The following error occurred while executing this line:
N:\tmp\main\nbbuild\build.xml:756: The following error occurred while executing this line:
N:\tmp\main\nbbuild\build.xml:739: The following error occurred while executing this line:
N:\tmp\main\nbbuild\build.xml:721: The following error occurred while executing this line:
N:\tmp\main\nbbuild\build.xml:767: The following error occurred while executing this line:
N:\tmp\main\nbbuild\templates\projectized.xml:65: You are attempting to build NetBeans using JDK 6 (or higher).
This is forbidden as it may lead to accidental usage of JDK 6+ APIs.
Either run Ant with JDK 5, or set nbjdk.home=<JDK 5 home> in N:\tmp\main\nbbuild\user.build.properties
(can be set from IDE by opening a module project's Properties dialog and picking the right Java Platform in Libraries).
You can alternatively set this property in C:\Documents and Settings\administrator\.nbbuild.properties to affect all checkouts on this machine.
If you are sure you want to build with JDK 6+ anyway, use: -Dpermit.jdk6.builds=true
Total time: 57 minutes 33 seconds
N:\tmp\main\nbbuild><a href="http://nbbuild.netbeans.org/ant-quick.html">nbbuild: netbeans.org : nbbuild : Ant : Quick Start</a>
と出力されてビルドが停止した。エラーを見るとどうやら NetBeans は JDK 5 でビルドして欲しいらしい。これは、JDK 6 以降に仕様が変更されたり追加されたりした API による不具合を避けるため。
それでも JDK 6 以降でビルドしたいなら -Dpermit.jdk6.builds=true を使えと書いてある。これはどこに使うのかな?Ant につけて実行したところ、ビルドされるようになった。
でもこれって、FAQ だろうなと思って調べてみると案の定 NetBeans Wiki: DevFaqGeneralWhereIsPlatformHowToBuild を見つけた。そこには次のように書いてある。
If you're using Java 6, you'll need to add an extra property:
ant -Dcluster.config=platform build-platform -Dpermit.jdk6.builds=true
何?-Dcluster.config=platform build-platform も必要?時既に遅し。実行してしまったよ。NetBeans の Full Build はソースコードが多いから時間がかかるんだよ。今更やり直すのもなーということで、-Dcluster.config=platform build-platform は無視して実行中。
NetBeans の main/contrib をビルドするには? その 4 に続く。
コメント 0