Solved

Java, setting a CLASSPATH within a manifest of a jar

Posted on 2014-01-16
2
281 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jsp login check 12 67
How to determine if a string is a valid SHA value 7 58
ejb entity bean example 2 59
JDBC performance 8 35
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

710 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