Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

What is the concept of endorsed directory??

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

Can anyone let me know what is the concept of endorsed directory in java?
Suppose I have a class called Some.class which is present in two jar files named file1.jar and file2.jar.

Suppose I have this directory structure:

lib\
lib\endorsed

And suppose I have kept file1.jar in the 'lib' folder and file2.jar in lib\endorsed, which version of Some.class will get called? From file1.jar or from file2.jar?

Thanks in advance,
Pankaj
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For a very few special packages -- the org.omg CORBA packages, for instance -- you can override the version that comes with your JRE by dropping the jars into an "endorsed" directory. These are packages that implement "endorsed standards" -- basically things that get shipped with the JDK but that are governed by some third-party standards body. Anyway, this only works for packages on this short list, and in general, most jars in such a directory are just going to be ignored.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAXB and JAX-WS are probably the packages most frequently updated in that way, and JAXP to a lesser degree.
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic