Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4170950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:23:36+00:00 2026-05-21T00:23:36+00:00

In this document: http://download.oracle.com/javase/6/docs/technotes/guides/standards/ it is describing only a single non programmatic way to

  • 0

In this document: http://download.oracle.com/javase/6/docs/technotes/guides/standards/ it is describing only a single non programmatic way to override endorsed standards in Java (e.g. to provide a different TransformerFactory implementation etc…). by putting the jars in <java-home>\lib\endorsed

Is there a way to spefify an endorsed jar programmatically? (looking at Tomcat’s endorsed dir, I assume it is possible, after all Tomcat is written in Java)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T00:23:37+00:00Added an answer on May 21, 2026 at 12:23 am

    Tomcat also just sets the system property when starting the JVM, so uses the regular / documented way, as documented in the classloader ‘how-to’ (“Tomcat utilizes this mechanism by including the system property setting -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS in the command line that starts the container.”)

    Therefore, it’s not so easy to do it programmatically. I assume setting the system property after the JVM has been started has no effect (I didn’t test this).

    However, it is still possible: you just have to start another JVM from within your application, and set the system property there. Your application would have to first check if the endorsed dir is set, if yes run normally, and if not: use Runtime.getRuntime().exec(cmdarray) to ‘start itself again’ (with the system property set correctly of course). This ‘start itself’ is a bit complicated to get right, but it’s possible. The company I work for (http://www.day.com) uses it for all products, we call it ‘quickstart’. I believe we don’t actually set the endorsed dir, but we set the max memory (-Xmx..) if the current setting isn’t sufficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using 'git' to checkout chromium code by following this document: http://code.google.com/p/chromium/wiki/UsingGit And
Given an XML document like this: <!DOCTYPE doc SYSTEM 'http://www.blabla.com/mydoc.dtd'> <author>john</author> <doc> <title>&title;</title> </doc>
I made this bookmarklet: javascript:(function(){var s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');document.getElementsByTagName('body')[0].appendChild(s);$('#hldIntMain').hide();$('#fadeBackground').hide();return false;})() Formatted code: // Add in jQuery var
There is a document from 2006 http://docs.jboss.org/jbossas/guides/installguide/r1/en/html_single/ that describes using a GUI to select
$q = $_GET['q']; // Load and parse the XML document $rss = simplexml_load_file('http://search.twitter.com/search.atom?lang=en&q=$q&rpp=100&page=1'); This
I have this code: <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='800' height='470' id='Gen5Core' align='middle'><param name='allowScriptAccess' value='always'/><param name='allowFullScreen'
On our site www.foo.com we want to download and use http://feeds.foo.com/feed.xml with Javascript. We'll
First, check out this document first: http://htmlcleaner.sourceforge.net/doc/org/htmlcleaner/TagNode.html It have a function called: getAllElementsList(boolean isRecursive).
Please refer to this API. The link is: http://download.carrot2.org/stable/javadoc/org/carrot2/text/preprocessing/pipeline/CompletePreprocessingPipeline.html Class CompletePreprocessingPipeline Field Summary DocumentAssigner
I try to get data from server http://someserver12345.com If i download it for example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.