No need for Xerces jars since Sun includes it in the jvm?

Hey Everybody,
If one would like to use Xerces in a java app, why should they download it from Apache when it's included in Sun's jvm releases as of 1.4?
I noticed that the "rt.jar" in Sun's jvm for Windows contains an apache folder: jdk1.6.0_11\jre\lib\rt.jar\com\sun\org\apache\,
that contains the following apache folders: bcel, regexp, xalan, xerces, xml, xpath
How does one tell what version of Xerces is being released with a particular Sun jvm release? I looked all over the Sun site - it seems they haven't documented that they are using files from Xerces. They even took the trouble of burying the "org/apache" folder down under the "com/sun" folder -- as if to hide the fact that apache is being used....maybe to take credit for it to make it look like the functionality was developed by Sun?
Is there a chance that one could successfully compile java code that has references to Xerces classes where the developer's project does not contain Xerces jars, but instead relies on the Sun bundled xerces classes -- and while that code would compile file, there could exist runtime exceptions due to potential classes from Xerces that Sun did not include in its jvm -- while if the project did include the Xerces jars - there would be no runtime errors?
Thanks!

EnNuages wrote:
Hey Everybody,
If one would like to use Xerces in a java app, why should they download it from Apache when it's included in Sun's jvm releases as of 1.4?One reason could be because the apache one is newer and thus is better in some way.
>
I noticed that the "rt.jar" in Sun's jvm for Windows contains an apache folder: jdk1.6.0_11\jre\lib\rt.jar\com\sun\org\apache\,
that contains the following apache folders: bcel, regexp, xalan, xerces, xml, xpath
How does one tell what version of Xerces is being released with a particular Sun jvm release? I looked all over the Sun site - it seems they haven't documented that they are using files from Xerces. They even took the trouble of burying the "org/apache" folder down under the "com/sun" folder -- as if to hide the fact that apache is being used....maybe to take credit for it to make it look like the functionality was developed by Sun?
No.
More likely the choice of location was without thought. Or because they might want to change it or remove it.
Is there a chance that one could successfully compile java code that has references to Xerces classes where the developer's project does not contain Xerces jars, but instead relies on the Sun bundled xerces classes -- and while that code would compile file, there could exist runtime exceptions due to potential classes from Xerces that Sun did not include in its jvm -- while if the project did include the Xerces jars - there would be no runtime errors?No. You can't compile using classes that don't exist.

