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 »

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_ »

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 »

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 »

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_ »

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 »

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: 7005
Joined: Tue Aug 11, 2009 3:36 am

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

Post 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
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply