• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

General

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way to launch a windows application(.exe) from within a java application? i am trying to implement it in a project which needs to open up the WORDPAD so that further functions can be done by the already existing editor.I dont like to design an editor. So if anyone can help me , please give me some hints..
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is maximum an intermediate topic, and the headline could have been choosen better.

Look for System.Runtime, to find out how to call an external app.
If you get path and name of the application (wordpad.exe) dynamically, your application could work on Mac and Linux too (which don't know wordpad).

You could use JEditorPane in Java directly too.

If you prefer the Runtime-way, make sure to read:

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?
reply
    Bookmark Topic Watch Topic
  • New Topic