How to use class path library

We are using java in built library to write the xml filw which "XSLT". One library named "saxon9he.jar" is already on my system at the path "C:\Program Files\Java\jre1.5.0_15\lib\ext" . when I run the progaram to read/ write in xml file, my progarm use this system library saxon9he.jar.
And generate the exception "Exception Caught while Checking tag in XMLjava.net.URISyntaxException: Illegal character in path at index 2: ./\config\SDBExplorer.xml stacktrace net.sf.saxon.trans.XPathException: java.net.URISyntaxException: Illegal character in path at index 2: ./\config\SDBExplorer.xml"
What I should do so that in class path it will take XSLT for xml operation instead of saxon9he.jar
Thanks!
Aayushi SOni

aanu wrote:
..One library named "saxon9he.jar" is already on my system at the path "C:\Program Files\Java\jre1.5.0_15\lib\ext" . when I run the progaram to read/ write in xml file, my progarm use this system library saxon9he.jar.
..What I should do so that in class path it will take XSLT for xml operation instead of saxon9he.jarGee. Isn't this a poster child for the Sun advice to not put APIs into the ${java.home}/lib/ext/?
The answer is to
- Remove the saxon9he.jar from the ${java.home}/lib/ext
- Add APIs to whatever application requires them, at run-time.
Thanks!No wuckin' forries.

