• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNLP log4J Classnotfound Exception

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic