Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to execute java .class file from SAP

Former Member
0 Likes
821

Hello Gurus,

I have a requirement where in I need to execute a Java .Class file (which is in Intra network) from SAP.

I tried using SM69 and FM 'SXPG_COMMAND_EXECUTE'. The error its throwing is NoClassDefFound error.

When I tried to execute the same file after logging in to the Server Its working fine. Any one worked in this type of scenario please help me.

Or Please suggest me is there any other way, where we can execute the .Class file from SAP.

Thanks & Regards,

Naresh.

4 REPLIES 4
Read only

rainer_hbenthal
Active Contributor
0 Likes
744

>

> Hello Gurus,

>

> When I tried to execute the same file after logging in to the Server Its working fine. Any one worked in this type

> of scenario please help me.

There seems to be an authorization problem. Make the java class public for everybody.

Read only

0 Likes
744

I defined the class as public class. Is there any other location do i need to specify?

--Naresh.

Read only

0 Likes
744

the filesystem.

Read only

0 Likes
744

I dont understand, can you please elaborate

--Naresh.