SkIDE | SEARCHING MAINTAINER SkIDE is a fully tooled Open source
kandi X-RAY | SkIDE Summary
kandi X-RAY | SkIDE Summary
SEARCHING MAINTAINER | SkIDE is a fully tooled Open source Editor for Skript providing IDE like features.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SkIDE
SkIDE Key Features
SkIDE Examples and Code Snippets
Community Discussions
Trending Discussions on SkIDE
QUESTION
Note: I have very little experience with the Module system introduced in Java 9.
I have a Java Process which should run another Jar file by loading and executing it through reflection. Note that both Jar files depend on the JavaFX framework which got detached from the JDK in Version 11 and as a result could get loaded a second time.
Here the Original version which worked on JDK version 8:
...ANSWER
Answered 2018-Nov-20 at 19:54When you are using the new URLClassLoader
it seems like the method is being invoked but is throwing a javafx.fxml.LoadException
which gets wrapped by the PrivilegedActionException
and InvocationTargetException
.
Even though you load your class with your own URLClassloader
it looks like the FXML parser is trying to load the FX beans with the built-in classloader, which doesn't know about those classes in the FXML.
You'll need to make FXMLLoader use the right classloader that contains all the classes referenced by the fxml. Read the source of FXMLLoader
to get an idea of how it handles classloading. You may need to modify the library doing the fxml loading if possible. Look into FXMLLoader.setClassLoader(urlClassLoader)
or possibly setting a SecurityManager
so that the FXMLLoader
will use the calling classloader.
FXMLLoader.java
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SkIDE
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page