Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.apache.log4j.Logger

 
Yudi Ono
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i'am new to hibernate
when i compile the program the result is this :

[root@server-area2 Software]# java -jar replikasi.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at Replikasi.MainTarikAction.<clinit>(MainTarikAction.java:24)
at Replikasi.MainAction.main(MainAction.java:17)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
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)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 2 more


what could be wrong?

i already put log4j-1.2.15 in eclipse lib classpath, when i ran the compiler in eclipse, it seems to be fine, but when i run it under linux
the error came up.

thanks

regards
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yudi Ono wrote:i already put log4j-1.2.15 in eclipse lib classpath, when i ran the compiler in eclipse, it seems to be fine, but when i run it under linux the error came up.


How is your linux environment setup? what is this replikasi.jar? What is inside it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic