CLASSPATH file and manifest

I do not understand the rules for setting the class path in the manifest of the jar file.

I think I earned, and then did not work. From the documentation that I have read so far, I only know that you cannot use wildcards

Can someone please post a link on how to set the classpath in the jar file

+4
source share
2 answers

Typically, you create manifest files using build tools like Maven or Gradle.

If you want to do this manually, you must use the following form:

Class-Path: jar1-name jar2-name directory-name/jar3-name

, http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html

+6

All Articles