ScriptEngine and class compilation.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

ScriptEngine and class compilation.

Post by issle88 »

Ill describe it with an example: Handlers. Handlers get loaded from the following process: ScriptEngine, recrusivelly ( spelled wrong right ? ) goes through the handlers folders compiles the .java files. Then it runs masterHandler from the main method of the class and loads all the handlers as "objects" in the core relative classes ( fastmaps that hold script/IHandler couple ).

My question is, is there a possible way to reflect on the script classes ? For example, even if i add dependancy between datapack and gameserver and even if gameserver can "see" MasterHandler, it cant reflect it since it belongs in a different classpath than the server does. So big question is, where do all those "compiled" script- classes go when they get compiled with scriptengine ? And is there a way to incorporate them in the servers classpath in runtime ? Talking about the .class files not the .java ones.
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

Re: ScriptEngine and class compilation.

Post by issle88 »

It seems there is no way to use reflection with ScriptEngine compiled classes, based on some talk i had with bigboss and some google search i did. Really sad ... :(
Post Reply