Similar Messages

  • What are the parts i will need for my ipod since my ipod screen remains completly blank white

    what are the parts i will need for my ipod since my ipod screen remains completly blank white

    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I have been requested the certificate for iOS development since 4 days ago, but the result is still pending approval. So how many days should i wait?

    i have been requested the certificate for IOS Development since 4 days ago, but the result is still pending approval. So how many days should i wait?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • Will playing excessive need for speed  games on my macbook pro damage the arrow keys(i play using them) ??

    hey guyz i wanted to ask whether playing excessive (1-2 hours daily) need for speed carbon on my macbook pro using the arrow keys to control the car damage the arrow keys of the MBP??
    pls answer asap i am worried..

    I don't think that you have to worry about arrow keys because they won't damage with their use (unless you hit heavily these keys). Using games, there are other things to worry, as the temperature of the Mac, but fans will turn on automatically when your Mac needs

  • Since Virtru advertises full encryption with no need for recipient passwords, why doesn't Thunderbird do the same?

    Virtru coming out with this "full encryption-no need for recipient to know a password", just clicks to affirm email address is correct. Works with Mozilla browser and email: Outlook, gmail, others.

    Well, you have to ask Virtru why they don't provide an add-on for Thunderbird.
    Thunderbird itself supports both cryptographically signing the message and encrypting it, based on the S/MIME. See [http://kb.mozillazine.org/Message_security this article] for details.

  • What needs to be released to avoid memory leaks in the jvm?

    I've got a C application server that makes Java calls to process requests.
    Eventually, the JVM runs out of memory, I assume because my C code is leaking references.
    My question is... what references should I be freeing? I am freeing local/global object references, but it still leaks memory.
    Should I also be freeing classIds? Method ids? Is DeleteLocalRef() the way to do that?
    Thanks,
    Jeff

    The simple answer is that you are responsible for deallocating every single reference (basically anything that isn't either a fieldID or a methodID) that is returned from a JNI call. The return value from each JNI call is a newly allocated local reference that you must delete with a call to DeleteLocalRef. For example, you must delete the jclass returned by FindClass() or the jthrowable returned by ExceptionOccurred(). In addition to that, you must also ensure that you delete any global references that you explicitly allocate yourself.
    Notice that the rules change, when you are executing from within the context of a native method invoked from the JVM. In that case, the JVM will automatically clean up any local references that are left over once the native method returns. Even then, though, it's smart to be careful with local references, because you can easily exceed the maximum number of local refs, or hold on to excessive amounts of objects, or hold onto objects for excessive amounts of time, because none of the local refs are deallocated by the VM until the native method actually returns.
    Local reference management is a real pain in the butt in JNI. For example, it took me quite some time to get it right in Jace.
    God bless,
    -Toby Reyelts
    Check out the free, open-source, JNI toolkit, Jace - http://jace.reyelts.com/jace

  • HT201302 Would there be any need for drivers in Windows 8.1 so that the Iphone 5 can show up on the computer device view?

    Apple Iphone 5 transfer to and from computer on a Windows 8.1 64 bit machine? Do I need to download a driver so that the computer will recognize the device?

    Hi,
    For Visual Basic 6 questions, read the post at the following address
    http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Kate Li
    TechNet Community Support

  • Labview Programmer needed for project work in Milwaukee Area or over the internet

    We have a project I need to get done before summers end and we have majotiy of the code. My company builds robotic systems which we use for industrial inspections mainly in the petrochemical industry.  These robotic systems work with a ultrasonic systems which we use to take thickness measurements of piping and pressure vessels using ultrasound.   We have the ultrasound equipment and most of the software as said previously, we just need it polished up and some additions made.  Here is a link from NI which is simular to what we do and you can even download the code and have a look at there code: http://zone.ni.com/devzone/cda/epd/p/id/3618 . Our code is a bit more complex but you get the picture. 
    This position is not a full time position as of yet.  We are looking for someone to work with us on a contract basis for now. We need someone experienced with the following; Data aquisition, Data analysis, Experience with RF, USB comunication.  We perfer to hire somebody local but if we cant we can can do this over the internet.  If you are interested, give us a reply with contact info.  Thanks.
    Regards,
    Bill

        Bill,
    We are able to offer you the help you need on
    this.  I work for a LabVIEW/test-system consulting group based here out
    of Salt Lake City...not too far if a quick trip is needed.  Among the
    six of us, four of us are former NI employees and we count with a lot of LabVIEW experience and regularly do
    contract work, local and remote.  This sounds interesting and right up
    our alley as far as experience goes.  I'd refer you to our website for
    further info about different projects that we've done for many
    clients.  www.mooregoodideas.com.
    If this seems workable for
    you, feel free to shoot me a note at [email protected]  I'd be
    curious to know more about what you're after and how we can help you
    out. 
    Thanks,
    Jim

  • Scrolling solution needed for pdf imported to Cp 8 Responsive on the iPad

    Using Cp 8, Responsive Projects, I imported a pdf (through the library import button) and placed it on a slide.  When published (for devices), the pdf can be viewed on a computer and an iPad (if the Acrobat Reader app is installed).  However, it can only be scrolled on the computer (a PC).  The iPad just displays the first page.
    Does it need a scrolling button or slider for the iPad?  Does anyone have a solution for such?  Russ_E offered a solution for the TOC.  Would something similar work to view a pdf on the iPad?
    Thanks in advance.

    jerryfromtorrance wrote:
    What version of GB is needed to open .band files created in GB for the iPad.
    6.0.2
    jerryfromtorrance wrote:
    I am running GB '08 on my desktop PPC G5 with OS X 10.5.8, so I can't go to GB '11. Any solution?
    although i ran GBX6 under 10.5.8, i do believe an intel processor is required. that means that the only complete solution would be a new computer, i'm afraid.
    the best you could do is export each track as an audio file from GBi and drop them into your GBX project

  • HT4904 I have a Macbook Pro purchased Nov. 2011 and need a installation CD since I can not repair the HD from the utility program on the Mac.  Seems a **** to get this from the internet.  How can I proceed?

    Where can I find an Mac OS X  10.7.4.Install disc for my Macbook Pro please?  I have been searching for several hours now and can not find it anywhere.  The internal repair function is not able to fix the Macintoch HD.  Please help.  Thanks

    Thank you for your answer.
    However, I am not a mac, neither computer specialist.  I also have MacKeeper installed and they give me following instructions ;
    Start from your Mac OS X Install disc: Insert the installation disc, then restart the computer while holding the C key.
        When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
        Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
        Click the First Aid tab.
        Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
        Select your Mac OS X volume.
        Click Repair. Disk Utility checks and repairs the disk.
    You should get the cd somewhere
    Yes, I can still use my MB but not of the repair functions seems te help.
    Is your suggestion able to repair the HD as well?  When running disk utillities he tells me that the HD needs to be repaired.
    Thanks for your comments.

  • Code needed for "putting waveform graphs and 8bit images in the same window by Windraw"

    Hi Micheal, please sent the code example for my question:"putting waveform graphs and 8bit images in the same window by Windraw" , thanks.

    You can start from here ...
    Hope that helps,
    Michael
    Attachments:
    tester.vi ‏97 KB

  • Can I write a script to change Firefox to 32 bit when it detects the need for it and switches back when I leave the site?

    Sometimes I go to a website and Firefox 4 gives me a yellow bar notice "This site requires a plug-in for 32 bit mode.
    Click to restart in 32 bit mode."
    #1. Does Firefox then remain in 32 bit until I restart it? Or does it automatically revert to 64 bit when I surf to a different site?
    #2. Does anyone know a hack script to trigger Firefox on appearance of this warning to automatically restart in 32 bit.. and just as importantly, to shift it back to 64 bit upon cruising elsewhere??
    Is this asking too much? Sees like a cool improvement to me...

    # Close Firefox
    # Open the Applications folder in Finder
    # Right click or control-click the Firefox.app icon
    # Select "Get Info"
    # Select or deselect "Open in 32-bit mode"
    # Close the "Firefox Info" window
    # Restart Firefox

  • For Safari, on web pages, including this one, the use of ' (apostrophe) causes erratic behavior in text boxes. A contraction such as "I'v |e " has caused the cursor to backspace, displacing the e when the space bar is hit, or causes a juAsk your question.

    For Safari, on web pages, the use of ‘ (apostrophe) causes erratic behavior in text boxes. A contraction such as “I’v |e “ has caused the cursor to backspace, displacing the e when the space bar is hit, or causes a jump out of the text box and a return to the top a a page when used for the first time right at the beginning of text.
    Other browsers do not have this problem. When will Apple fix this problem?

    From the menu bar, select
    Edit ▹ Substitutions
    and uncheck Text Replacement.

  • For some reason , since Firefox's latest update, the browser resets everything I do to it each time I restart my computer, How can I fix this?

    Recent Update has messed up my firefox browser. If I set a new homepage, the next time I turn-off then turn on my computer the homepage is reset to default. Any sort of setting I change, reverts to default if I turn off my computer and turn in on again. Please advise!

    Please see the KB article at:
    [[https://support.mozilla.com/en-US/kb/Preferences%20are%20not%20saved?s=preferences+not+saved&as=s]]
    It explains what to do if your preferences are not being saved.
    You may want to check that you have the latest updates. To check go to:
    [[http://www.mozilla.com/en-US/plugincheck/]]

  • Need a signed JAR that lasts longer than a year

    We need to sign JARs but we can't use the standard Thawte or Verisign root CA. Both of them expire in a year. Since my company does not own the servers on which our application is installed, we can't revisit our customer's servers just because the signed JAR files have expired.
    When I look at the list of Root CAs that Web Start recognizes, I see some personal CAs and and server CAs.
    thawtepersonalfreemailca (Thawte Personal Freemail CA)
    thawtepersonalbasicca (Thawte Personal Basic)
    thawtepersonalpremiumca (Thawte Personal Premium CA)
    thawteserverca (Thawte Server CA)
    cybertrust (GTE CyberTrust Root)
    verisignserverca (Secure Server CA)
    thawtepremiumserverca (Thawte Premium Server CA)
    Has anyone had any success signing JAR files with these? I'm puzzled. I thought that a server certificate could only be used to run a secure (SSL) server. Can you sign JAR files with it?
    Likewise, can I use a 'personal' CA to sign a JAR? Are there any drawbacks in doing so?

    We need to sign JARs but we can't use the standard
    Thawte or Verisign root CA. Both of them expire in a
    year. Since my company does not own the servers on
    which our application is installed, we can't revisit
    our customer's servers just because the signed JAR
    files have expired.You have a misunderstanding here. The expiry date is related to the certificate only, not the jar file signed with it. I.e. you can only sign things with your certificate before the expiry date. After the expiry date, you will not be able to use that certificate anymore for signing. But everything you have signed, while the certificate was valid, will remain valid. Eventhough the certificate will expire, whatever is signed with it remains valid for eternity.
    When I look at the list of Root CAs that Web Start
    recognizes, I see some personal CAs and and server
    CAs.
    thawtepersonalfreemailca (Thawte Personal Freemail
    CA)
    thawtepersonalbasicca (Thawte Personal Basic)
    thawtepersonalpremiumca (Thawte Personal Premium CA)
    thawteserverca (Thawte Server CA)
    cybertrust (GTE CyberTrust Root)
    verisignserverca (Secure Server CA)
    thawtepremiumserverca (Thawte Premium Server CA)
    Has anyone had any success signing JAR files with
    these? I'm puzzled. I thought that a server
    certificate could only be used to run a secure (SSL)
    server. Can you sign JAR files with it?Yes, I have had success with the Thawte Personal Freemail Certificate. As the name suggests, it is free. What is not obvious from the name is that it can also be used to sign jar files. To obtain the certificate is free, however you will want to become a trusted member, which you can only become by being notarized. This will most likely cost you a bit (cost me ca. US$12). Then your certificate will be fully trusted. Here is a writeup on how to use your free Thawte certificate for jar signing: http://www.dallaway.com/acad/webstart/.
    Likewise, can I use a 'personal' CA to sign a JAR? Are
    there any drawbacks in doing so?See above.
    Good luck.
    - Daniel

Maybe you are looking for

  • Need to view .cashe files in Safari

    I am able to find a lot of files with long path numbers (Example: 0469048316-1542506734.cache), and imagine I will have to look through quite a few to find the right one... but... I don't know HOW to view the .cache files. Can anyone help, using easy

  • How to protect my images

    Hi, Here is my web app file structure: Tomact Webapps MyApp WEB-INF jsp >>>>>> 1.jsp >>>>>>2.jsp To protect my jsps from direct access from users, I put them under WEB-INF. Here is my 1.jsp <html> <body> <img src="1.jpg"/> <img src="2.jpg"/> </body>

  • Setting up Weblogic 6.1 as Windows Service

    Hi All, I have installed my weblogic 6.1 server and also installed it as the windows service. Thru service my server starts up but its unable to run my application. If I start my server from Command Prompt then the application works fine. When server

  • Ipad won't sync after updating to snow leopard

    Any help available regarding a non-syncing ipad first gen, after updating to snow leopard on my imac?  The ios software on ipad is up to date, and the snow leopard version is also up to date.  The computer will not even recognize that the ipad is con

  • [svn:fx-trunk] 9328: Fixing SDK-22462: Event dispatched is not as expected in Tree

    Revision: 9328 Author:   [email protected] Date:     2009-08-14 17:02:35 -0700 (Fri, 14 Aug 2009) Log Message: Fixing SDK-22462: Event dispatched is not as expected in Tree For this, the issue is really that TreeItemRenderers assume that no click eve