Solved

Java, setting a CLASSPATH within a manifest of a jar

Posted on 2014-01-16
2
271 Views
Last Modified: 2014-01-17
I do not understand the rules of setting a classpath within a manifest of a jar

I seem to get it to work and then not get it to work.  I only know you cant use wildcards from the documentation I have read so far


Could someone please post an example of how to wrap around more than one line for the classpath within a manifest of a jar

Could you please post more than one example?

Thanks


Thanks
0
Comment
Question by:Los Angeles1
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39786801
That, my friend, is quite a tricky issue. Here's one answer:

 Main-Class: PackTest
Class-Path: /tmp/root/bin1/ 
 dep2.jar

Open in new window


0000000: 4d61 696e 2d43 6c61 7373 3a20 5061 636b  Main-Class: Pack
0000010: 5465 7374 0a43 6c61 7373 2d50 6174 683a  Test.Class-Path:
0000020: 202f 746d 702f 726f 6f74 2f62 696e 312f   /tmp/root/bin1/
0000030: 200a 2064 6570 322e 6a61 720a 0a          . dep2.jar..

Open in new window


If you're using Windows, your line feeds will be 0x0d0a, not 0x0a
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39787912
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Which is the latest version of Apache Tomcatl 3 49
replace a word with other 1 40
egit plugin on eclipse 8 27
Windows 10 IE Certificate Issue 10 41
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now