Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

Hello,
frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
The startup script features a "just run the jar" launch line:
java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
- [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
- the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
Thanks in advance, and best regards,
J.
Edited by: jduprez on Dec 7, 2010 11:35 PM
Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
The 'cascading' behavior is implicit in the specification
I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
I'll revisit the post markers once I've actually tried it.
Best regards,
Jérôme

Similar Messages

  • How do you add a jar to the classpath?

    I'm trying to load a driver for MySQL, but the program doesn't seem to find the driver. I get an exception everytime. I keep seeing references about adding the jar (mysql-connector-java-5.1.6-bin.jar) to the classpath, but I don't know how to do that. Also, do I only that the jar, because there are other files along with it (src, com, etc.). I'm running Windows XP and using Eclipse.
    import java.sql.*;
    public class Driver {
         public static void main (String[] args) {
              try {
                   // Step 1: Load the MySQL driver.
                   System.out.println("BP01");
                   Class.forName("com.mysql.jdbc.Driver");
                   System.out.println("BP02");
              } catch (Exception e) {
                   System.err.println("Got an exception! ");
                   System.err.println(e.getMessage());
    }

    In Windows Explorer or the Command Prompt, try changing your directory to what the message about not finding the JAR in the repository says (C:\Documents and Settings\xxx\Desktop\mysql-connector-java-5.1.6\) and verify that something called mysql-connector-java-5.1.6-bin.jar! exists there.

  • Classpath issues when executing from a jar

    I have a jar that I built for an RMI server that has a need to access another jar. (log4j). I run the jar from the command line using:
    java -jar -Djava.rmi.server.codebase=my.jar my.jar
    and the code runs fine but when I try to add in the log4j.jar I can't find it. I have placed it in my.jar in a lib directory within my.jar, I have placed it in the current directory, I have placed it in other directories I know are on the classpath, I have done all kinds of variations with the -classpath switch on the command line and nothing works.
    How do I package, configure and/or call such that the Logger class in log4j.jar can be found by my RMI server when I execute my.jar?
    Thanks

    Running from the jar-file ignores the CLASSPATH. See Bug #4459663
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4459663
    You have a few options:
    First, you can unjar all of the jars you depend on and rejar 'em up with your jar. This is the simplest solution.
    Second, you can skip running "from the jar" and just put that jar in your CLASSPATH.
    Third, you can put jars you depend on in the $JAVA_HOME/jre/lib/ext directory.
    Fourth, you can modify the manifest to specify a classpath, and then put the libraries you depend on at the places specified.
    And, if you think There Ought To Be A Better Way, vote for the RFE!

  • OIM 9 - How do I add a jar to the classpath in WebLogic?

    I have a custom Scheduled Task that I am trying to add and it references a 3rd party library. I placed this 3rd party lib in /ext and restarted the server, but whenever I try to save my new Task, I get a ClassNotFound error for the 3rd party task. I don't know where I can add it to the class path.
    I start OIM via the /bin/xlStartWLS.sh which has no classpath's defined. The only file that has the OIM jars is the xlStartManagedServer.sh, but I don't see where that's getting called.
    Any help would be appreciated
    Thanks
    Alex

    found the answer, in xlStartWLS.sh there is a variable called EXT_POST_CLASSPATH... adding items here will eventually get added to the actual CLASSPATH

  • Reasons why jar in the classpath isn't found?

    I need some help brainstorming:
    What are some possible reasons why java can't find classes that are properly .jar'd up with the .jar file in the classpath (verified)? If I expand the jar, they're found without a problem.

    Possibilities:
    -The jar isn't in the classpath. Print the property 'java.class.path' to verify.
    -There is an error in the class path. The Sun JVM will stop on any error, and not parse further.
    -The jar file isn't where the class path says it is.
    -The permissions of the program accessing the jar do not match the permissions of the jar file.
    It is easy to verify fixes to the classpath for command line stuff without reruning an application. Simply do this
    java MyClass
    If "no class found" is returned then there is a problem. If "no main found" is returned then the class path works.

  • Dynamically adding jars to the classpath at runtime

    Hi All,
    I have a query regarding dynamically loading jars at runtime. I am developing an application that uses third party jars and there are a number of different versions that the utility is to support so I want to be able to load the jars relating to that specific version through selection on the gui. The jar files are the same name for all versions e.g.
    v1 has app1.jar
    and v2 has app2.jar
    I have these in separate folders called app1jars and app2jars. I have tried a number of classloader examples but always get a classnotfoundException. Any ideas? Thanks in advance for replies

    Hi,
    Sorry for being a bit vague. I have attached the code below that I was trying. Im confused about how to load the classes within each of the jars and use them do i have to use defineclass? AppSession is an interface.
    import java.util.*;
    import java.net.*;
    import java.sql.*;
    import com.app.AppSession;
    import com.app.AppWorker;
    import java.io.*;
    import java.lang.reflect.Method;
    public class JarTest {
        public static File[] getExternalJars()
        { String jarDirectory = "C:\\JarLoaderTest\\1.1jars";
          File jardir = new File(jarDirectory);
          File[] jarFiles = jardir.listFiles();
          return jarFiles;
        public static void main(String[] args) throws Exception {
         Method addURL = URLClassLoader.class.getDeclaredMethod("addURL", new Class[] {URL.class});
            addURL.setAccessible(true);
         File[] files = getExternalJars();
            ClassLoader cl = ClassLoader.getSystemClassLoader();
         for (int i = 0; i < files.length; i++) {
         URL url = files.toURL();
    System.out.println(url.toString());
         addURL.invoke(cl, new Object[] { url });
    cl.loadClass("AppSession").newInstance();
    cl.loadClass("AppWorker").newInstance();
    try
    { AppSession session = AppWorker.getConnection(username,password,port,server); // these are filled in with the actual details in my program
    catch(Exception e)

  • Calling a newly deployed EJB from an EJB gives a NoSuchMethod Exception if the jar of the newly deployed ejb is not in the classpath

    Hi ,
    I have an EJB A which is already deployed when the server starts. A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methods in EJB
    B.
    I get a NoSuchMethodException when I call the create method in the Home object
    of EJB B. If I add the ejb jar file to the classpath before the server starts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not known before the server
    is started. New EJBs can be deployed at runtime and EJB A should be able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jar file of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodException because it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)

    Hi,
    I am attaching a test case. This test case actually demonstrates a security bug.
    Unzip the file and modify the StartWeblogic.cmd in domainA to not refer to the
    SampleRemoteEJB.jar in the classpath. If u run the test client under the client
    dir u will see a NoSuchMethodException.
    The reason is it is not able to load the dynamically generated stub file.
    Initially I had the getMethod and it didn't work. You might have to modify the
    files to suit ur env. The easier way is to run th edomain wizard and create 2
    domains. Run the servers in development mode and place the jars under the applications
    dir
    Thanks
    Rajesh Mirchandani <[email protected]> wrote:
    Do you have any old EJB classes in your classpath? Did you recompile
    your EJBs if you
    upgraded from a old release or a Service pack?
    Bob Lee wrote:
    Hmmmm. That's an interesting problem.
    Why is it giving you a NoSuchMethodException instead of a
    ClassNotFoundException?
    Can you post the code from SampleConctorEJB.java, line 181?
    Try changing your call to getDeclaredMethod() to getMethod().
    getDeclaredMethod() searches only the class you called it on, whereas
    getMethod() traverses to the superclasses and interfaces. You onlyneed
    getDeclaredMethod() when you're accessing a nonpublic method.
    Not sure if this will help, but it's worth a shot.
    Bob
    Vasu wrote:
    Hi ,
    I have an EJB A which is already deployed when the server starts.
    A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methodsin EJB
    B.
    I get a NoSuchMethodException when I call the create method in theHome object
    of EJB B. If I add the ejb jar file to the classpath before the serverstarts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not knownbefore the server
    is started. New EJBs can be deployed at runtime and EJB A shouldbe able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jarfile of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodExceptionbecause it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support
    [user_projects.zip]

  • Added JAWS.jar as external classpath

    But I am still getting an error on the JSObject class. I have import netscape.javascript.JSObject but it isnt finding it. Does JAWS.jar still contain the JSObject class. AARRRGGHHH !

    But I am still getting an error on the JSObject class.
    I have import netscape.javascript.JSObject but it
    isnt finding it. Does JAWS.jar still contain the
    JSObject class. AARRRGGHHH !I too am new to java. I installed sdk1.4.2_05 and all was well until I included an import for netscape.javascript. I determined I needed the JAWS.jar in the classpath but I can not find the file. I've reinstalled the SDK to be sure I didn't miss anything. Any ideas?

  • How do I add my own JAR file to the classpath?

    When I put a JAR file containing several compiled Java classes in the '/opt/SUNWips/lib' directory they are not found while compiling a JSP-Provider. When I extract them from the JAR it is not a problem (I think because the '/opt/SUNWips/lib' directory is already in the classpath).
    Where can I add my JAR to the classpath?

    I have been successfully editing the jvm12.conf file to add jars. This is
    the web server config file in
    /opt/netscape/server4/http-your.server.com/config directory. Add to the
    jvm.classpath line with all the other jars. Yes, lib is in the path, but
    Java doesn't see inside the jars unless they are explicitly in the path.
    "Ulf Licht" <[email protected]> wrote in message
    news:[email protected]..
    When I put a JAR file containing several compiled Java classes in the
    '/opt/SUNWips/lib' directory they are not found while compiling a
    JSP-Provider. When I extract them from the JAR it is not a problem (I
    think because the '/opt/SUNWips/lib' directory is already in the
    classpath).
    Where can I add my JAR to the classpath?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Classpath problem with properties file in jar

    Hi,
    I am seeing a classpath error for my setup, as follows...
    A defaultFieldIDs.properties exists with numerous entries:
    projectID=10630
    issueTypeID=80
    closedStatusID=6My Spring applicationContext.xml file contains the following:
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
              <property name="locations">
                   <list>
                         <value>classpath:sqlScripts.properties</value>
                         <value>classpath:defaultFieldIDs.properties</value>
                    </list>
              </property>
              <property name="ignoreUnresolvablePlaceholders" value="false"/>
         </bean>     
    <util:map id="defaultQueryParameters">
              <entry key="projectID" value="${projectID}"/>
              <entry key="issueTypeID" value="${issueTypeID}"/>
              <entry key="closedStatusID" value="${closedStatusID}"/>
              <entry key="statusFieldName" value="${statusFieldName}"/>
              <entry key="numberOfExpenseLinesFieldID" value="${numberOfExpenseLinesFieldID}"/>
         </util:map>My compiled jar contains the above properties directory in its root directory, and is placed in the lib directory of the application
    However, when I start my application I get the following error:
    Invalid bean definition with name 'defaultQueryParameters' defined in null: Could not resolve placeholder 'projectID'
    What is going wrong here?

    Then presumably that jar file isn't in the classpath for your application. Perhaps just dropping it into the lib directory isn't sufficient.
    You didn't say anything about what kind of application it is. For web applications, all jars in the WEB-INF/lib directory are in the classpath. But you didn't say this was a web application and you didn't say you put it in the WEB-INF/lib directory. So if you don't care to put sufficient information into your posts, I recommend you read up on the rules for whatever type of application you have, in particular the rules for how to set its classpath.

  • Issue with weblogic.jar parsing the wsdl

    Hi,
    Here is a very small program, for which i am facing the problem of getting the
    types from the wsdl. It works fine, as standalone....You do not have to deploy
    the code any where..just have weblogic.jar in the classpath. It does not work.
    It works when weblogic.jar is not in the classpath..any help is GREATLY APPRECIATED...
    java.wsdl.Types from the java.wsdl.Definition object and the schema in the types
    is null ( when weblogic.jar is present in the
    I am always getting null in the schema (
    import javax.wsdl.Definition;
    //import weblogic.soap.wsdl.binding.Definition;
    import javax.wsdl.xml.WSDLReader;
    import javax.wsdl.factory.WSDLFactory;
    public class Test {
    Definition definition = null;
    public static void main(String args[] ) {
    Test test = new Test();
    test.parseWSDL(args[0]);
    public void parseWSDL(String WSDLName)
    try
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
    wsdlReader.setFeature("javax.wsdl.verbose",false);
    wsdlReader.setFeature("javax.wsdl.importDocuments",true);
    definition = wsdlReader.readWSDL(WSDLName);
    System.out.println("-----------" + definition.getTypes() );
    catch( Exception e ) {
    System.out.println("Exception" + e ); }
    Thank for your help.
    Nag

    Hi Nag,
    With little reference to Sir Walter Scott, it would be a very tangled
    web we weave in an attempt to factor out the inter-relationships of
    javax interfaces that are hindering your effort. All to say, we don't
    currently support JSR 110 (javax.wsdl.*) and it is not on the near term
    horizon.
    Have you considered using autotype [1]?
    Regards,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1080062
    Nag wrote:
    >
    Hi,
    Here is a very small program, for which i am facing the problem of getting the
    types from the wsdl. It works fine, as standalone....You do not have to deploy
    the code any where..just have weblogic.jar in the classpath. It does not work.
    It works when weblogic.jar is not in the classpath..any help is GREATLY APPRECIATED...
    java.wsdl.Types from the java.wsdl.Definition object and the schema in the types
    is null ( when weblogic.jar is present in the
    I am always getting null in the schema (
    import javax.wsdl.Definition;
    //import weblogic.soap.wsdl.binding.Definition;
    import javax.wsdl.xml.WSDLReader;
    import javax.wsdl.factory.WSDLFactory;
    public class Test {
    Definition definition = null;
    public static void main(String args[] ) {
    Test test = new Test();
    test.parseWSDL(args[0]);
    public void parseWSDL(String WSDLName)
    try
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
    wsdlReader.setFeature("javax.wsdl.verbose",false);
    wsdlReader.setFeature("javax.wsdl.importDocuments",true);
    definition = wsdlReader.readWSDL(WSDLName);
    System.out.println("-----------" + definition.getTypes() );
    catch( Exception e ) {
    System.out.println("Exception" + e ); }
    Thank for your help.
    Nag

  • Does weblogic.Deployer set the CLASSPATH?

    Hi,
    I need to deploy an application with the weblogicDeployer utility. Does it automatically
    set the CLASSPATH, as is done with the Admin console? Or do I need to set the
    CLASSPATH explicitly?
    Thanks,
    -Ami

    ah. weblogic.Deployer and the console use the same underlying API to
    our Deployment subsystem. There shouldn't be any difference in
    application behavior (eg classpath).
    -- Rob
    Ami wrote:
    Hi Rob,
    When I use the Admin console to deploy a web app, the CLASSPATH for the application
    is set automatically. If I use weblogic.Deployer does that also automatically
    set the CLASSPATH for the application?
    -Ami
    Rob Woollen <[email protected]> wrote:
    Not sure I understand the question. weblogic.Deployer is a class in
    the
    weblogic.jar, so weblogic.jar has to be in your classpath to run java
    weblogic.Deployer ...
    -- Rob

  • Multi Provider Changes - The Query cannot be executed

    Hello,
    I added a new characteristic to an existing multiprovider on which queries already exist.
    I changed one of the existing queries adding that newly added characteristic.
    Now the query cannot be executed. Please see the log...
    I could successfully execute the query in RSRT....
    Diagnosis
    Characteristic 0BILL_TYPE is used in the Query Designer, but was deleted from the InfoProvider.
    System response
    The query cannot be executed.
    Procedure
    Characteristic 0BILL_TYPE is used in the query to be executed even though it was deleted from the InfoProvider. The problem can be solved by changing the query in the Query Designer. Here, you get a repair proposal, which removes the missing InfoObject from the query. Afterwards, check whether or not the query was defined correctly.
    You can also delete the query.
    Additional technical information:
    IOBJNM = 0BILL_TYPE
    ELTUID = Sell-In Qty
    ELTTP = SEL
      Notification Number BRAIN 407 
    Close 
    Any siggestions of how to adjust the multiprovider.
    Thanks,
    Vish

    The check in query designer says that query is correct.
    Only when I try to execute using the web it says that Char doesn't exist in infocube.
    The query works fine in Analyzer & RSRT....I guess something got to do with the Browser or web..
    Thanks,
    Vish

  • Adding Classes to the JAR File's Classpath

    Ques 1- Can I use the wildcard * symbol in Manifest file to add classes/othes jar files to the JAR File's Classpath.I have folder named - Lib . where there are many jar files.Now,do I have to add each jar file by- Class-Path: Lib/jar1-name Lib/jar2-name . Instead, can I do this- Class-Path: Lib/*.jar OR Class-Path: Lib/*.class
    RIDICULOUS....105 views has been made but YET NO ANSWER. Isn't there anybody who knows the answer.
    Edited by: Tanvir007 on Apr 30, 2008 2:21 AM

    Ques 1- Can I use the wildcard * symbol in Manifest file to add ... other jar files ...?No. You could, however, place all your needed JARs in JavaHome/jre1.x.x/lib/ext - if this is a way for you.
    Ques 2 ??
    RIDICULOUS....105 views has been made but YET NO ANSWER.What hindered you to test it yourself?
    And the things we don't know far exceed the things we know. Why do you wonder?
    Have a nice day
    J�rg

  • Jar files to add to the classpath for KM development.

    Hello Friends:
    I am trying to retrieve the favorites of the user stored
    under him home folder. In KM we have a readymade iview,
    called 'Favorites'. I am programmatically trying to
    read the values stored by this iview.
    I am using NWDS 2.0.5 on EP60SP2Patch3. When I use the
    following code,
    IUserManagementService umService = 
    (IUserManagementService) request.getService(IUserManagementService.KEY);
    // get the user object
      IUser user =
    umService.getDefaultFactory().getUser(userId);
    IResourceContext context =   new ResourceContext(user);
    in my IDE I get the following error:
    "This compilation unit indirectly references a missing
    type com.sapportals.portal.security.usermanagement.
    IUserFactory"
    The following are the jar files added to my project's
    classpath.
    com.sap.portal.usermanagementapi.jar
    com.sap.portal.usermanagementcore.jar
    com.sap.portal.usermappingapi.jar
    com.sap.security.api.jar
    com.sap.security.api.perm.jar
    com.sap.security.core.jar
    com.sap.security.core.tpd.jar
    apart from the usual portal framework related jar files.
    I tried also to add all the jar files with the prefix like...
    com.sap.km.*
    com.sap.netweaver.bc.*
    It didn't help.
    What are the other jar files I need to add, and where
    they are available.
    BTW, I unzipped all the 'portallibs' downloaded from the
    portal and using those jar files to attach to the project.
    Thank you very much,
    Prasad Nutalapati

    Hi Prasad,
    additionally you need com.sap.security.api.ep5.jar due to the fact that KM is using the old EP5 usermanagement libraries.
    Concerning the KM / RF libraries I would recommand to include all libraries matching the patterns bc._api.jar and km._api.jar
    Best regards,
    Thilo

Maybe you are looking for

  • How do I transfer content from my iphone to my imac

    Hi, only recently bought an imac and would like to know how to transfer/sync all my music and pics from my iphone to the imac thanks in advance

  • HOW TO EXTRACT THE PO CONDITIONS

    HI, i am using the following code,but in this i am not geting the po conditions values,is there any way to get the condition values into excel sheet. report ztest1. TABLES: EKKO. *PARAMETERS : P_EBELN TYPE EBELN. SELECT-OPTIONS: S_EBELN FOR EKKO-EBEL

  • Apple TV 2 Home Sharing depends on Source Device?

    So I've been running into an issue with Home Sharing on my Apple TV 2.  This is present on both the 4.2.2 and 4.3.2 firmware. (I own 2 Apple TV 2's. One vanilla and one running FireCore aTV Flash Black) When attempting to play back video content from

  • Use of Pipelined Function in Forms10g(10.1.0.2)...

    Hi , I test the routines found in http://sheikyerbouti.developpez.com/recordset/record_set.htm I have a problem in the sample routine in Forms10g regarding pipelined function. Whereas , the whole routine database part and client side in SQL*PLUS work

  • What is the Reason for Rejected Materials from SO still reflecting in MD04.?

    Hello Expert, Just a question I know the solution about this but want to know the reason why the rejected Materials from SO still reflecting in MD04? Is it standard program issue or need to implement any exit to avoid this issue? I think the table VB