Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advanced search
Google search
Register / Login
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
Devaka Cooray
Tim Cooke
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Saloon Keepers:
Piet Souris
Bartenders:
Forum:
Java in General
Running an .exe from a Java program
Anonymous
Ranch Hand
Posts: 18944
posted 26 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to run a VB .exe from a Java program. Anybody know how to do this? Thanks a lot.
Darrin
Thandapani Saravanan
Ranch Hand
Posts: 117
posted 26 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try this small example:
public class RunNP { public static void main(String args[]) { try { Runtime.getRuntime().exec("notepad"); } catch(Exception e) { System.out.println("Exception: " + e); } } }
Saravanan
Tom
Greenhorn
Posts: 2
posted 26 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That should work. What if you wanted to run the .exe in the background, i.e. not visible to the user. Does anyone know how to do that? Thanks. -Tom
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to call an executable (.exe) from java
Running a .exe from java program
invoking c exe from java
how to call an exe from an java application program
running a .exe from JAVA on Linux
More...