To avoid having to work on explicit path :
In project.properties, adds:
platform.active = JDK_1.5
Version should be assigned by default: platform.active = default_platform
In build-impl.xml, add a few lines define variables with the prefix platform, for example:
"$ (Platform.javac)" fork = "yes”
This statement specifies, no apparent problem in implementing the project in the pc where it is developing. When you compile the project in another PC, are errors like "Error running $ (platforms.JDK_1.5.home) \ bin \ javac compiler". Then in Tools -> Java Platforms to select the default version. If the default version is not correct, INSTALLATION_DIRECTORY edit the / etc / netbeans.conf the path of the version of JDK you want to be their default. Restart the IDE.
# Default location of JDK, can be overridden by using - jdkhome <dir>:
netbeans_jdkhome = / System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Bookmarks