cancel
Showing results for 
Search instead for 
Did you mean: 

package com.sap.security.api does not exist

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Shabeer ,

Thnx. Your solution solved my problem.

Regards