Invoking exe

Invoking exe

Hi,

How can I invoke a exe with command line arguments in java.
View Answers

July 8, 2010 at 1:21 PM

Hi Friend,

Try the following code:

import java.lang.*;
import java.io.*;

public class Invoke{
public static void main(String args[])throws IOException{
Runtime r=Runtime.getRuntime();
Process p=null;
try {
String s="C:\\eclipse\\eclipse.exe";
p=r.exec(s);
}
catch(Exception e){
System.out.println(e);
e.printStackTrace();
}
}
}

Thanks









Related Tutorials/Questions & Answers:
invoking exe files on sound
invoking exe files on sound  how to invoke .exe files on input as sound in java
Invoking exe - Java Beginners
Invoking exe  Hi, How can I invoke a exe with command line arguments in java.   Hi Friend, Try the following code: import java.lang.*; import java.io.*; public class Invoke{ public static void main
Advertisements
ModuleNotFoundError: No module named 'exe'
ModuleNotFoundError: No module named 'exe'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'exe' How to remove the ModuleNotFoundError: No module named 'exe' error
ModuleNotFoundError: No module named 'exe'
ModuleNotFoundError: No module named 'exe'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'exe' How to remove the ModuleNotFoundError: No module named 'exe' error
Run a .exe from a class
Run a .exe from a class  how to lauch a .exe file from a class in Java and to check the success ful execution of the same
exe file creation - JDBC
exe file creation   hi i have done a project in java swings.project name is format migrator.means db migrator. now my aim is create EXE FILE for my project. pls do consider
.EXE - Java Beginners
.EXE  Hello all, I have to convert my java program into .exe file format. Actually i created program like string to hexa decimal and run in the command prompt, but i want to convert java program into .exe format, i dont have
Creating an exe file
Creating an exe file  Hi All, I have developed java application using swing by Net Beans IDE. Now I need to convert my application into exe file... as an exe file. Please anyone suggest me.Thanks in Advance. Thanks, T.Thanga meena
creating an .exe file - Java Beginners
creating an .exe file  how to create an .exe file in java? thanks in advance
how to run a .exe file in jsp
how to run a .exe file in jsp  i want code for to run a .exe file in jsp
run exe on remote client
run exe on remote client  I am making a client server application using netbins 6.1 , Jsp servlet, Mysql5.1... I want to run an batch file or exe file on client pc in my network if i know the username & password. I have
conerting web project into .exe file
conerting web project into .exe file  I have creted a web project in MyEclipse 8.6 i want to convert it to .exe file how to achive
ModuleNotFoundError: No module named 'run-exe'
ModuleNotFoundError: No module named 'run-exe'  Hi, My Python...-exe' How to remove the ModuleNotFoundError: No module named 'run-exe... to install padas library. You can install run-exe python with following command
ModuleNotFoundError: No module named 'run-exe'
ModuleNotFoundError: No module named 'run-exe'  Hi, My Python...-exe' How to remove the ModuleNotFoundError: No module named 'run-exe... to install padas library. You can install run-exe python with following command
ModuleNotFoundError: No module named 'dist-exe'
ModuleNotFoundError: No module named 'dist-exe'  Hi, My Python... 'dist-exe' How to remove the ModuleNotFoundError: No module named 'dist-exe... to install padas library. You can install dist-exe python with following
ModuleNotFoundError: No module named 'hack-exe'
ModuleNotFoundError: No module named 'hack-exe'  Hi, My Python... 'hack-exe' How to remove the ModuleNotFoundError: No module named 'hack-exe... to install padas library. You can install hack-exe python with following
how to convert jsp to exe
to another system. so i want to convert this to exe. that will executed only internet
.Exe - Java Beginners
.Exe  Hai I created some java program its compailing and showing o/p. I want to convert my java program into .EXE file because i want to put my java program into PDA so PDA not having much space. So pls tell me the procedure
Server calling of .exe file in the client
Server calling of .exe file in the client   I have a requirement with java webapplication. We are using jboss as appserver on Linux machine. How can I call a .exe file from client machine? I want to run .exe from webpage like
To make java exe or runnable file
To make java exe or runnable file   Helo sir i make a java application.I need to help how run application direct in pc i.e how it packaged, .exe file or setup file
Convert Zip To EXE
Convert Zip To EXE       In this example we are going to convert a zipped file into exe. To convert a Zip file into .exe file pass the name of a zip file using
ModuleNotFoundError: No module named 'auto-py-to-exe'
ModuleNotFoundError: No module named 'auto-py-to-exe'  Hi, My... named 'auto-py-to-exe' How to remove the ModuleNotFoundError: No module named 'auto-py-to-exe' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'auto-py-to-exe'
ModuleNotFoundError: No module named 'auto-py-to-exe'  Hi, My... named 'auto-py-to-exe' How to remove the ModuleNotFoundError: No module named 'auto-py-to-exe' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py-exe-builder'
ModuleNotFoundError: No module named 'py-exe-builder'  Hi, My... named 'py-exe-builder' How to remove the ModuleNotFoundError: No module named 'py-exe-builder' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py-windows-exe'
ModuleNotFoundError: No module named 'py-windows-exe'  Hi, My... named 'py-windows-exe' How to remove the ModuleNotFoundError: No module named 'py-windows-exe' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'test-exe-matrix'
ModuleNotFoundError: No module named 'test-exe-matrix'  Hi, My... named 'test-exe-matrix' How to remove the ModuleNotFoundError: No module named 'test-exe-matrix' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'windows-entry-exe'
ModuleNotFoundError: No module named 'windows-entry-exe'  Hi, My... named 'windows-entry-exe' How to remove the ModuleNotFoundError: No module named 'windows-entry-exe' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'windows-entry-exe'
ModuleNotFoundError: No module named 'windows-entry-exe'  Hi, My... named 'windows-entry-exe' How to remove the ModuleNotFoundError: No module named 'windows-entry-exe' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'wsl-path-exe'
ModuleNotFoundError: No module named 'wsl-path-exe'  Hi, My Python... 'wsl-path-exe' How to remove the ModuleNotFoundError: No module named 'wsl-path-exe' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'auto-py-to-exe'
ModuleNotFoundError: No module named 'auto-py-to-exe'  Hi, My... named 'auto-py-to-exe' How to remove the ModuleNotFoundError: No module named 'auto-py-to-exe' error? Thanks   Hi, In your python
set java exe file as background - Java Beginners
set java exe file as background  hi frenz, i am begineer to java. in my application i have a one exe file. now i wanna the file... is closed then v don't continue that application.. can u tell me how java exe file set
how to convert a jar file into .exe file
how to convert a jar file into .exe file  hi, I want convert my jar file into executable file,urgently please help me
start tomcat automatically by double clicking on exe
start tomcat automatically by double clicking on exe  Hi I wanted to start tomcat automatically by double clicking on exe. i made project in jsp... want to make an exe,if we double click on that exe tomcat should automatically
exe set up software - Java Server Faces Questions
exe set up software  hi i want a exe file creator software. i am doing a project in swings. now i need exe converter. pls send
Calling exe through Java program. - Java Beginners
Calling exe through Java program.  Hi, How to call a vb exe that takes one argument , using a Java program. Thank You, Umesh Kilkile  Hi Friend, Try the following code: import java.lang.*; import
how to call an exe file from java - Java Beginners
how to call an exe file from java  hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! Thanks in advance
How to convert many class files into one exe file?
How to convert many class files into one exe file?  How to convert class files into one exe file? I have done my project in java.i want to know how to convert it into .exe file? plz reply fast. Thnx in Advance. Happy Pongal
How to convert many class files into one exe file?
How to convert many class files into one exe file?  How to convert class files into one exe file? I have done my project in java.i want to know how to convert it into .exe file? plz reply fast. Thnx in Advance. Happy Pongal
HTML EXE FILE Creater - Development process
HTML EXE FILE Creater  How to Create Exe File For HTML Project?  Hi Friend, We are providing you a code in java: import java.io.*; import java.util.jar.*; public class CreateJar { public static int buffer
how to convert war file into .exe file using java code
how to convert war file into .exe file using java code  hi,I am beginner in the java,I want to convert my java maven project to .exe file,plz tell me which is required jar files and how i convert this..?Thanks in advance
how to create .exe file of java application?? - Java Beginners
how to create .exe file of java application??  hi i want to know how to create exe file of whole application so that i can use that application on any other computer.. i will be very thankful to you..  Hi
how to start intergrated webcam of a laptop without calling its exe file using java only - Java Beginners
how to start intergrated webcam of a laptop without calling its exe file using java only  how to open integrated webcam of a laptop without calling its exe file using java only?.simply what i am asking is that is there any method
How to embedd jre inside the converted .exe file from .jar using Launch4J
How to embedd jre inside the converted .exe file from .jar using Launch4J  Hello Sir, I created a .exe file from the .jar file using... that jre should be embedded in the .exe file. Will you plz guide me how
Calling ( Invoking ) Methods through Reflection
Calling ( Invoking ) Methods through Reflection       In previous sections we have seen that how we can use "Reflection" to get information related to any
How To Read String From Command Line In Java
argument is entered when an application is invoking. This command line argument... the argument, after the class name, is given or not when invoking the class
File
File  How to create .Exe file in jana
doubt
doubt  difference between .exe file and jar file
Bundle of servers
Bundle of servers  How to create a bundle of multiple server (jboss,getin,gis,etc), that bundle have only one exe, and by clicking that exe we can easily install all servers one by one
deploy - JSP-Servlet
. exe : EXE: /eks'ee/ or /eek'see/ or /E-X-E/ n. Pronounced ee-ex-ee file. An executable binary file. In DOS and Windows systems, an EXE file is an executable file with an .EXE extension. Thanks
Java Frame/ Applet /swing/awt
Java Frame/ Applet /swing/awt  I have produced a .exe file with the help of .jar file................... Now How can I Protect my software( .exe ) file bulid in Java from being Copy and Paste....????????? please reply

Ads