Similar Messages

  • How to use Class-Path in Manifest file

    hi,
    I want to add jar files in another executable jar file but the Class-Path in Manifest file is not set correctly,please give an example for setting a Class-Path attribute in Manifest class.
    regards,
    selvaraj

    You looked into the Jar section of the Sun tutorial did you?

  • How to use relative paths in Captivate 8 / Cómo usar URL's relativas en Captivate 8

    Hello, I have developed a bunch of courses which will be migrated to a new site and I am having trouble changing the absolute paths into relative URL's to resources such as PDF files inserted into the scorm packages. I cannot find information on how to use relative paths in Captivate. Please help. Thank you.

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • Need samples how to use classes in WebDynpro

    Hi,
    I Need To simple Samples how to use classes in WebDynpro.
    Regards

    Continued....
    and in the model
    right click->create model
    select the radio button import java bean .
    next ADD jars option will be seen
    Browse the jar on the dekstop.
    now add this model to the used models by right clicking on it.
    Now if you go to Data Modeler.
    You will find the used model.
    From there map to the component controller->view Controller.
    And continue with ur coding.
    Hope this helps you.
    Thanks & Regards,
    Lokesh.

  • How to use Replacement Path Variables to perform Date Calculations

    Hi Experts,
    Can anyone make me clear about:How to use Replacement Path Variables to perform Date Calculations???????
    Thankyou in advance..
    shankar

    In left panel select the time Dimension
    Then hit new variable in that
    give the Name and Description for the Variable
    In processing by hit Replacement Path
    In reference characterisitcs use Calendar Day...
    As ur intention is to use it for Date
    Then in adjacent tab use
    Replace variable with Query / Variable
    Then u can use Offset length and offset start for controoling the display of your variable.
    Use as single, multiple single, interval, selection option as uwish
    HIt okey
    and you are good to go

  • How to find packages using class path

    how to list all the packages in my class path using a java program?
    for eg. if the class path is c:\ajay;
    and ajay contains two folders pack1(i.e a package) and pack2(i.e a general folder not a package)
    in pack1 there are 2 java file which has package pack1; as their first statement.
    in pack2 there are two java file which does not contain package statement.
    so can i identify between pack1 which is a package and pack2 which is a general folder

    I don't think there's any real way to distinguish a package from an "ordinary directory" except by checking if for *.class files.
    Probably you want to use a recursive method to walk the direcotories, calls itself tor each sub-directory found.

  • How to use classes from an existing outside library ?

    Dear People,
    I added a library to use classes already built.
    In JBuilder7 I went to Tools | ConfigureLibraries
    and added the objectdraw library. At the left when I look in the
    directory structure under User Home is "objectdraw" so I did
    add the library correctly but when I put in the coding a try
    to run it, the error messages say:
    "MakeBox.java": Error #: 200 : <identifier> expected at line 8,
    which is the line : public void MakeBox()
    The entire code is :
    package stan_e_makebox;
    import objectdraw.*;
    import java.awt.*;
    public class MakeBox extends WindowController
    void public MakeBox()
    public void onMousePress(Location point)
    new FilledRect(40,80,30,20,canvas);
    public static void main(String[] args)
    new MakeBox();
    Thank you in advance
    Stan

    oo sorry,
    this is the constructor i assume, so should be
    public MakeBox()

  • How to Use a Binary Library

    Hi,
    I am trying to use a binary library (Xerces 2.9.0). I would like to know if there is a way to use this library by putting it in my project path and using an import statement to do so. I did this with a version of entagged and placed it in "lib\\entagged" (where my compiled classes are located) and used the folder hierarchy:
    import lib.entagged.*;Is it possible to do the same with a binary package as in the image linked here:
    http://img251.imageshack.us/img251/441/xercesnm4.jpg
    This would make it easier to compile and use across multiple computers...
    Thanks in advance

    Thanks Peter for the reply
    Peter__Lawrey wrote:
    you are not looking for a standard binary searchI'm not using a binary search in the very common I'm searching for a particular key sense, which is the Collections.binarySearch sense. But binary searches are used in other situations as well. In this case I'm finding a local maximum of a function, I could also be solving f(x)=0... is there a nice generic way to handle other uses of binary search that anyone knows of?
    I would just copy the code from Collections.binarySearch and modify itI have this thing about reusing; just can't bring myself to do that :)
    It would be quicker and more efficient than trying to shoe horn a solution which expects a trinary result.Not sure I understand the last bit. Are you referring to my bastardised compareTo method with only two results? If so, I know, it is ugly! I don't see how it could be less efficient though???
    Thanks,
    Andy

  • How to use a native library packaged in a connector

    Hi,
    I know how to package a native library into a connector in my app server. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of the RA is the parent of the EJB classloader) or I have to issue an outbound call?
    Thanks,
    Haitao

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • How to use a native library (.so) in EJB

    Hi,
    I know how to package a native library into a connector in iAS. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of the RA is the parent of the EJB classloader) or I have to issue an outbound call?
    Also, if I package the native library into a RA (standalone), iAS will automatically load it so in my wrapper java class, I don't have to call System.loadLibrary(...). Correct?
    Thanks,
    Haitao

    Thanks, Russ. My older Mac Pro is a 2,1 -- I think I only missed by a few months in buying one that would run Mavericks (64 bit EFI).  I do intend to buy a "trashcan" Mac Pro but not just yet.
    As for updating projects — that's my issue, I think. The Mac Pro and the laptop are networked so I can be working on my laptop and go to the Mac Pro and open the Final Cut Pro that is resident on that computer. What is odd is that it doesn't open any of the projects that normally open up with I start up FCP X on the Mac Pro.
    I frequently work inside the house on my laptop running programs that are on my Mac Pro outside in my office — usually no problem at all with Adobe applications. 
    FCP X won't let me open a project by clicking on the project — it insists that I "Open projects from within FCP X" but they won't open that way.  This what is odd — that it won't let me open projects even thought they are fully native to that version of FCP and are even on the same hard drive on the Mac Pro.

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How to use imported paths from Photoshop/Illustrator as motion guides

    Hi folks,
    I've been raking the internet with no success for an answer to my question, but I've had no luck so far.
    What I'm hoping to achieve animation wise is to have a shape move around a set path that was created in Photoshop. The reason being, it's a very specific shape (near enough a square but with curved corners and a chunk missing out of one of the sides), and I used the paths feature in Photoshop to create it and stroke the path for the smoothest possible effect. What I'd ideally like to do is import the same path I used to create the shape into Flash Professional CS6 and then use that same path to guide a small symbol around the edge of the square.
    So far, I've worked out how to apply motion to a symbol through basic tweens, and then I can draw out a line using the pencil tool and apply that to the tween so it follows the pencil line instead of just going from point A to point B. The problem is, this looks awful...I'm not good enough with a mouse to create absolutely perfect shapes freehand, so I just want to be able to use the Photoshop path as my motion guide instead of having to make another one from scratch.
    I've looked around for various importing methods, the most success I've had is exporting the paths to an Illustrator file, and then importing the Illustrator file into Flash directly. However, I have NO idea where these paths go when they're imported, or how to access them. If I import them to the stage, they seemingly disappear before I've even seen them, and if I import them to the library they just aren't there.
    I could also do with a brief description of how paths work in Flash - I'm familiar with the Photoshop layout, what with the paths appearing in a panel next to the layers one (makes perfect sense to me, as you can just switch between the two panels to view whatever you want). I just don't understand how they work in Flash and what I should be looking for....
    Many thanks in advance for any help!
    Todd

    I had a play around with some variations of this. What I can't grasp is why Flash won't recognise my shape layer as a motion path. I've tried breaking it down, that doesn't work... I traced it narrowly in Photoshop and imported it as a thin line with a gap (so essentially a line with two ends), and it comes into Flash as a bitmap or something of that sort. I found an option that traces the bitmap, and appears to convert it into a shape layer...I've managed to find the optimal settings so the line is joined all the way through apart from the start and end points. The only thing is, Flash seems to not even notice this as a guide layer when I apply it to the symbol I'm trying to animate. It just doesn't even notice it's there. The object moves straight from point A to point B in a straight line, the guide layer does nothing to adjust the motion... Is it not possible for the traced line to act as a motion guide? It's a shape, it is a single line with a start point and an end point, and there are no other instances of anything else in the layer - just the line and nothing else.
    This seems way more difficult than it should be...I'm sure Adobe could have integrated a MUCH easier system for importing paths from Photoshop that actually exist in Flash rather than disappearing into some abyss instead!
    Here is a screenshot of what I'm working with: http://gyazo.com/4c1046767e1ee8bf99f65751b9ba81b8
    The long black oval is the shape I'm trying to animate. I've tried applying tweens to it while it's in shape form and while it's in every different symbol form, all to no avail.
    The black line is what I'm trying to use as the guide. Having looked online, people seem to be able to just use the "paste in place" option and it somehow knows exactly what they mean and animates around the line perfectly. I tried that and it didn't work (no surprise there), and then I tried the motion guide layer setup and it also didn't work. I'm not sure if tracing a bitmap into a shape layer somehow removes any possibility of the line being recognisable as a line or something...could that be the case?
    Is there a simple way to turn a shape layer (in this case the black line) into a motion guide that I'm missing? I thought just turning the layer into a guide layer would do the trick, but obviously not :/

  • How do specify Class-Path in exploded directory deployment?

    Currently I have an app.ear(ejb.jar,lib.jar,web.war). In the MANIFEST file of
    ejb.jar I do Class-Path: lib.jar. Now I exploded the app.ear and the components
    into app(ejb,lib,web) directory structure, how do I write Class-Path? ../lib did
    not seem to work for me. Any suggestions?

    I got the answer at the EJb newsgroup. Instead of ../lib, use just lib.
    "Eric Ma" <[email protected]> wrote:
    >
    Currently I have an app.ear(ejb.jar,lib.jar,web.war). In the MANIFEST
    file of
    ejb.jar I do Class-Path: lib.jar. Now I exploded the app.ear and the
    components
    into app(ejb,lib,web) directory structure, how do I write Class-Path?
    ../lib did
    not seem to work for me. Any suggestions?

  • How To Use The Same Library - MacBook Pro's And Windows XP Pro?

    Background:  I have a fully configured MacBook Pro running OS X 10.8.3. Also, I run Windows XP Pro SP3 using Parallels Desktop. My primary iTunes Library and all content is stored on an external hard disk and the iTunes is "pointed" to that location by setting the iTunes' Preferences' Advanced Settings to the full path where the Library is located. Everything I have inside iTunes works perfect - the size if the Library is over 225GB!
    BUT, when I install and use iTunes on my Windows XP Pro operating system (under Parallels), the contents of the Library SEEMS to work okay (while I'm in Windows) but the Windows' iTunes Library location in Preferences' Advance Tab is NOT THE SAME LOCATION AS IS THE MAC's LIBRARY LOCATION! It is not at the same location as my main/primary iTunes Library is "pointed to".
    The problem occurs when I close Windows and return to the Mac OS X and then try to use my primary iTunes. All of the contents (and any content) within iTunes no longer work! When I attempt to play ANY song, movie, TV show, music video, audiobook, etc., a message pops up saying in effect "Location of 'x' can't be found, do you want to locate it?" I can then click 'yes' and navigate to the Library file that contains the song's file and it will then play fine, as it should. BUT, ONLY THAT SINGLE SONG WILL WORK - THE REMAINING 225GB STILL DON'T WORK!!!
    So, I am forced to go into iTunes' Preferences' Advanced tab and click on "Change Location" then navigate to the proper library file (NOTE, THE LOCATION HAD BEEN CHANGED TO THE LOCATION FOR THE WINDOWS' LIBRARY LOCATION!!!)! Doing this corrects the primary iTunes functionality, but only after being forced to deleting the "iTunes Media Folder", quit iTunes, restart iTunes and Consolidate the Library - a whole bunch of steps and time to get back to "normal"!!!!!
    Again, this all happens by going into Windows, opening its iTunes, then THAT triggers the entire scenario I've described above - EVERY TIME!
    Thus, I avoid iTunes when I go into Windows, but I should NOT have to avoid using iTunes inside Windows! I hope I have described the problem/issues well enough that someone of you experts can provide a practical solution for me.
    A potential remedy I've thought of is:  Go into Windows' iTunes then go into its Preferences' Advance tab and change ITS location to be the exact same location as the primary Mac OS X's, click OK, then immediately close that iTunes.
              DOES THIS SOUND LIKE IT WILL WORK - I.e., USING THE EXACT SAME LIBRARY LOCATION FOR BOTH iTUNES?????
              IF THIS WOULD WORK, WHAT ELSE MUST I DO TO EITHER iTUNES OR TO BOTH iTUNES TO USE BOTH iTUNES
              USING THE SAME LIBRARY???
    Thank you for any suggested solutions - VERY MUCH!
    Larry

    Note that sharing a folder between different OS that use different file paths is not recommended as some files can have an absolute path or other OS specific data.
    You can click the Choose Folder button if you want to create or use a folder in a different location.<br />
    Make sure to select an empty folder (you need to create this folder in advance) and not a folder that already has files as Firefox will use the specified location in this case.
    *http://kb.mozillazine.org/Profile_Manager
    You can also create a new profile via the command line.
    *https://developer.mozilla.org/Command_Line_Options
    You can consider to use Sync to sync the two profiles

  • How to use Class "CL_GUI_CHART_ENGINE" in a abap program ?

    Hi Guys,
    I want to display data in my internal table in the form of a Graph using class "cl_gui_chart_engine".
    I had a look at sample program given by SAP - GRAPHICS_GUI_CE_DEMO but need some help to understand how can we use our own data to be displayed in the graph ? Basically what I am looking for is that where we need to do the changes in creation of XML file so that we can pass our own data ?
    ( perform create_data_demo using l_ixml_data_doc)
    Could you please help me with some sample code or pseudocode ?
    Thanks
    Ashwa

    Thanks Kai,
    I had already done the same thing and got the required output.
    Populate X-Axis ( Categories )
      LOOP AT ITAB.
    Populate Categories
        l_element = p_ixml_doc->create_simple_element(
                  name = 'C' parent = l_categories ).
        l_element->if_ixml_node~set_value( itab-value).
      ENDLOOP.
    Populate Y-Axis ( Values )
      LOOP AT VALUE_TAB.
       l_element = p_ixml_doc->create_simple_element(
                 name = 'S' parent = l_series ).
        l_element->if_ixml_node~set_value( value_tab-value).
      ENDLOOP.
    I am now trying to find the ways to change the default layout of the graph. I guess it should be done in "perform create_custom_demo using l_ixml_custom_doc." . I want that my graph should be displayed as lines instead of bar's.
    Once I achieve this I will share my findings along with sample code with the community.
    I wish I could get some documentation on class "cl_gui_chart_engine" and interfaces like "if_ixml_document".
    Thanks
    Ashwani

Maybe you are looking for