[Class Not Found]ScriptEngine and Class Loading

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
Locked
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

[Class Not Found]ScriptEngine and Class Loading

Post by issle88 »

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).
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: [Class Not Found]ScriptEngine and Class Loading

Post by SolidSnake »

Wrong section, your project should be there viewforum.php?f=93
Image
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

Re: [Class Not Found]ScriptEngine and Class Loading

Post by issle88 »

SolidSnake wrote:Wrong section, your project should be there viewforum.php?f=93
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.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: [Class Not Found]ScriptEngine and Class Loading

Post by SolidSnake »

Issle wrote:I am trying to create my own datapack as a seperate project
The error is yours, not mine. If you want to receive help, you should first show respect, for the forum too.
Image
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

Re: [Class Not Found]ScriptEngine and Class Loading

Post by issle88 »

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 ...
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: [Class Not Found]ScriptEngine and Class Loading

Post by SolidSnake »

Good luck with your 'super fantastic' project :D
Image
Locked