Multiple errors...

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
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Multiple errors...

Post by pokiokio »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4417
L2JDP Revision 7666

Okay...I just downloaded the latest freya rev, I modded the core, nothing outside gameserver. I compiled, made a new folder and unzipped everything. I installed the DB, fixed the configs, ran the server and it gave me that error:

Code: Select all

Starting L2J Game Server. Exception in thread "main" java.lang.NoClassDefFoundError: com/l2jserver/gameserver/GameServerCaused 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 moreCould not find the main class: com.l2jserver.gameserver.GameServer.  Program will exit. Server terminated abnormaly
I compiled a new fresh core, deleted old zips and it gave me the same error so, it's not my fault.

I have TONS of old server revs and every single one of them works perfectly. I also have tried the first Freya rev via the nightly releases when it first came out and it worked ok.

Please help.

P.S: I have searched but no solution...
Image
Prolly the youngest L2j user :P
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Multiple errors...

Post by janiii »

no, it is not our fault, you are doing something wrong. check wrong path to l2jserver.jar in you startup script.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

janiii wrote:no, it is not our fault, you are doing something wrong. check wrong path to l2jserver.jar in you startup script.

Code: Select all

./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer
That?

EDIT: To me it looks like it wants me to put the jar in the libs folder, so I did, and I replaced the one on the GS folder, same thing...
Image
Prolly the youngest L2j user :P
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Multiple errors...

Post by kotk »

pokiokio wrote:

Code: Select all

./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer
You sure that is a ;? Should be a :
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

kotk wrote: You sure that is a ;? Should be a :
I tried it and the error is shorter O.o

Code: Select all

Starting L2J Game Server. Exception in thread "main" java.lang.NoClassDefFoundError: com/l2jserver/gameserver/GameServerCaused 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)Could not find the main class: com.l2jserver.gameserver.GameServer.  Program will exit. Server terminated abnormaly  server terminated
Image
Prolly the youngest L2j user :P
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Multiple errors...

Post by kotk »

And you put the l2jserver.jar back in the gameserver directory?
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

kotk wrote:And you put the l2jserver.jar back in the gameserver directory?
Of course I did.
Image
Prolly the youngest L2j user :P
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Multiple errors...

Post by kotk »

Can you post your GameServer_loop.sh?
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

kotk wrote:Can you post your GameServer_loop.sh?
I'm not using Linux but...here you go.

Code: Select all

#!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done 
the .bat:

Code: Select all

@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOptsREM If you are having troubles on server shutdown (saving data),REM add this to startup paramethers: -Djava.util.logging.manager=com.l2jserver.L2LogManager. Example:REM java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormalyecho.:endecho.echo server terminatedecho.pause 
EDIT: I tried the l2jserver.jar of the nightly build and it ran ok but I don't get why mine and even the clean compiled core won't work...
Image
Prolly the youngest L2j user :P
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Multiple errors...

Post by kotk »

Sorry, in Linux mode right now. Glad you tracked it down to your Build.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Multiple errors...

Post by _DS_ »

Wrong current directory.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

_DS_ wrote:Wrong current directory.
What do you mean?
Image
Prolly the youngest L2j user :P
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Multiple errors...

Post by _DS_ »

You need to change directory to the l2jserver's (where jar reside) because scripts use relative paths.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Multiple errors...

Post by tukune »

startGameServer.bat

Code: Select all

  @echo off+ cd /d %~dp0  title Game Server Console  :start  echo Starting L2J Game Server.
try it
User avatar
pokiokio
Posts: 259
Joined: Wed Mar 04, 2009 8:08 pm

Re: Multiple errors...

Post by pokiokio »

tukune wrote:startGameServer.bat

Code: Select all

  @echo off+ cd /d %~dp0  title Game Server Console  :start  echo Starting L2J Game Server.
try it
Tried it, still same.
Image
Prolly the youngest L2j user :P
Locked