• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to open an external application ???

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read and follow our Naming Policy It can benefit you see Book Promotions
You need to use exec method of Runtime class.
Example :

Hope This Helps
[This message has been edited by Carl Trusiak (edited January 19, 2001).]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hotrags,
look for info on Runtime.exec()... it is what you are looking for...
HTH,
-Nate
P.S. - Others with more authority on here will probably point you at this too, but check out the JavaRanch naming policy... ( http://www.javaranch.com/name.jsp )
 
hotrags
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for your suggestions, i have already tried them.
please lemme know any alternate solution.
I repeat the question, when i click an item in menu, netscape should open.
hotrags
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think to get Netscape to come up use the r.exec you are using but you are required to give the full pathname of the executable. On most PCs you will need something like:
r.exec( "C:/Program Files/Netscape/Communicator/Program/netscape.exe" );
This works on my WinNT system.
Regards,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!