Variable in class path of project library

Hi,
When you create a project library in JDeveloper 10.1.3.4. then you must specify the full path to the corresponding jar file, for example c:\subversion\ebab\trunk\web\lib\...\library.jar. Is it possible to define some kind of variable %TRUNK_DIR% so you can define the path as %TRUNK_DIR%\web\lib\...\library.jar?
The libraries we depend on in our project are checked in in subversion but on the PC's of the different developers the local folder where the module has been checked out differs.
Best regards,
Vincent Botteman

I am not sure about the possibility of this but actually JDeveloper doesn't use absolute path to locate the library , it uses relative paths which is according to the location of the project so if you keep relativity same it should work fine at all machines.

Similar Messages

  • Where should i add the java packages class path in the ORACLEJDeveloper 10g

    Hello friends,
    I have created a BPEL Program using java embedding activity.
    In it i have added some java code.
    I want to attach path of some java class packages.
    So can any one tell me solution for this.
    Thanks and regards.
    Ram Krishna Tripathi
    [email protected]

    Hello friends,
    I have made a Bpel program in oracle process manager 10.1.2 . using java
    embedding activity.
    (i) I have put the java class files in BPEL-INF /classes folder and
    SYSTEM/classes folder but still compiler is giving error that classes
    couldnot be found.
    I have set the class path in Project -> properties
    So please tell me what could be solution for this problem..
    (ii) Can the import package statements can be written in BPEL program in the
    java embedding activity ?
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]

  • Application level class paths AS2 vs AS3

    Hi,
    I've been messing around with my preferences trying to make some external classes available to any new FLA I make. At first I couldn't get it working, but then I realized I was using the wrong location. I was setting the path for my Actionscript class libraries under "Library path:" instead "Source path:".
    Now that I've messed around in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS, I wondered if there's a default that should be listed before my external classes the same way AS was setup?
    Normally my AS2 setttings looked like this..
    $(LocalData)/Classes
    /path/to/my/library
    I have those in there for my AS3 'source path' settings, but I was just following the old AS2 info is that wrong?
    Thanks,
    Dave

    Adobe didn't change the registry organization, Windows did.
    I write the installers for my company, too, so I am pretty familiar with this.
    On 64 bit Windows, the registry path you see when you get the keys in HKEY_LOCAL_MACHINE/SOFTWARE/ADOBE are the 64 bit values if you're calling the registy API from a 64 bit process. They are the 32 bit values if you're calling the registry API from a 32 bit process.
    So, you can either write seperate 32 and 64 bit installers, or you can become intimately familiar with the registry redirection that takes place on 64 bit windows. ( None of this is a concern on 32 bit-only installations of Windows )
    To learn about registry redirection go here:
    http://msdn.microsoft.com/en-us/library/aa384232(v=vs.85).aspx
    This is a very important page for installer writers to read:
    http://msdn.microsoft.com/en-us/library/aa384129(v=vs.85).aspx

  • Built Error : Class path is incomplete in NWDI project

    Hello,
    I am migrating some Webdynpro DCs to NWDI ,
    When I try to Built the Project in NWDI  it shows the error "The project was not built since its class path is incomplete,Cannot find the class file for Com.sap.security.api.Iuser"
    Can some one tell me how to fix the class path ??how can i add this file to used dcs of this project??
    Thanks
    Gunja

    Issue still persist ...
    The issue was due to missing library file - com.sap.security.api
    I added this file in the DCs ,with the option "Set Additional libraries" on java prespective ...still the error persist..
    I was tring to create a project of type external libraries n trying to add this file to it ...
    but not able to add this file  to the new project ..
    Please suggest...
    Thanks in advance ...
    Gunja

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • How to add external library in class path folder for use in Java call-out?

    Hi,
    I am working with Java callout component in OSB 12c using Jdeveloper.
    Thing is Jar what i am using to perform conversion of json to xml that using external libraries.
    When i have give reference of my project jar to java callout it doen't found external libraries.
    Could you please tell me how to add external libraries in class path folder or How to use to add it through web-logic server ?
    Thanks,
    Pavan

    Hi,
    Thanks, I have solved issue.
    We can add on following path in windows pc:
    C:\Users\your_usename\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\lib
    One you add your external lib here then do restart weblogic server instance.
    Now, you have that external lib or jar in use.
    Cool!

  • 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.

  • "The LabVIEW project library does not sharre a common path to disk with the files the project library owns" msg

    I thought this was a file the project library owns.  So what's up?

    2and4 wrote:
    What if I have no application?  In other words I'm trying to build an installer ONLY to distribute an XControl?  I get this error and I don't know how to correct it.  Thanks in advance!
    Answered here
    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!

  • Open VI Reference for a Project Library VI

    Hi,
    my code calls some subVIs by reference by using "Open VI Reference" and "Call by Reference" VIs. Now, "Open VI Reference" expects a path to the VI:
    When the SubVIs sit in the same folder as the calling VI, it is easy to simply supply the name of the SubVI. However, I would like to call a SubVI that is part of a project library sitting somewhere else on the disk. I could give the relative path, but this make the code pretty inflexible and if the relative path changes all the paths would need to be ammended. Ideally, I want to utilize the fact that I am using a project library. The help for Open VI Reference states that
    vi path accepts a string containing the name of the VI that you want to reference or a path to the VI that you want to reference. If you wire a name string, the string must match the full delimited name of a VI in memory on that target. If you wire a path, LabVIEW searches for a VI in memory that you previously loaded from that path on the same target.
     I thought that the underlined path was my ticket and tried something like this:
    but this did not work and I got
    "Error 1004 occurred at Open VI Reference in MainVI.vi:
    Possible reason(s):
    LabVIEW:  The VI is not in memory.
    To load a VI into memory with the Open VI Reference function, a path must be wired for the VI Path input."
    Wiring a path is not desirable as per reasoning above. Is there a way around the issue?
    Thanks in advance!
    Solved!
    Go to Solution.

    tst wrote:
    That should work, but you have to pay attention to something that's stated both in the help and in the error - if you use a string, the only way for LV to know what to access is if that something is already "in memory" (sometimes also referred to as "being loaded"). In the case of standard libraries, that means the VI itself or one of its callers has to be loaded. In the case of classes and XControls, loading the library (as in having it in an open project) should be enough to also load all of its members.
    Hm, thanks, I am not advanced enough to know about classes and XControls, but I will check it out. My VIs are part of a library but obviously don't get loaded because, as you said, all their calls are dynamic.
    tst wrote:
    What I usually do is use a static reference to a VI to get its name, because that ensures that it will be statically linked, included in executables, etc. That might not work for you if you want dynamic loading and then you will need to use some other means.
    Hm, this actually gives me an idea! I could add an enable input to all these dynamically called VIs so that the logic runs only when enable is ON; otherwise the VI is called but does nothing. Then I call the VI first statically with enable=OFF just to load it in memory and then proceed with my dynamic call. A little ad-hoc, but should work and serve my purposes, I think.
    Thanks!!

  • How to get a reference to a Project Library?

    Hello DSC 8 users,
    In my project I have couple project libraries ( *.lvlib) defined, containing only shared variables. I want to logg those variables to Citadel, but I need to programmatically set datalogging properties for each library, like Database Computer, Database Name and path etc.
    My problem is that I can not get the reference to a particular library, because ther is no VI inside. Is there any way to get the reference to a library based on Shared Variable name that is inside the Library?
    I tried different approaches, the closest that I came is to store a VI inside the Library, get the reference to this VI and from tis reference I can get to Library property that I need.
    But in case there is no VI inside, I can't do it. I'm sure there is a solution to this. Can somebody please help?
    Thank you,
    ROMP

    Hi, 
    i might be overlooking something here, but i can only seem to open a vi refenece and not a "library" reference. when i use the "open VI reference.vi" from the programming->application controll menu it throws an error at me.
    currently i have worked round this by using a member of the lib to then get its "library" property and do what i want from there. However this isnt the best way for me as i want to be able to start with just a .lvlib file path and then document information about this library.
    Any help on how to open a ref to a .lvlib dirrectly would be fantastic.
    Chris
    Attachments:
    GenerateLibDocs.vi ‏15 KB

  • Stand alone class and the class path

    Hi,
    I have a simple Java project in Eclipse environment. The project has it's class path,
    that contains a jar file that I need to use.
    The project runs perfect in the Eclipse.
    Now, I need to take the main class out of my project, to function alone in another environment.
    My problem is that out of the environment, I don't know how the class should know that classpath.
    I moved that jar to the same folder that the class located in, but I don't know how to tell it that the jar is there.
    My goal is to run my standalone class from another java class.
    I'm afraid that examples in command environment wouldn't help me.
    Thanks a lot for any help !

    moshi wrote:
    I have a simple Java project in Eclipse environment. The project has it's class path,
    that contains a jar file that I need to use.Ok, so you have a class that you have written that depends on an external library. Fair enough.
    The project runs perfect in the Eclipse.
    Now, I need to take the main class out of my project, to function alone in another environment.Maybe (just maybe!) defining what exactly that "other environment" is could help us help you.
    My problem is that out of the environment, I don't know how the class should know that classpath.Well, obviously that depends on what that other environment is.
    You must have some way to influence that other environments classpath, or you couldn't even get it to call/use your class.
    I moved that jar to the same folder that the class located in, but I don't know how to tell it that the jar is there.Now you're just guessing.
    My goal is to run my standalone class from another java class. That's simple enough, you probably do it all the time.
    I'm afraid that examples in command environment wouldn't help me.And why exactly is that?
    Do you realize that you tell us far too little about your problem for us to be able to actually help you?

  • Class path fully qualified vs offset

    I am invoking a JVM from a c++ application and I am having problems setting a fully qualified classpath. If I set the class path like the following, I get NoClassDefFoundError errors.
    stringstream classPath;
    classPath << "-Djava.class.path=/home/user1/application"
    << ":/home/user1/application/myjar1.jar"
         << ":/home/user1/application/myjar2.jar"
         << ":/home/user1/application/myjar3.jar"
         << ":/home/user1/application/myjar4.jar";
    But, if I set the class path as an offset from the directory in which I launch my application, everything works correctly.
    classPath << "-Djava.class.path=."
    << ":./myjar1.jar"
         << ":./myjar2.jar"
         << ":./myjar3.jar"
         << ":./myjar4.jar";
    The remaining code to set up the JavaVMOptions:
    JavaVMOption options[4];
    options[0].optionString = "-Djava.compiler=NONE";
    options[1].optionString = (char *)(classPath.str().c_str());
    options[2].optionString = "-Djava.library.path=.";
    options[3].optionString = "-Xmx1000m";
    Anyone have any similar problems?

    Actually, what I did is to copy (sprintf) the string
    stream's char * to a local char * variable. Then I
    set the classpath optionString equal to the local char
    *. Seems unecessary but it works.Not sure if that is a good idea but it depends on what you mean by "local char *".
    If you want to do a dynamic classpath then use one of the following..
    1. A global char array with a fixed (big) size.
    2. A global char pointer that you initialize to the size needed.
    With either of the above you can also use the string stream by passing in the array via the constructor.

  • Class path Error urgent Plz

    Hi Guys,
    I was trying to write an WD application to check connector connectivity in EP, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar".
    The codes are like
    IConnection connection = null;
    IConnectorService cs = (IConnectorService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
    IConnectorGatewayService cgs = cs.getIConnectorGatewayService();
    connection = cgs.getconnection(Alias,request)
    but as soon as I write this last line getconnection() I get error which is "Compilation unit indirectly references the missing type com.sap.portal.services.api.connectorgateway.IConnectorGatewayService(typically some required class file is referencing a type outside the class path)"
    and this given below error comes when I build the project.
    "The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath then try rebuilding this project."
    can any one please tell me how can I fix this problem.
    Thanks in advance
    Best Regards
    Yasir Noman
    Message was edited by: Yasir Noman

    Hi,
    I am facing the problem of class path errors.
    my error is :
    *Error:   Missing required library: 'C:Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.security2.0.0/lib/com.sap.security.api.jar'.*_
    And when I checkd on the program file \ lib folder there is .jar file.
    And the second error is
    Error:  The project was not built due to classpath errors (incomplete or involved in cycle).
    I tried to rebuild it and also repair it with project structure and classpath. so that it can find the missing libraries.
    I checked it out in the properties of the project in Java Build path it is showing an error of  build path entry is missing
    Please can anyone help on this error.
    I am stuck on this error for past a long time.
    Please Reply asap.

  • Class path error in connection to jdbc system

    Dear all,
    I m trying to create a jdbc conection to access the a system "jdbc" in the portal database.I have included four jar files namely
    Generic connector.jar
    Helper.jar
    Extended connector.jar
    com.sap.portal.ivs.connectionserviceapi.jar
    bt still i m getting a class path error.the error says
    "The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService."
    Can anyone help me resolve this error.
    Regards
    Shaila

    Hi Shila,
    Actually Portal runs on Web Application server.The server does not know any details about R/3 system which you want to connect. for that first you have to configur Your J2ee Engine And than Proceed.
    for configuring J2ee Engine see ths notes.
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/93/8aea385252494d9b1eb92e0b7f1bad/content.htm">Notes</a>
    and go through thease links it will be full to you...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    http://help.sap.com/saphelp_nw04s/helpdata/en/5e/4d48b62fe54c23a8dbef364a289d8f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/93/8aea385252494d9b1eb92e0b7f1bad/frameset.htm
    Reward Points if Helpfull.
    Regards
    Vinit

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?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>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

Maybe you are looking for