This post is related to this one : How to put properly a libgdx application inside swing application? but the question is different.
In this post I explained that I have two JARs : WorldEditor.jar
and GameEngine.jar
, and I load GameEngine.jar
at runtime from WorldEditor.jar
.
My problem is with one of the libraries included in GameEngine.jar
, namely JRuby.
When I run java -jar GameEngine.jar
everything is fine, but when I launche java -jar worldEditor.jar
, the instance of JRuby ScriptManager
I use returns null when I call ``getEngineByName`. I just can't point ou what is the problem.
By tracing the list of ScriptManagerFactories
, I saw that in the good case I have [JRuby, Rhino]
, and in the bad one I have only [Rhino]
.
Would someone have an idea of what's going on ?