Page 1 of 1

Could not find the main class. [Freya]

Posted: Sun Feb 06, 2011 5:55 pm
by hiroshima
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

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

Posted: Sun Feb 06, 2011 5:59 pm
by _DS_
Look on the "Caused by:" line.

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

Posted: Sun Feb 06, 2011 6:12 pm
by hiroshima
Something wrong in build.xml or .bats?
i dont get it.

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

Posted: Sun Feb 06, 2011 10:52 pm
by hiroshima
Okey, the reason isnt in pack nor eclipse... its subversion prolly... now i need to find what exactly

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

Posted: Mon Feb 07, 2011 1:16 am
by _DS_
Open manifest and you will see. Already discussed, btw.

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

Posted: Mon Feb 07, 2011 2:17 am
by hiroshima
okey nice, for those who will have this same problem: check if your svn is not out of date.
thanks for all.

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

Posted: Mon Feb 07, 2011 2:23 am
by Zoey76
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