cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Java Client proxy

Former Member
0 Kudos

Hi All,

My scenario is JavaClient Proxy -


XI----


>RFC.

Here i generated JavaProxies for my Message interface and i imported that zip file into NWDS for my EjbModule project.

and also i added Jar files in libraries by saying add External Jars.

Here r the Jars:

aii_proxy_xirt.jar

aii_msg_runtime.jar

aii_utilxi_misc.jar

guidgenerator.jar

even i am getting an error saying com.sap can not be resolved or not a type

Any inputs

Is there any other jars i need to add ??

How to resolve this error.

Thanks,

Kalyan.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member537867
Active Contributor
0 Kudos

Hi Kalyan,

I think you have not set the classpath corectly.

For this :

1. Get the file aii_map_api.jar from XI server (if you have not done this already).

2. Create a new folder in the Java project you have created for mapping program. Name it as "lib"(any name would do..I just try to follow widely used naming conventions).

3.Copy the jar file aii_map_api.jar to this folder.(You can copy it in explorer and go to NWDS, select the lib folder and do a Ctrl + V).

4. Right click on the java project, select properties. Select Java build path. Go to Libraries tab. Click on the button "Add jars". In the dialog that pops up select your java project> lib> aii_map_api.jar.

5. Click apply / OK.

Rewards,

Vinod.

Former Member
0 Kudos

Hi

Try reorganizing the imports by pressing CtrlShiftO and see.

also try following this blog,

Sameer

Former Member
0 Kudos

Hi Sameer,

I have gone tru this blog

and also i did Organize imports...

But still am getting error..

Any inputs..

Thanks,

Kalyan.

former_member194786
Active Contributor
0 Kudos

Hi Kalyan,

Have you imported these jars?

aii_adapter_xi_svc.jar,

aii_af_cci.jar,

aii_af_cpa.jar,

aii_af_mp.jar,

aii_af_ms_api.jar,

aii_af_ms_spi.jar,

aii_af_service_message_security.jar

Search for the How to Work with Java Proxies Doc in sdn and in that you can see that these jars are also required in order to make your java application run. This is in case you are reffering to the Yugapreeta's blog. Hope it helps.

Regards,

Sanjeev.