Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Manifest-only jar  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm in the process of compiling a Third-Party jar file. All the file is going to contain is class-path references to a whole bunch of jar files. i.e. there are no .class files in the JAR, only a class-path reference in the manifest file:

The manifest file contains this:
Class-Path: lib/a.jar lib/b.jar lib/c.jar

The problem I'm experiencing, is that I can run against the above jar, but cannot compile using javac against it. The compiler cannot seem to find the referenced jars. i.e I get "package xxx does not exist" errors

My classpath when executing against the .JAR, and when I compile against it is the same.

Any help would be appreciated.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!