Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath issue

 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey JavaGurus,

Ive packaged my POJO application in a JAR file together with its third party libraries such as Log4j.

The structure of the executable jar file is as follows:



The issue Im having is that when I execute

I get the following error:


Seems as if Pojo.java cannot find my log4j.jar files.
So the question is:
How do I set the classpath to refer to a library jar file (log4j.jar) that is contained in another jar file?

Thanks in advance!

Kind regards
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't nest .jar files. I was going to try:

JSmooth

but I haven't tried it yet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic