We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Could not find the main class. [Freya]

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
hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Could not find the main class. [Freya]

Post by hiroshima » Sun Feb 06, 2011 5:55 pm

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: Latest, downloaded yesterday from repository.
L2JDP Revision Number: Latest, downloaded yesterday from repository.

Well, i got strange problem...
take a look:
Image

I downloaded fresh files yesterday... added few things into core, and builded everything without any errors.
I cant run the server, nor register gameserver. Whats going on, any solution? Thanks!
Starting L2J Game Server.

Exception in thread "main" java.lang.NoClassDefFoundError: com/l2jserver/gameser
ver/GameServer
Caused by: java.lang.ClassNotFoundException: com.l2jserver.gameserver.GameServer

at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Unknown Source)
at java.util.jar.Manifest.read(Unknown Source)
at java.util.jar.Manifest.<init>(Unknown Source)
at java.util.jar.JarFile.getManifestFromReference(Unknown Source)
at java.util.jar.JarFile.getManifest(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
... 6 more
Could not find the main class: com.l2jserver.gameserver.GameServer. Program wil
l exit.

Server terminated abnormaly


server terminated
Last edited by hiroshima on Sun Feb 06, 2011 8:58 pm, edited 1 time in total.

_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Could not find the main class. [Freya]

Post by _DS_ » Sun Feb 06, 2011 5:59 pm

Look on the "Caused by:" line.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;

hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Re: Could not find the main class. [Freya]

Post by hiroshima » Sun Feb 06, 2011 6:12 pm

Something wrong in build.xml or .bats?
i dont get it.

hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Re: Could not find the main class. [Freya]

Post by hiroshima » Sun Feb 06, 2011 10:52 pm

Okey, the reason isnt in pack nor eclipse... its subversion prolly... now i need to find what exactly

_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Could not find the main class. [Freya]

Post by _DS_ » Mon Feb 07, 2011 1:16 am

Open manifest and you will see. Already discussed, btw.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;

hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Re: Could not find the main class. [Freya]

Post by hiroshima » Mon Feb 07, 2011 2:17 am

okey nice, for those who will have this same problem: check if your svn is not out of date.
thanks for all.

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6886
Joined: Tue Aug 11, 2009 3:36 am

Re: Could not find the main class. [Freya]

Post by Zoey76 » Mon Feb 07, 2011 2:23 am

hiroshima wrote:okey nice, for those who will have this same problem: check if your svn is not out of date.
thanks for all.
No problem. :P
Using Eclipse 4.11 - OpenJDK11 - MySQL 8.0.12 - L2J Server

Post Reply