Page 1 of 1

Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 4:34 pm
by AntV
L2J Revision: 6445
L2JDP Revision: 9641

After some time away (2 years give or take) from everything lineage, I decided to try and play again.
I downloaded Kepler, updated java to 7u45, did pretty much everything on wiki, checked out pretty much perfectly, build it and ...

When I try to run it on my windows 7 machine, I get errors on pretty much anything...

L2j_configurator.jar gives an:

Code: Select all

Error: invalid or corrupt jar file...
RegisterGameServer gives an:

Code: Select all

Error: could not find or load main class com.l2jserver.tools.gsregistering.BaseGameServerRegister
(.exe seems to be working though...)

StartLoginServer gives an:

Code: Select all

Error: could not find or load main class com.l2jserver.loginserver.L2LoginServer
StartGameServer gives an:

Code: Select all

Error: could not find or load main class com.l2jserver.gameserver.GameServer
I tried running the nightly build and it worked, so I figured it must be a compile issue.
Here is the console for DataPack

Code: Select all

Buildfile: /Users/antverros/Documents/L2J/L2J_DataPack/build.xmlcheckRequirements:getChangelogDateVersion:     [exec] Result: 1     [exec] Result: 1init:    [mkdir] Created dir: /Users/antverros/Documents/L2J/L2J_DataPack/builddist:     [sync] Copying 21068 files to /Users/antverros/Documents/L2J/L2J_DataPack/build/dist     [sync] Copied 778 empty directories to 2 empty directories under /Users/antverros/Documents/L2J/L2J_DataPack/build/distbuild:      [zip] Building zip: /Users/antverros/Documents/L2J/L2J_DataPack/build/L2J_DataPack.zipBUILD SUCCESSFULTotal time: 30 seconds
and for the Server

Code: Select all

Buildfile: /Users/antverros/Documents/L2J/L2J_Server/build.xmlcheckRequirements:getChangelogDateVersion:     [exec] Result: 1     [exec] Result: 1init:   [delete] Deleting directory /Users/antverros/Documents/L2J/L2J_Server/build/bin    [mkdir] Created dir: /Users/antverros/Documents/L2J/L2J_Server/build/bindist:     [sync] Removed 1 dangling directory from /Users/antverros/Documents/L2J/L2J_Server/build/dist     [sync] Removed 9 dangling files from /Users/antverros/Documents/L2J/L2J_Server/build/distcompile:    [javac] Compiling 1662 source files to /Users/antverros/Documents/L2J/L2J_Server/build/bin    [javac] Creating empty /Users/antverros/Documents/L2J/L2J_Server/build/bin/com/l2jserver/gameserver/scripting/scriptengine/package-info.classjar:      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/login/l2jlogin.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/login/L2J_Configurator.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/game/l2jserver.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/game/L2J_Configurator.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/tools/dbinst_cs.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/tools/dbinst_gs.jar      [jar] Building jar: /Users/antverros/Documents/L2J/L2J_Server/build/dist/tools/dbinst_ls.jarbuild:      [zip] Building zip: /Users/antverros/Documents/L2J/L2J_Server/build/L2J_Server.zipBUILD SUCCESSFULTotal time: 32 seconds
BTW

Code: Select all

[exec] Result:1
show red in all 4 occurrences


Was I thorough enough? :P

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 4:58 pm
by jurchiks
how about trying the unstable/beta branch? trunk is terribly outdated.

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 5:15 pm
by AntV
Isn't this kind of silly?
Isn't stable supposed to be more stable than the beta??

Also I believe that nightly builds was built only a few days old, so it shouldn't have any difference with my build...

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 5:31 pm
by JMD
AntV wrote:Isn't this kind of silly?
Isn't stable supposed to be more stable than the beta??
:twisted:

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 5:38 pm
by jurchiks
You tell that to the developers who can't program stable code. Or if they do, it takes them forever to do so.

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 6:14 pm
by AntV
Ok, I'll try the unstable one later today and will report back with more issues :P

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 6:32 pm
by jurchiks
You bet you will :D

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 8:44 pm
by AntV
WTF?!

It actually worked!!!
WHY???

EDIT/PS: Also I noticed it is quite faster to load than the "stable" one...

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 10:23 pm
by Zoey76
AntV wrote:WTF?!

It actually worked!!!
WHY???

EDIT/PS: Also I noticed it is quite faster to load than the "stable" one...
Hello there, stable version works good, and there are less known bugs than in beta branch.
The beta branch loads faster because we changed the way scripts are loaded and that decreased significativaly the loading time.

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 10:38 pm
by AntV
Zoey76 wrote:
AntV wrote:WTF?!

It actually worked!!!
WHY???

EDIT/PS: Also I noticed it is quite faster to load than the "stable" one...
Hello there, stable version works good, and there are less known bugs than in beta branch.
The beta branch loads faster because we changed the way scripts are loaded and that decreased significativaly the loading time.
Actually I am astonished that the stable build simply won't run on my machine while the unstable/BETA is working pretty good (at first glance).
TBH I have been lurking around the past days to check at what state both builds are and that was the reason why I tried to run the Stable one first.
It may be because I compiled it on Java 7 and the server runs on Java 8?
Why am I not having issues with the nightly build (which I believe is the same DP and Server as the latest stable)?
Is anyone else having the same problem?

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 10:43 pm
by Zoey76
Stable won't run on Java 8, only beta at the moment.

Nightly is beta.

Re: Could not find main class on my eclipse build

Posted: Sun Apr 06, 2014 10:45 pm
by AntV
Zoey76 wrote:Stable won't run on Java 8, only beta at the moment.

Nightly is beta.
That answered my question :D