Skip to main content

Mac ScriptEngine.eval NoSuchMethodError RecognizedOptions.getJavacFileManag

3 replies [Last post]
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:


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.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
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:


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

Joined: 2007-07-12

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

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.