Could not find main class on my eclipse build

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
Post Reply
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Could not find main class on my eclipse build

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Could not find main class on my eclipse build

Post by jurchiks »

how about trying the unstable/beta branch? trunk is terribly outdated.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Could not find main class on my eclipse build

Post 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...
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Could not find main class on my eclipse build

Post by JMD »

AntV wrote:Isn't this kind of silly?
Isn't stable supposed to be more stable than the beta??
:twisted:
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Could not find main class on my eclipse build

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Could not find main class on my eclipse build

Post by AntV »

Ok, I'll try the unstable one later today and will report back with more issues :P
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Could not find main class on my eclipse build

Post by jurchiks »

You bet you will :D
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Could not find main class on my eclipse build

Post by AntV »

WTF?!

It actually worked!!!
WHY???

EDIT/PS: Also I noticed it is quite faster to load than the "stable" one...
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Could not find main class on my eclipse build

Post 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.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Could not find main class on my eclipse build

Post 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?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Could not find main class on my eclipse build

Post by Zoey76 »

Stable won't run on Java 8, only beta at the moment.

Nightly is beta.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Could not find main class on my eclipse build

Post by AntV »

Zoey76 wrote:Stable won't run on Java 8, only beta at the moment.

Nightly is beta.
That answered my question :D
Post Reply