I've been over my code for days and can't create a Jar file to run it out of the Eclipse
IDE.
The Jar file is created successfully, but I keep getting the following error when trying to run the
Java Archive:
Exception in
thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at edu.pucrs.library.bookRenewal.BookRenewal.<clinit>(BookRenewal.java:17)
My Manifest.MF is exactly as:
Manifest-Version: 1.0
Main-Class: edu.pucrs.library.bookRenewal.BookRenewal
ClassPath: lib/log4j-1.2.8.jar,lib/activation.jar,lib/commons-httpclient.jar,lib/HTTPClient.jar,lib/mail.jar
...and my app structure looks like this:
edu
|- pucrs
|- library
|- bookRenewal
lib
|- log4j-1.2.8.jar
The main method is under the bookRenewal package, as showed in the Manifest.
I'm absolutely out of ideas here, guys. Any insight is much appreciated. Many thanks in advance.