cancel
Showing results for 
Search instead for 
Did you mean: 

How to RUN Java Programs in NWDS

Former Member
0 Kudos

Hello All,

Can any one explain me how to Run the java program in NWDS (Netweaver Developer Studio) 7.1.

Regards,

Srikanth

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

If your Java Program is Java Mapping program, you can create main function to run it inside NWDS,

you can create your object based on your class, and call execute function by passing FileInputStream and FileOutPut Stream Parameters:


public static void main(String args[]) throws Exception {
		try {
			MyClass mapObj = new MyClass();
			FileInputStream in = new FileInputStream("C:\\YourPath\\Src.xml");
			FileOutputStream out =
				new FileOutputStream("C:\\YourPath\\Trgt.xml");
			mapObj.execute(in, out);
		} catch (Exception e) {
			e.printStackTrace();
		}
 
	      }

Your run Java Program then you will see your Trgt.xml file created inside YourPath.

For the Module development and deployment, you need to develop Enterprise Java Bean, if you search on the forum, you will find some thread talking about it.

Regards.

Liang

Edited by: Liang Ji on Mar 5, 2008 6:47 PM

Former Member
0 Kudos

hi srikanth,

go to NWDS in that go to preferences there you can find the J2EE app server,in that provide server name and port,with user crednetials

Regards,

Ram

Former Member
0 Kudos

Hi,

NWDS Studio is an Eclipse based IDE where you can develop J2EE application and deploy the Netweaver J2EE application Server.

U can run ur java program in NWDS.

Regards,

Phani

Former Member
0 Kudos

Hi,

Check this Disscussion

Regards

Seshagiri