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).
[Class Not Found]ScriptEngine and Class Loading
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 36
- Joined: Sat Apr 01, 2017 2:35 pm
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: [Class Not Found]ScriptEngine and Class Loading
Wrong section, your project should be there viewforum.php?f=93

-
- Posts: 36
- Joined: Sat Apr 01, 2017 2:35 pm
Re: [Class Not Found]ScriptEngine and Class Loading
If you have an opinion on the issue regarding L2ScriptEngineManager( which i doubt) say it. Else, let the moderators decide if the ScriptEngineManager ( l2j code ) is is a fork, or a native issue.SolidSnake wrote:Wrong section, your project should be there viewforum.php?f=93
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: [Class Not Found]ScriptEngine and Class Loading
The error is yours, not mine. If you want to receive help, you should first show respect, for the forum too.Issle wrote:I am trying to create my own datapack as a seperate project

-
- Posts: 36
- Joined: Sat Apr 01, 2017 2:35 pm
Re: [Class Not Found]ScriptEngine and Class Loading
Found it, i had a typo on the package name. k close it 
SolidSnake: The only respect you are going to ever get from me, is the respect of my middle finger. Troll ...

SolidSnake: The only respect you are going to ever get from me, is the respect of my middle finger. Troll ...
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy