Jump to content

Question

Posted

Ok so i have a problem running the server on ubuntu.I installed java and everything that's needed for it to run but i keep getting errors.I've tried searching on google for a while but nothing.I want to also mention that it was compiled on windows although i don't think that's a problem.I'm even using the same jdk on ubuntu i used to compile on windows.
 
So here are the errors with a modification where you see <PATH> it was edited for personal reasons and it's not needed anyway.

	GAMESERVER ERROR

    Exception in thread "main" java.lang.NoClassDefFoundError: <PATH>
    Caused by: java.lang.ClassNotFoundException: <PATH>
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    Could not find the main class: <PATH> Program will exit.
     
LOGIN ERROR     

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
            at <PATH>.loginserver.L2LoginServer.<clinit>(L2LoginServer.java:24)
    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
            ... 1 more


10 answers to this question

Recommended Posts

  • 0
Posted

Yeah the system could not find the JAVA

Well then what have i done wrong?If i run java -version on the terminal i get the java version i installed.So do i need to do something else like set JAVA_HOME on some files or things like that?

  • 0
Posted

It wasn't a java problem as i suspected.It was something so simple and balrog, you didn't help me at all.

The problem was in the loop.sh and it was pointing to a wrong folder.

  • 0
Posted

depends on the pack you use... old packs specially interludes are sucked on linux back time.. make your .sh files its easy

also try to run them as super user

  • 0
Posted

If you are running L2J Interlude or Freya you need Java 7, also please check if you really have installed correctly Java because this error appears only when you don't have java installed.

I would also recommend you to reboot the mashine after installing java software.

Good luck.

  • 0
Posted

I already said it's not a java problem but a .sh that wasn't pointing to the right folder.I solved that problem.Thanks anyway.

k, locked.

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

    • Dear players, From April 19 to April 27 inc., the Bonus Start event will be active. It’s designed to help new and low-level characters get started more easily.   All characters that meet one of the following conditions: — created less than 3 days ago (regardless of level), — currently level 20 or below, — created during the event period, will receive upon login: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each).   Event items will be removed approx. 09.05.2025 Server rates will be increased to x2.25. Take this chance to start your journey with ease or bring an old hero back into the fight — it’s the perfect time to test your strength! Open Beta Test is started!  Helper cats are waiting in towns — talk to them to receive the necessary equipment and level up your character. Siege Schedule:  - April 13 at 16:00 (GMT+2) – Innadrile Castle - April 14 at 20:00 (GMT+2) – Bandit Stronghold - April 15 at 20:00 (GMT+2) – Devastated Castle 📌 During the OBT, players who report bugs will receive CoL:   - 1 CoL for each reported staticmeshes bug (e.g., walking through textures, stairs, etc.) - 2 CoL or more for server-related issues (depending on severity) You can report bugs on the forum. The Open Beta Test will run approximately until April 15 at 23:00 (GMT+2). Your activity and feedback will help us improve the game.   Download links: Download client | Download updater 
    • begin if (user.dead) then begin delay(555); Engine.GoHome(rtCastle); print('User dead, going to castle..') end; end.  
    • Hello everyone. Long time no see. I've been trying to play L2 on my 4k monitor, however the UI is extremely small.  I checked around the internet and couldn't find a guide on how to keep the resolution high and the UI size a bit bigger. I either get small UI + full resolution (correct resolution of monitor), or normal sized UI but resolution set to full HD (which doesn't really look good on a 4k screen). Adjusting scaling on display settings doesn't change the UI just the text on L2. Does anyone know a way to increase the UI size only and keeping the screens resolution same (4k) ? I'll share a screenshot as an example, and it 's not even full screen mode. https://freeimage.host/i/3cvPVnI  
    • Hello guys. I want to know if there is a way(script or something) to make character go to castle after death in adrenaline bot
    • hahahahahahahahahahhaaahahaha
  • Topics

×
×
  • Create New...