Solved

Java, setting a CLASSPATH within a manifest of a jar

Posted on 2014-01-16
2
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

628 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