Page 1 of 1

[Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 11:30 am
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).

Re: [Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 1:01 pm
by SolidSnake
Wrong section, your project should be there viewforum.php?f=93

Re: [Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 1:14 pm
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.

Re: [Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 1:19 pm
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.

Re: [Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 1:58 pm
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 ...

Re: [Class Not Found]ScriptEngine and Class Loading

Posted: Fri Sep 10, 2010 2:00 pm
by SolidSnake
Good luck with your 'super fantastic' project :D