• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

JNLP log4J Classnotfound Exception  RSS feed

 
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??
 
Marshal
Posts: 24461
55
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
Marshal
Posts: 24461
55
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?
 
We don't have time for this. We've gotta save the moon! Or check this out:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!