Solved

Java, does the order in which jar files are specified within a manifest file matter

Posted on 2014-01-14
6
760 Views
Last Modified: 2014-01-15
Ina manifest of a jar file, does the order in which the jars are listed matter.

WHll the former fars be able to acess the later jars.  Will the later jars be able to access the former jars

Thanks
0
Comment
Question by:Los Angeles1
6 Comments
 

Author Comment

by:Los Angeles1
ID: 39780687
To clarify, I mean two jar files referenced with in the Rsrc-Class-Path: of the manifest
0
 
LVL 26

Assisted Solution

by:dpearson
dpearson earned 167 total points
ID: 39780910
The order doesn't matter (unless you had the same class name in two of the jars - which should never happen).  They can all see each other and classes from any one can access classes from any other.

Doug
0
 
LVL 37

Assisted Solution

by:zzynx
zzynx earned 166 total points
ID: 39781565
Order doesn't matter at all.

You can think of it as follows:
- unzip all jars in the same root directory (respecting the sub directories they include)
- all the class files you become in the root directory (and it's subdirectories) this way are now visible for each java program using these jar files.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 86

Accepted Solution

by:
CEHJ earned 167 total points
ID: 39782012
I mean two jar files referenced with in the Rsrc-Class-Path: of the manifest
Sounds like a custom header. The normal one is Class-Path, in which order is irrelevant
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39782759
:)
0
 
LVL 37

Expert Comment

by:zzynx
ID: 39784655
Thanx 4 axxepting
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

744 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

13 Experts available now in Live!

Get 1:1 Help Now