Application Development 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: 

How to execute java .class file from SAP

Former Member
0 Kudos
150

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

rainer_hbenthal
Active Contributor
0 Kudos
73

>

> 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.

0 Kudos
73

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

--Naresh.

0 Kudos
73

the filesystem.

0 Kudos
73

I dont understand, can you please elaborate

--Naresh.