File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes org.apache.log4j.Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.apache.log4j.Logger" Watch "org.apache.log4j.Logger" New topic
Author

org.apache.log4j.Logger

Yudi Ono
Greenhorn

Joined: Aug 24, 2008
Posts: 12
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

Joined: Mar 24, 2008
Posts: 3775

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?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.log4j.Logger
 
Similar Threads
help with marcus questions
Why can't run?
Tomcat Error
Packageing a Jar does not work
Unsupported Class Version Error