Exclude jfxrt.jar from compile classpath

Im building a java applet that uses netscape.javascript.JSObject which comes in two default java libs…jfxrt.jar and plugin.jar. I need to exclude jfxrt.jar from the classpath as its causing compilation errors when I try to call the JSObject.getWindow() method that is only present in plugin.jar.

Any ideas on how I can do this?

Thanks

did you ever found a solution for this?