Skip to main content

Mac ScriptEngine.eval NoSuchMethodError RecognizedOptions.getJavacFileManag

3 replies [Last post]
jeff_martin
Offline
Joined: 2004-02-03

I just updated to the latest Java 6 update 7 on Mac OS X, but I still get an exception when trying to do a ScriptEngine.eval on some dynamically generated JavaFX:

NoSuchMethodError: com.sun.tools.javac.main.RecognizedOptions.getJavacFileManagerOptions

I guess the answer is to somehow get my environment to see the javafxc.jar before it sees the standard system jars when it's running my app. Any idea how to do that in Netbeans? I tried copying that jar to my /Library/Java/Extensions, but that didn't seem to help.

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jeff_martin
Offline
Joined: 2004-02-03

Aha - thanks for the help! I was able to get this to work by setting the project's Run properties VM Options field to this:

-Xbootclasspath/p:"/Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/javafx/javafx-sdk1.0pre1/lib/javafxc.jar"

This prepends the javafxc jar to the project's bootclasspath.

alexsch
Offline
Joined: 2007-07-12

Go to .netbeans\6.1prev\build.properties file and add javafxc.jar to
the begining of platforms.default_fx_platform.bootclasspath property.

michael_heinrichs
Offline
Joined: 2007-11-15

You have got to make sure, that the path to javafxc.jar is prepended to your bootclasspath. I am not sure how to do that in NetBeans, but I would try the VM Options in Project Properties/Run first.