Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Calling exe through Java program.
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Umesh
Calling exe through Java program.
3 Answer(s)      4 years and 2 months ago
Posted in : Java Beginners


Hi,

How to call a vb exe that takes one argument , using a Java program.

Thank You,

Umesh Kilkile

Advertisement
View Answers

July 15, 2010 at 11:25 AM


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();
}
}
}

Hope that it will be helpful for you.
Thanks


March 22, 2011 at 11:04 AM


Thanx for reply but this code only execute local machine program. i want run exe on remote machine. if there is any idea then give thanx again.



March 3, 2013 at 9:20 PM


dude but where is the argument passed in your code ?



Related Tutorials/Questions & Answers:
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
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
Advertisements
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
.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
.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
creating an .exe file - Java Beginners
creating an .exe file  how to create an .exe file in java? thanks in advance
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
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
calling from iphone through programitically in iphone
calling from iphone through programitically in iphone  calling from iphone through programitically in iphone please help me my senario is if i click send sms button message should deliver to xyz person and that xyz person make
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
calling a java file in java
calling a java file in java  how to call a another java file in java
calling method - Java Beginners
calling method   class A{ public void fo(){ class B{ public void fo1(){ System.out.println("fo1 of class B"); } } System.out.println("fo of class A"); } class C{ public void fo2
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
calling java beans - JSP-Servlet
calling java beans  Sir, I want to know where to place the java beans java file and class file inside tomcat web server. and how to call them from jsp file.  Hi Friend, Java Bean is placed in classes\form
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
invoking exe files on sound
invoking exe files on sound  how to invoke .exe files on input as sound in java
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
Calling external process in Java - Java Beginners
Calling external process in Java  Hi, How I can call some system command from Java? I want to run the Microsoft Calculator application from Java, how it can be done. Provide me example. What is the use of Runtime.getRuntime
Calling java class method from javascript
Calling java class method from javascript  I want to call a java class method from javascript. The java class method is like "public String[] getWord()". I want to assign this string array value to a variable in javascript. I
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
sql connectivity through java
sql connectivity through java  i want an example for java db through sql connection. Thanks in advance
core java ,io operation,calling methods using switch cases
core java ,io operation,calling methods using switch cases  How to create a dictionary program,providing user inputs using io operations with switch cases and providing different options for searching,editing,storing meanings
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
Implement Java clients calling Web Services
Implement Java clients calling Web... the enterprise components Next    Implement Java clients calling Web Services Generating a Java client proxy and a sample
video calling
video calling  how to implement video calling using java? i am a final year mca student please give me some samplecodes
video calling
video calling  how to implement video calling using java? i am a final year mca student please give me some samplecodes
Overview of Networking through JAVA
Overview of Networking through JAVA The Java platform is extremely preferable... program. In java there is a java.net package, which provides two types... in java network programming through a full code-example. The example give you
Overview of Networking through JAVA
Overview of Networking through JAVA The Java platform is extremely preferable... program. In java there is a java.net package, which provides two types... in java network programming through a full code-example. The example give you
Calling Destructor
Calling Destructor  How can i call destructor in java using System.gc() or manually. Please anyone give me a example program   Java... to the file."); } } Java Garbage Collection using System.gc
write a program to create an vector and listeterator.and value should be enter through keyboard.
write a program to create an vector and listeterator.and value should be enter through keyboard.  write a program to create an vector and listeterator.and value should be enter through keyboard
write a program to create an arraylist and listeterator.and value should be enter through keyboard.
write a program to create an arraylist and listeterator.and value should be enter through keyboard.  write a program to create an arraylist and listeterator.and value should be enter through keyboard
 

 

 

DMCA.com