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

 
 


Umesh
Calling exe through Java program.
4 Answer(s)      2 years and 10 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
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:03 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 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 Pages:
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
.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
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  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
Calling Constructor in Spring
Calling Constructor in Spring   ... and retrieving the values defined in the constructor using java file.    ... is usually done through the <value>element. Here we have pass "
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
Calling from JSP
Calling from JSP  how can we call a class file from JSP   Hi, Do you want to call a servlet or a Java Bean through JSP? Please clarify this. For more information, visit the following link: JSP Tutorials Thanks
Calling servlet from servlet .
Calling servlet from servlet .  How to call a servlet from another servlet in Java?   You can call another servlet by using... ServletException, IOException { System.out.println("Calling another servlet by using
invoking exe files on sound
invoking exe files on sound  how to invoke .exe files on input as sound in java
creating an .exe file - Java Beginners
creating an .exe file  how to create an .exe file in java? thanks in advance
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
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
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
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
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
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
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
program
program  explanation of program on extending thread class   Hi Friend, Please go through the following link: Java Threads Thanks
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
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
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
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
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 Constructor in Spring
Calling Constructor in Spring   ... and retrieving the values defined in the constructor using java file.    ... is usually done through the <value>element. Here we have pass "
Calling Constructor in Spring
Calling Constructor in Spring     ... the values defined in the constructor using java file.       <...;:-Passing the value to the constructor is usually done through the <value>
calling function - JSP-Servlet
calling function  Hai, How to call a java file in jsp file?  Hi friend, Step to be remember for solving the problem... Directive and import java file "Extends.java" package roseindia; public
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
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
Overview of Networking through JAVA
Overview of Networking through JAVA  ... in the java.net package. Through TCP we can communicate over the network. Java.... All the java classes for developing a network program are defined in the java.net
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
reading and displaying svg file through java
reading and displaying svg file through java  sample program for reading a svg file
Calling a jsp page from Servlet
Calling a jsp page from Servlet  How can I do this? Suppose I have jsp page aaa.jsp. From aaa.jsp on form action I have made a call to a servlet xxx.java. In xxx.java I have written code to retrieve data from database through
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
a java program
a java program  Write a java program that accepts positive numbers... through the link may, this will be helpful for you http://www.roseindia.net/java/thread/java-multithreading-example.shtml Thanks
calling zipping function - JSP-Servlet
calling zipping function  Hi, Is it possible to zip a jsp file. I wrote a java function for zipping a file.How to call that java file (zipping function ) in JSP ? pls help me Thanks.... 
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
Java Program
Java Program for accepting numbers from 1 - 999 and printing them in form of words  Program for accepting numbers from 1 - 999 and printing them... big numbers, then go through the following link: Java Convert Numbers to Words
sql connectivity through java
sql connectivity through java  i want an example for java db through sql connection. Thanks in advance
Java Program - Java Beginners
Java Program  How to create java applications in exe?  Hi Friend, Try the following code: import java.io.*; import java.util.jar.*; public class CreateJar { public static int buffer = 10240; protected
JavaScript loop through
in understanding JavaScript loop through. We are using Java Script language... JavaScript loop through     ...; </body> </html> Output of the program
Overview of Networking through JAVA
Overview of Networking through JAVA... in the java.net package. Through TCP we can communicate over the network. Java... This is a simple program of java network and supports the java.net package. Here, we have
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
Overview of Networking through JAVA,Getting the Local port
;} } The output of the above example is as under in which the program display... : C:\roseindia>javac LocalPort.java C:\roseindia>java LocalPort
Compiling a Java program
Java NotesCompiling a Java program Turning a Java source program into an object program takes a couple of steps. Assuming that you are using the popular... code) form of Java programs. You can produce a ".exe" file from
Java Program - Java Beginners
Java Program  Write a program that detects successive repeated occurrence of a letter in a word. For example, in the word â??explanationâ?? letter â... to display the repeated character in the word,go through the following code: import

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.