I've the same issue like here Not able to resolve JSObject in a java applet project :
- JSObject is taken from the jfxrt.jar (JavaFX) inside the jdk instead from the plugin.jar, so there is no JSObject.getWindow method and compilation fails.
Problem here is that I've a build with java 8 and maven so I can't remove jfxrt.jar from the build path and it seems that the order of JDK and maven dependencies can't be changed.
So is there a way to exclude JavaFX somehow or is there an alternative to JSObject.getWindow to call some JavaScript from the hosting website?