[SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
This is for a RuneScape Private Server.
This is on a CentOS Virtual Private Server.
Quote:
[8/16/11 9:11 PM]: Exception in thread "main" [8/16/11 9:11 PM]: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[8/16/11 9:11 PM]: at org.apache.mina.util.NamePreservingRunnable.<init> (NamePreservingRunnable.java:32)
[8/16/11 9:11 PM]: at org.apache.mina.transport.socket.nio.SocketAccepto r.startupWorker(SocketAcceptor.java:165)
[8/16/11 9:11 PM]: at org.apache.mina.transport.socket.nio.SocketAccepto r.bind(SocketAcceptor.java:141)
[8/16/11 9:11 PM]: at server.Server.main(Server.java:144)
[8/16/11 9:11 PM]: Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
[8/16/11 9:11 PM]: at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
[8/16/11 9:11 PM]: at java.security.AccessController.doPrivileged(Native Method)
[8/16/11 9:11 PM]: at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
[8/16/11 9:11 PM]: at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
[8/16/11 9:11 PM]: at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
[8/16/11 9:11 PM]: at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
[8/16/11 9:11 PM]: ... 4 more
This is the folder layout:
http://gyazo.com/c6a116fdf90f0839f2a2de6fe76eb9d6.png
Any help is appreciated!
If you need me to post any files, just ask :)
Add me on Skype/MSN/reply if you can help in anyway.
Reply.
Skype: jonathan.edwardshf
MSN: jonnye06madsmackdown@msn.com
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
A typical cause of this exception is that the required libraries are not on the class path. So are all the jars in the dependency folder on the classpath?
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
I have Private Messaged you, copeg, please answer :)
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
Communicating via private messages defeats the purpose of a public forum - your solution here might help others in the future, and this is lost via PM. I recommend reading about the classpath
PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)
As well as how to set it for your particular application (which I presume has some sort of help, documentation, etc)
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
I changed from CentOS to Ubuntu and I'm currently following a guide to install it correctly, but I'm going to sleep now. I'll be back tomorrow.
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
I don't use one, I just use Notepad++ :P
Re: [SLF4J] 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
The OP private messaged me as well, but I agree entirely with everything copeg said. Follow his directions, and if you still have questions, ask them here (not in a private message).