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.



×
×
  • Create New...