So don't start using -source 6 yet in NetBeans. Right click on your project, open properties, and add -source 5 in the Build/Compiling section.
UPDATE: As of NetBeans 4.1 RC2 (not beta) you can now set a source level. I just installed NetBeans using a Mustang runtime and I think the default was to use source level 1.5. To set the source level, open the project properties as described above and use the pull down menu:
Anyways, javac and JVM should soon be agreeing on -target 6. So in a few weeks you can start trying out the new stack map format which should improve security as we can enable the verifier by default.
Posted by jdl on November 03, 2005 at 11:24 AM PST #
The right place to ask questions about the IDE is the nbusers@netbeans.org. You can subscribe to the list at: http://www.netbeans.org/community/lists/top.html
Anyway your current problem is that you run the IDE on the 1.3 and you did not
explicitly specify a Java Platform. To do so:
1) Go to Main menu -> Tools -> Java Platform Manager, add choose Add platform
and point the IDE to the directory where you have the 1.5 installed
2) Go to Properties of you project, choose Libraries node and choose the 1.5
platform in the Platform combo box (on top of the panel)
3) Now go to sources node and set the source combo to 1.5
Posted by Peter von der Ahé on November 06, 2005 at 02:41 PM PST #