on 03-01-2007 4:06 PM
Hi All,
I have a problem with my classpath. Everytime I try to build a DC some parts of my classpath are emptied. Most notably the external JAR: com.sap.security.api.jar.
It makes it it impossible to do a DC build and use the components in other DCs.
I already tried to add it as a variable like this:
Name: SAP_SECURITY_LIB_HOME
Path: C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.security/lib/com.sap.security.api.jar
It didn't help either.
This problem makes it impossible for me to work with DCs. What am I doing wrong?
Thanks in advance,
Jeschael
Jeschael,
You are going to have to put your libraries in a External Library component, expose them as a public part, and use the public part in your project. Check out this blog for a very similar example.
<a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro:///people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great answers. Thanks!
Jeschael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jeschael,
Were you able to resolve this. I am facing a simmilar issue. I need to add external JARS abnd use them with e-Commerce application.
I created the external Jar DC and added the external JARS there and then used the public part in my main DC. I still get error.
Thanks for your help.
Sarab.
Hi Jeschael,
Instead of adding the "com.sap.security.api.jar" by going to the properties, add the same as Used DC.
1) Go to DC Meta Data
2) Right Click on the Used DCs
3) Select Add Used Dcs
4) Go to the SAP-JEE compartment under Local Development
5) Select the DC "com.sap.security.api.sda"->Finish.
If you add library in this way your problem will be resolved.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Setup a DC usage to com.sap.security.api.sda, and sync you're used DCs. That will solve your problem.
When building with DCs, never mess with your classpath. Always configure DC usage relationships to obtain access to the jar files you need.
Hint: get Class Locator, and index all the jar files on your system. This will help greatly, since you'll be able to determine which DC holds the jar file you're after.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.