[Class Not Found]ScriptEngine and Class Loading
Posted: Fri Sep 10, 2010 11:30 am
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number: 3313
L2JDP Revision Number: 7664
I am trying to create my own datapack as a seperate project and im adding a script engine. Basically its the L2ScriptEngineManager for now. I copy/pasted it in my project and changed the MasterHandler path to "look" into my MasterHandler in my directory.
The problem is that even if it locates the MasterHandler, it throws a ClassNotFoundException: MasterHandler. It also cant read any of the imports in the MasterHandler even if they exist in the directory. Its as if, the classes are not getting loaded. None of the classes that are supposed to be read as scripts are getting compiled as it seems.
Am i forgetting something ? Since the code does the following route:
1)Get a File object from MasterHandler.java.
2)Give that to L2ScriptEngineManager calling executeScript(File f).
ยป Find Revision
L2J Revision Number: 3313
L2JDP Revision Number: 7664
I am trying to create my own datapack as a seperate project and im adding a script engine. Basically its the L2ScriptEngineManager for now. I copy/pasted it in my project and changed the MasterHandler path to "look" into my MasterHandler in my directory.
The problem is that even if it locates the MasterHandler, it throws a ClassNotFoundException: MasterHandler. It also cant read any of the imports in the MasterHandler even if they exist in the directory. Its as if, the classes are not getting loaded. None of the classes that are supposed to be read as scripts are getting compiled as it seems.
Am i forgetting something ? Since the code does the following route:
1)Get a File object from MasterHandler.java.
2)Give that to L2ScriptEngineManager calling executeScript(File f).