Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

java - Does the Class-Path in the MANIFEST.MF can only include jar Files?

I want to include class files in other directories, not the directory of the main class.

If I put these directories into the Class-Path property of MANIFEST.MF it doesn't work.

Why? Is there any solution except packing these classes into a jar File?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

A trailing slash would be required as mentioned in this link:

Class-Path Attribute


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...