Add examples for loading a jar after the JVM is started #504
Labels
documentation
Issue with our documentation (misleading, missing, bad)
enhancement
Improvement in capability planned for future release
A common issue that I see in forums is trying to add something to the classpath after the JVM has already be started. As we can't restart the JVM that is already in progress, it can be an issue if multiple modules are using JPype. Once a module has started the JVM, then nothing can add to the classpath leading to a fail. I am not sure if there is a good procedure for this case in terms of getting the existing ClassLoader to change paths, but there is no reason that we can't create a second classloader for a runtime supplied path and use it for loading.
We should work through an example of this common problem and see how arduous it is. If the pattern is very difficult then we should see if some additional support of needed in the library to simplify it.
Not sure whether this is a long term or short term project. If user respond to request this feature, I can move it up on the schedule. Otherwise it will happen as part of the next documentation pass.
The text was updated successfully, but these errors were encountered: