NetBeans の JDK バージョンの管理はまどろこしい ― 2008年08月30日 10時24分02秒
% ant
...
BUILD FAILED
/export/home/uyota/NetBeansProjects/test/nbproject/build-impl.xml:79: The J2SE Plat
form is not correctly set up.
Your active platform is: JDK_1.6, but the corresponding property "platforms.JDK
_1.6.home" is not found in the project's properties files.
Either open the project in the IDE and setup the Platform with the same name or
add it manually.
For example like this:
ant -Duser.properties.file= jar (where you put the p
roperty "platforms.JDK_1.6.home" in a .properties file)
or ant -Dplatforms.JDK_1.6.home= jar (where no properties fi
le is used)
Total time: 1 second
今回は、NetBeans プロジェクト外でもビルドを行いたい。そこで、普段ソースコードの管理に Mercurial を用いて複製する。その中でビルドを試してみた。
% cd NetBeansProjects
% hg clone Project test
% cd test
% ant
...
が上の結果になる。platforms.JDK_1.6.home を設定しろと言っているので試す。
[javac] /export/home/uyota/NetBeansProjects/test/src/Project/swing/SwingGUI.java:
91: package org.jdesktop.layout does not exist
[javac] org.jde
sktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
[javac] 100 errors
BUILD FAILED
/export/home/uyota/NetBeansProjects/test/nbproject/build-impl.xml:369: The followi
ng error occurred while executing this line:
/export/home/uyota/NetBeansProjects/test/nbproject/build-impl.xml:195: Compile fai
led; see the compiler error output for details.
どうも、NetBeans が管理する Mercurial 以下のファイルだけでは、ビルドが通らないようだ。
次回。
最近のコメント