• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem while launching notepad from servlet

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am facing the problem while lauching Notepad from servlet running on websphere. When i call my servlet nothing is happening(even exception is not throwing). I dont know why?. can we run like this. Here i am giving my code. Please let me know the problem.
try{
Runtime rt = Runtime.getRuntime();
String callAndArgs = "C:\\WINNT\\notepad.exe" ;
Process child = rt.exec(callAndArgs);
}
websphere is also installed like C drive only( C:\websphere). The aboove code is in my servlet .
Thanks
Bhushan
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its likely that the web server is running as a service. Therefore it is not able to find the display for some particular user and pop up notepad. There might be some messages on stdout from notepad that tell you whats wrong. You should get the InputStream from the process and examine that.
 
bhushan guduri
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Steve. How can i open other application(notepad, word etc ) from servlet running on application server.
Is there any setup we need to make on WebSphere to acheive it. Please let me know how can i open different application frpm my servlet(Running on websphere).
[ April 22, 2002: Message edited by: bhushan guduri ]
 
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic