on 02-05-2008 7:04 AM
Hi ,
I have added com.sap.security.api in my application build path using following steps.
1. WebDynpro application -> right click properties -> JAVA build path .
2. Add Variable -> WD_RunTime -> Extend
3. click on com.sap/security.api.jar under com.sap.security folder
& click Ok.
When i wrote code using IUser etc no error in code , but when i build application i got this error.
[javac] C:\Documents and Settings\Admin\.dtc\3\t\2B041424DC5795E02D32C52D1CFA26D0\gen_wdp\packages\com\apl\prp\PrpComp.java:43: package com.sap.security.api does not exist
[javac] import com.sap.security.api.*;
[javac] ^
[javac] C:\Documents and Settings\Admin\.dtc\3\t\2B041424DC5795E02D32C52D1CFA26D0\gen_wdp\packages\com\apl\prp\PrpComp.java:198: cannot resolve symbol
[javac] symbol : class IUser
[javac] location: class com.apl.prp.PrpComp
[javac] IUser sapUser = wdClientUser.getSAPUser();
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 2 errors
Ant runtime 43.125 seconds
Ant build finished with ERRORS
Compile failed; see the compiler error output for details.
Error: Build stopped due to an error: Compile failed; see the compiler error output for details.
Build plugin finished at 2008-02-05 12:19:28 GMT-08:00 (PST)
Total build plugin runtime: 44.031 seconds
Build finished with ERROR
Help me solve this problem.
Regards
Kavita
Hi,
I am not sure that this is a right approach or not.
Project->Right Click-> Properties->Java Build Path->add External Jars
Select the com.sap.security.api.jar .
Click OK
Then try to build.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey kavita make sure that the jar file specified for the API is physically available in the location specified if the error or not.
If not copy the package from other system and place it in the client system on which you are working on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavita,
is this a normal Webdynpro project or a development component? if you are using Development component please try this..
1. Go to DC MetaData->Used DCs
2. Right click Used DCs and select 'Add Used DC'
3. In the dialog box expand SAP-JEE
4. Expand com.sap.security.api.sda
5. Go to DC MetaData->Public parts
6. Select 'default' under public parts and check the check box 'Run Time' at the bottom of the box.
7. Click finish.
Now try building your application.
Regards,
Shabeer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.