NetBeans? FAQ
Errors
java.lang.NoClassDefFoundError?: javax/script/ScriptEngineFactory
Appears: in NetBeans? IDE log
This occurs when attempting to create a new, Ruby project that uses the Built-in JRuby 1.1.4 platform. The progress bar hangs at 25% and a NoClassDefFoundError? appears in the IDE's log. Netbeans is apparently looking for a class that is not found in JDK 1.5 (only available in JDK 1.6?)
Edit the following the netbeans.conf file (typically in /Applications/NetBeans/NetBeans\ 6.5.1.app/Contents/Resources/NetBeans/etc) and change the default JDK home:
#netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
See forums.netbeans.org/post-41255.html for discussion.
