• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP log4J Classnotfound Exception

 
Ali Yuruz
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Log4J as Logsystem. Wenn I start jnlp, i get the error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at client.Start$2.propertyChange(Start.java:115)

- Do I need to insert the jar in WEB-XML?
- or should I pack in the jar.
Can anybody help??
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the JNLP file there is a "jar" element. Its description (copied from the JNLP tutorial) says this:
Specifies a JAR file that is part of the application's classpath.

Notice it says "specifies a jar file" and not "specifies the jar file". So, you have several jar files you need to be in the application's classpath? Then you need the same number of "jar" elements in your JNLP file.
 
Ali Yuruz
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What means that?
Have you got the tutorial?
My jnlp part looks like that:
<resources>
<j2se version="1.5+"/>
<jar href="client.jar"/>
<jar href="log4j-1.2.15.jar"/>
</resources>
Here, log4j is the library that i want to add to my classpath.
Client.jar ist the main jar which holds the business logic.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ali Yuruz:
Have you got the tutorial?
I didn't post a link to the tutorial because I expected either that you had already read it, or that you would use "jnlp tutorial" as your google keywords to find it. Have you done neither of those things? What is your source of information for JNLP?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic