• Post Reply Bookmark Topic Watch Topic
  • New Topic

General  RSS feed

 
Rocker Gizmo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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..
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • 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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!