Jump to content
  • 0

[help]Problem with Linux Debian


Scotar

Question

Hello, I have purchased a dedicated server with Linux Debian. I have installed successfully mysql and java. I start the game and login servers and I run *cat* command to check stdout.log file. It appear's the following problems:

 

Problem at gameserver:

Exception in thread "main" java.lang.NoClassDefFoundError: com/it/br/gameserver                                                                                         GameServer
Caused by: java.lang.ClassNotFoundException: com.it.br.gameserver.GameServer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: com.it.br.gameserver.GameServer.  Program will exit.

 

Problem at loginserver:

loading login config
java.io.FileNotFoundException: ./config/Loginserver.properties (No such file or                                                                                         directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at com.it.br.Config.load(Config.java:2554)
        at com.it.br.loginserver.L2LoginServer.<init>(L2LoginServer.java:106)
        at com.it.br.loginserver.L2LoginServer.main(L2LoginServer.java:57)
Exception in thread "main" java.lang.Error: Failed to Load ./config/server.prope                                                                                        rties File.
        at com.it.br.Config.load(Config.java:2592)
        at com.it.br.loginserver.L2LoginServer.<init>(L2LoginServer.java:106)
        at com.it.br.loginserver.L2LoginServer.main(L2LoginServer.java:57)

 

What is the problem? Please help me because I have to fix this problem and start working on server. Sorry for my bad English. Thank you!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Problem at loginserver:

loading login config
>>>     java.io.FileNotFoundException: ./config/Loginserver.properties <<< (No such file or                                                                                         directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at com.it.br.Config.load(Config.java:2554)
        at com.it.br.loginserver.L2LoginServer.<init>(L2LoginServer.java:106)
        at com.it.br.loginserver.L2LoginServer.main(L2LoginServer.java:57)
>>>>    Exception in thread "main" java.lang.Error: Failed to Load ./config/server.prope                                                                                        rties <<<File.
        at com.it.br.Config.load(Config.java:2592)
        at com.it.br.loginserver.L2LoginServer.<init>(L2LoginServer.java:106)
        at com.it.br.loginserver.L2LoginServer.main(L2LoginServer.java:57)

 

if im right, you must check your configs, or some of your files missing.

Link to comment
Share on other sites

  • 0

I found what was the problem on loginserver. I had to rename loginserver.properties to Loginserver.properties and server.properties to Server.properties. Now loginserver successfully started! But now I have to find gameserver's problem to fix it. Any ideas about the problem?

Link to comment
Share on other sites

  • 0

I change pack.Now I use L2JFrozen but know it appears these messages:

Loginserver:

-bash: ./LoginServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory

 

Gameserver:

-bash: ./GameServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory

Link to comment
Share on other sites

  • 0

I change pack.Now I use L2JFrozen but know it appears these messages:

Loginserver:

-bash: ./LoginServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory

 

Gameserver:

-bash: ./GameServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory

Search on google how to run a l2j server on linux.

Link to comment
Share on other sites

  • 0

I fixed this problem, but now I have another problem  :-\. Loginserver started without problem, but gameserver has a problem with VM.

 

I use l2jfrozen pack!

 

GameServer stdout.log

Error occurred during initialization of VM
Too small initial heap for new size specified

 

GameServer_loop.sh

#!/bin/bash

DBHOST=(ip)
USER=(user)
PASS=(pass)
DBNAME=(db)

err=1
until [ $err == 0 ];
do
        #mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
        #mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME|zip "backup/`date +%Y-%m-%d_%H:%M:%S`-l2jdb_gameserver.zip" -
        [ -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"
        [ -f log/chat.log ] && mv log/chat.log "log/`date +%Y-%m-%d_%H:%M:%S`-chat.log"
        java -Dfile.encoding=UTF- -Xms1g -Xmx3g -Xmn512m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=768m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -$
        err=$?
        sleep 10
done

 

I think is something from this line with ram configs.

java -Dfile.encoding=UTF- -Xms1g -Xmx3g -Xmn512m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=768m

 

Thank you!

Link to comment
Share on other sites

  • 0

I fixed this problem, but now I have another problem  :-\. Loginserver started without problem, but gameserver has a problem with VM.

 

I use l2jfrozen pack!

 

GameServer stdout.log

Error occurred during initialization of VM
Too small initial heap for new size specified

 

GameServer_loop.sh

#!/bin/bash

DBHOST=(ip)
USER=(user)
PASS=(pass)
DBNAME=(db)

err=1
until [ $err == 0 ];
do
        #mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
        #mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME|zip "backup/`date +%Y-%m-%d_%H:%M:%S`-l2jdb_gameserver.zip" -
        [ -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"
        [ -f log/chat.log ] && mv log/chat.log "log/`date +%Y-%m-%d_%H:%M:%S`-chat.log"
        java -Dfile.encoding=UTF- -Xms1g -Xmx3g -Xmn512m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=768m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -$
        err=$?
        sleep 10
done

 

 

I think is something from this line with ram configs.

java -Dfile.encoding=UTF- -Xms1g -Xmx3g -Xmn512m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=768m

 

Thank you!

 

That's right, you have to geminate it's memory usage

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Yes, it is, it's not hard to do (if you know what you're doing); just time consuming.   To make some things clear: 1. You can not create .ukx files with animated skeletalmeshes inside, by using any of the freeshared L2Editors (basically, no support for .psa files) 2. You need a patched UT2003/UT2004. You can either get your own ut2004 and download Gildor's patch from his web, or use any of these: When you use these, you should be able to import both .psk and .psa animations > link the skeletalmesh to the psa > save as .ukx > use ut2down to convert the file to l2 format > encrypt the .ukx with standard l2 encryption (you can use mxc encdec, you can find it in the folder of the l2editor i shared). Your best bet is to use pawnviewer (aka dev mode) to test that. If you have troubles with that process then leave a reply here, otherwise, if it works correctly, you can move on to adding missing animnotify classes to you unrealed, then proper animnotifies, sounds, effects or w/e is missing from your .ukx files. Keep in mind that this is overall not difficult but a huge amount of work (unless you're good at scripting/macros) since you'd need to manually re-create every single animnotify, by hand. If you have doubts or i wasn't clear enough let me know here. (in case you don't know what an animnotify is: UDN - Two - AnimNotifies (unrealengine.com) )  
    • Welcome to JewStor Service!!!   ❖Ready-made verified wallets, exchanges, business banks and to order accounts. ❖EU/UK/US/DE Stuff: 100% Verified! Reliable financial tools for your business. ❖Popular items available include: Stripe business + Payoneer, Deutshce Bank, BBVA ES, Xapo Bank, Revolut business / personal, Santander Bank, Wallester business, Bitsa EU, Binance EU, Qonto Business, Blackcatcard EU, Shopify Payments, ICard EU, N26 EU, Naga Pay EU, Paysera EU, Mistertango Business and many others.
    • Custom = everything that is not part of my H5 client, such as Aegis skin, Death Knight skin, Constructor skin, Golden Valakas skin, an example is the pack containing 3 Golden Valakas skins+cloaks, to give you an idea, this pack consumes almost 200MB within the system, another example of custom is the Hunter Head set made by Asuki, almost 100MB within the system, every custom item added to the client, specifically within the system folder will increase the consumption of your client's virtual ram memory, the more custom added there, the faster your client will close due to critical. Around 4 to 5 custom packs that I removed from the system and made my client reach the ram virtual limit only after more than 40 hours online, in other words; It is only worth adding custom items to the system folder if it is very well compressed, maximum up to 10MB per custom pack (This pack below in the photo, only it inside your client - system consumes almost 200MB, when I removed this pack inside the system it increased the game's lifespan by almost 4h during my tests)
    • ready pack for sale with lucera files made from scratch price is 350 euros without the license the server is x30 rate the server is there to see everything test ie.. there have been several changes everything works there will be support for everything for as long as possible please, can you send me a message here, there is complete transparency in everything
    • The author has been using an alternate account under the name @project166 to promote their services, which violates our RULES. Additionally, the author does not adhere to our guidelines regarding the inclusion of pricing information.     Topic Locked.
  • Topics

×
×
  • Create New...