Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start/Initialize/Launch a Program from within Websphere -- HELP!

Status
Not open for further replies.

KPX

Programmer
Aug 9, 2002
1
GB
Hello all,

I'm trying to get my Java code to launch a program on my server (eg. Notepad.exe) from WebSphere but I just can't seem to be able to.

My code looks like this:

Runtime r = Runtime.getRuntime();
String notepad = "C:/WINNT/SYSTEM32/NOTEPAD.EXE";
Process process;
process = r.exec(notepad);

The process will show that it is running under Task Manager, but nothing shows up on the Task Bar. The code runs ok if I run it from the DOS prompt. Please help!!! I have absolutely no idea what to do next!

Many many many thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top