This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes hi problem in .exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "hi problem in .exe" Watch "hi problem in .exe" New topic

hi problem in .exe

narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
hi, I have to call .exe file in java. and i have to run the .exe file by using java program in MAC os X , how could i run the .exe fine on MAC. please let us know immediately.
can i use jni. to call java file in mac.
nr konjeti

"Unwise to sweat petty stuff, wise to pet sweaty stuff."
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Like this
Process p = Runtime.getRuntime().exec("notepad");
catch(IOException ie)
It is sorta covered in the JavaRanch Style Guide.
subject: hi problem in .exe
Similar Threads
Running a .exe file from a .java file
Calling .Net exe file from java
Running a .exe from java program
.exe on mac problem using jni
How to call EXE from JAVA