wood burning stoves 2.0*
The moose likes Java in General and the fly likes Endorsed Standard Mechnaism in jdk 1.4.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Endorsed Standard Mechnaism in jdk 1.4.2" Watch "Endorsed Standard Mechnaism in jdk 1.4.2" New topic
Author

Endorsed Standard Mechnaism in jdk 1.4.2

Ketan Khairnar
Ranch Hand

Joined: Jun 28, 2005
Posts: 34
Hi ,
I have been moving code written in jdk 1.2 to jdk 1.4
Most of the part is done but we used xerces 1.4.4 then and now as we have moved codebase to jdk 1.4.2.

Jdk1.4.2 has xalan and crimson as part of rt.jar
I want to use xerces (either 1.4.4 or latest 2.7.1) as both can be worked upon jdk 1.4.2

is it mandatory to use xerces 2? (as xerces 1.4 still works with jdk 1.4.2 I guess)
This is being important as

1. We are planning to be jaxp compliant in next stage
2. How can I achieve endorsed standard mechanism here

I guess there is no preexisting endorsed dir as said on xerces faq on apache.org
any body who had done please guide me in this concept

As of now I am able to get
java org.apache.xalan.Version properly because it is part of rt.jar itself
but when I fire this(

code:

java org.apache.xerces.impl.Version

) on command line i get following error
=======================================================
Exception in thread "main"

code:

java.lang.NoClassDefFoundError: org/apache/xerces


========================================================
I tried this after putting xml-apis.jar and xercesImpll.jar in j2sdk1.4.2/lib/endorsed
This "endorsed" folder is created by me.
Please help me in this regard
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

You can't add new things to the JDK using the endorsed standards mechanism; you can only replace (some) existing things.

You could either put the xerces jars directly into jre/lib, as if they were standard extensions, or (more correctly) simply include them on your software's class path when you run it.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Endorsed Standard Mechnaism in jdk 1.4.2
 
Similar Threads
XML and Eclipse
This Weeks Giveaway:
java.lang.LinkageError in JAXB
Endorsed Standard Mechnaism in jdk 1.4.2
java.lang.VerifyError