How to add a java library?

Hello! Can some one help me on the following problem?
I am writing a DOM parser and I need to print out the modified xml file. So I want to use the write funcition defined in the com.sun.xml.tree.XmlDocument library. But this package is NOT included in JAXP package. Where shall I get this om.sun.xml.tree.XmlDocument library?
Any help is greatly appreciated.

The com.sun.xml.tree.XMLDocument class is not part of JAXP. It is part of Sun's parser. It is bundled with Sun's JAXP package. You can download Sun's JAXP package from http://java.sun.com/xml/jaxp/index.jsp
Thanks,
Rashmi

Similar Messages

  • How to add new Java version to Java Preferences?

    Greetings,
    I know Java 7 is not officially supported, but I know it works.
    I built 1.70.jre and put it in /Library/Java/JavaVirtualMachines, but I do not know how to add to  Java Preferences.
    Does anyone know where the list of Java versions is stored and how to add a version to it?
    Thanks

    Fixing the permissions did not fix it.
    I think there  to be a record somewhere of what version are where. That is probably set if you use am installer which I do not have. I only have the file I copied there.
    I found out that typing this in Terminal...
    export JAVA_HOME=/Library/Java/1.7.jre/Contents/Home
    ...temporarily sets that version to the one being used, but it is only for that Terminal session, and it still does not show in Java Preferences.
    I need to know how to get it into Java Preferences. It might be some command I don't know.

  • How to add an app library to LD_LIBRARY_PATH

    How to add an app library to LD_LIBRARY_PATH?

    You can do it with Automator, although it's harder than in Windows.
    Example:
    How to Launch Any App with a Keyboard Shortcut
    I like to press the Spotlight keyboard shortcut and then use type-ahead and Enter to launch. When Spotlight is open, if I start typing "wo" Microsoft Word will be highlighted and then I just press Enter to launch it.

  • How to add my video library to iPad g3 from MacBook Pro?

    How to add my video library to iPad g3 from MacBook Pro?

    What sort of videos are they, and what app do you want to sync them to ? If they were taken with your camera and they are in a format supported by the iPad, then you could sync them to the Photos app - with the iPad connected and selected on the left-hand side of your computer's iTunes, you can use the Photos tab on the right-hand side of iTunes to sync photos and videos (there is an 'include videos' tickbox on that tab) to the Photos app.
    Or you can sync them to the Videos app. If you can add them to your iTunes library (File > Add To Library) you can then use Movies tab (instead of the Photos tab) to sync them to the Videos app. If you can add them to your library but they don't sync over because they aren't in a supported format then try doing Advanced > Create iPad Version and then try syncing those versions.

  • How to add a new library to an existing java project

    Hi ,
    i just moved to writing java applications in jedit after working in eclipse for a while , in eclipse it was easy to add a new library jusr rightclick and add but how do i do the same when working with a text editor of jedit style and what do i need to change in order of javac.exe and java.exe to work properly , i tried google but i got no comprehensive article about it i'd appreciate a link or even better a simple explanation .
    thanks in advance .

    you just need to include it on your classpath

  • How to add a Java file from ejbModule to EJBCandidates ?

    Hi,
    In my java client proxy project, I have got the EJBCandidates generated. But I need to add one more java source file from ejbModule to EJBCandidates.
    If I right click on the java file I need to add, am not getting that option for adding.
    <b>Please help me how to add java source file from ejbModule to the EJBCandidates.</b>
    Thank you.

    Great... :-)
    Thank you very very much xHacker :-)
    That what just what I needed.

  • How to add to java classpath?

    I am wondering how to add/implement to java classpath. I think I might be missed out the classpath thing so my program doesn't work. I keep getting error message like: "cannot resolve symbol: method setDocumentHandler(BookCounter)" and warning messages like: "C:\Example\BookCounter.java :11: warning:org.xml.sax.HandlerBase in org.xml.sax has been deprecated." and "C:\Example\BookCounter.java :16: warning:org.xml.sax.HandlerBase in org.xml.sax has been deprecated."
    If this is not because of classpath problem, kindly let me know what should I do?
    My code as follow:-
    ========================
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.HandlerBase;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class BookCounter extends HandlerBase
    private int count = 0;
    public static void main (String args[]) throws Exception
    (new BookCounter()).countBooks();
    public void countBooks() throws Exception
    SAXParserFactory f = SAXParserFactory.newInstance();
    SAXParser f2 = f.newSAXParser();
    // Parser p = new com.jclark.xml.sax.Driver();
    f2.setDocumentHandler(this);
    f2.parse("file:///C:/books.xml");
    public void startElement(String name) throws SAXException
    if (name.equals("book"))
    count++;
    public void endDocument() throws SAXException
    System.out.printIn("There are" + count + "books");

    The errors don't look like classpath problems. The first one is a result of it not being able to find a method in BookCounter (or more likely HandlerBase) that has the signature that you are attempting to use.
    The warnings come from the fact that HandlerBase has been deprecated, just like the messages state. In other words, it has been replaced by a newer version, or incorporated into another class' functionality. Check the API for more information.

  • How to add new Java Instance to cluster in EHP1?

    I've installed the EHP1 (Beta 3.0) on a Windows 2003 box, and have figured out how to use the
    configtool to add server processes to the initially created Java Instance.
    What tool or process do I use to go the next step and add additional Java Instances to the cluster?
    Sorry if I've missed where the steps are already described, I've tried to find them.
    Walt

    Hi Dido.  Thanks for your pointer.
    When I started the installer, it gave me only the choice of the Developer Edition. Perhaps for this
    EHP1 Evaluation Version the Productive Edition is not yet available??
    The top line in the installer was "SAP Enhancement Package 1 for SAP NetWeaver CE 7.1 SDN
    Evaluation"
    The only next choice was "SAP NetWeaver CE Developer Edition"
    The two choices under this were "Custom Server Installation" and "Uninstall - SAP Systems or
    Single Instances".
    Will any of these choices allow me to add an additional Java Instance to the cluster?
    Thanks for your help ...
    Walt

  • How to add VI to library again?

    I am currently using labview 8.2. Everything was working fine just before I uploaded a backup program for WindowsXP. I now get an error in NI_AALBase.lvlib:Vector x A..vi and complex vector x A.vi.  how can I retreive the library. The error says "This VI is connected with a library that does not include the VI. The VI might have been deleted from the library. Add the VI to the library again or select File»Disconnect from Library." 
    I tried reloading Labview 8.2 and still get the same error.
    Please see the image of the error below.
    Attachments:
    Error-lib.JPG ‏94 KB

    Hi Muke,
    what are the locations of the 'Vector x A.vi' and 'complex vector x A.vi'? If they are not in the vi.lib (or one of it's subfolders) they are moved (as a backup procedure or something).
    In that case do not connect them to the 'NI_AALBase.lvlib' in the vi.lib folder, just disconnect them inside the VI
    In the other case, the 'NI_AALBase.lvlib' has changed. This is very strange, what you should do is a repair of LV because maybe other things have changed!
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to add a java option in oas 10g 9.0.4?

    I need add a java option in my oas 10g...
    I have an application implemented with jdeveloper 10g (10.1.2) and its need to use other jdbc libraries acording:
    http://radio.weblogs.com/0118231/stories/2005/05/27/workaroundForDeployingAdf1012AppUsingIntermediaDomainsToOracleAs904.html
    Using EnterpriseManager, i add a java option for the OC4J instance where my ADF 10.1.2-based application will be deployed:
    [b]-Xbootclasspath/p: C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar
    but now, ths oc4j instance dont init
    ...my opmn.xml file contains:
    <process-type id="ADF_050615" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Xrs -Djava.security.policy=C:\oracle\infra\j2ee\ADF_050615\config\java2.policy -Djava.awt.headless=true
                             -Xbootclasspath/p: C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar"
                             />
    <data id="oc4j-options" value="-properties"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=C:\oracle\infra\j2ee\ADF_050615\config\java2.policy -Djava.awt.headless=true"/>
    </category>
    </module-data>
    </process-type>
    Help me please

    Rigoberto, there should be no space between "-Xbootclasspath/p:" and the path "C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar"
    By the way, one can always take a look at the logs at
      $ORACLE_HOME/opmn/logs
    especially those files whose names start with OC4J~ if there is some wrong with oc4j processes. Those files are the default oc4j stout and sterr. If oc4j can not init, there should be some kind of error message in them.
    By the way, the following line may be deleted since no property file is specified.
      <data id="oc4j-options" value="-properties"/>
    Hope this helps.

  • How to add a 2nd Library to photo?

    In iphoto I used to have two libraries and used to select which one I wanted to look at at startup of the app.
    1) Does photo have the ability to have multiple libraries
    2) How do i import my 2nd iPhoto library once the initial setup is done into a 2nd photo library?
    3) If I try to import a 2nd library and ADD it to the first then will it give me the option to skip duplicates
    Thanks!

    Steve McRea wrote:
    In iphoto I used to have two libraries and used to select which one I wanted to look at at startup of the app.
    1) Does photo have the ability to have multiple libraries
    2) How do i import my 2nd iPhoto library once the initial setup is done into a 2nd photo library?
    3) If I try to import a 2nd library and ADD it to the first then will it give me the option to skip duplicates
    Thanks!
    1 Yes
    2 This was answered in another thread: click on Photos while holding alt key, a dialogue box with a choice of libraries to convert will appear.
      You can test this by creating a new iPhoto library and converting it.
    3 Sorry can't help

  • Interactive graphs in Edge Animate - how to add the jqPlot library

    Hello all
    I'd like to add interactive graphs in my Edge project, but can't use SVG. I'm now trying to implement the jqPlot library, but can't get it to work. Here is what I have so far:
    In "creationComplete" in "Stage" I've added this:
    $('<div id="chartdiv" style="height:400px;width:300px; "></div>').appendTo("#Stage");
    (function(){
      var plot1 = $.jqplot ('chartdiv', [[3,7,9,1,4,6,8,2,5]]);
    Nothing happens, and I'm not sure how to move on, any help would be greatly appreciated.

    Thank you, Raffalaff. From what I can tell it looks like jqPlot has a few more charts to choose among than Flot, otherwise from that they look very similar.
    To get jqPlot working I did this:
    $('<div id="jq_chart"></div>').appendTo(".chart");
    yepnope({
        nope:[
            'js/jquery.jqplot.min.js',
        complete: init
    function init(){
              $.jqplot('jq_chart', [ [[0, 0], [1, 1],[2,4],[50,2]] ], { yaxis: { max: 100 } });
    Would be great if I could set the div with class .chart to id #chart instead, but don't know how to do that. So until then, class will have to do.
    Thanks again, Raffalaff for helping me solve my problem :-)

  • Jdeveloper issue : How to override existing java library or specify exact version to use

    Our application is built in Eclipse. We have latest libraries referenced from Eclipse. I am trying to get the application configured to Jdeveloper but am getting compilation errors because of the org.apache.commons.lang jar version mismatch.
    When opening the project in Jdeveloper, the import classes are pointing to older version in Middleware11.1.2.1\modules\com.bea.core.apache.commons.lang_2.1.0.jar. I added commons-lang-2.6.jar to Project Properties Libraries & ClassPath. But still the StringUtils class is being referenced from the older location.
    How can I force library usage preference to be from application libraries instead of the default modules folder.
    I am using Jdeveloper 11.1.2.1.0 version.
    Thanks,
    Rakesh

    Hi,
    have you tried configuring the new library as part of the deployable so the library is deployed with the application ?
    Frank

  • How to add Jars to Library file

    Hi,
    can anyone please guide me how to create a library file , we are using NWDI for our development purpose.The objective is to put all jars file inside one component and then use them globally
    Rakesh

    Hi rakesh,
    Please follow this link you will have an overview of how to create lib file using NWDS and then same can be applied in DI scenario also.
    http://help.sap.com/saphelp_nw70/helpdata/en/ee/6ede3f7bc1eb06e10000000a1550b0/frameset.htm
    Thanks
    Pankaj

  • How to add another itunes library to apple tv?

    Hello,
    I just want to watch some movies from an other Macbook running Snow Leopard with the latest iTunes.
    How do I switch between the libraries? I only see the old one.

    Here are the supported formats for ATV.
    H.264 video up to 1080p, 30 frames per second, High or Main Profile level 4.0 or lower, Baseline profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4 and .mov file formats
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4 and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    I would try using handbrake for conversion

Maybe you are looking for

  • I can't pass the activation on my iPhone 4 after I've updated on iOS 7

    Hello! After I've up-to-date my iOS version to 7.0.4, my phone can't pass the activation as it requares appleID of the previous owner. Today I have no contact with this guy. This iPhone was purchased with the conclusion of a social contract. Serial n

  • Contact Picture Droid X

    How can I set a picture that I have downloaded from an email into the phone files to a contact pic?  I go through the same steps as setting one from the gallery except that I select "files".  Works fine when I select a gallery photo, but not when I c

  • HT201401 can see thumbnails, but can't see pictures when I tap the thumbnail

    On the iphone 4 I can see the thumbnail in the camera roll, but I can't see the picture when I tap on the thumbnail.

  • Hello experts, I cannot see existing DTP from RSA1 / Datasources.

    I cannot see existing DTP only the loads from RSA1 / Datasources.  I can see some of the DTP when I search under InfoProvider but I need to see everything.  What role or security assignment do you think I am missing.  My co-worker have the same SAP r

  • Parameter passing in BADI in script logic

    inside BADI when I tried to pass variables, I got error 'incorrect parameter format in "DIMENSION =" . //local variable *SELECT(%VERSION%, ID, VERSION, "GROUP <>'ACTUAL') *XDIM_MEMBERSET VERSION = %VERSION% *START_BADI RUNLOGIC LOGIC = TEST1.LGF DIME