This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
JavaNode was using the sun.io.* package to check for legal charset encoding names when setting the "Encoding" property on a Java source. Since this package has been removed in JDK 1.6, trying to set Encoding just results in a NoClassDefFoundError on CharToByteConvertor. Also JavaNode.java did not compile under JDK 1.6. Can be fixed to use NIO instead, which is a proper API.
Fixing in the trunk (with a minor unrelated fix): committed Up-To-Date 1.128 java/src/org/netbeans/modules/java/JavaNode.java
*** Issue 58592 has been marked as a duplicate of this issue. ***
Product Version = NetBeans IDE Dev (Build 200507061800) Operating System = SunOS version 5.9 running on sparc Java; VM; Vendor = 1.6.0-ea; Verified.