Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java, setting a CLASSPATH within a manifest of a jar

Posted on 2014-01-16
2
Medium Priority
?
285 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

721 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