Which is the function to execute an .exe file in java

in languages like c we can create .exe's of files.but in java we cant do that.
i wanted to implement a software which i compiled in c using java.in c
i created an .exe of the file and distributed it but in java i dont find any such
method of creating exe as i would like to distribute the software.please help
me out on this
please also give me the name of the function using which i can exexute an
.exe file

No problem - it's just that I wanted to alert people to the fact that
there was another thread. Otherwise It can get very confusing, very
fast. (The CAPS were unnecessary, sorry about that.)
Welcome to the forums!

Similar Messages

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to execute a EXE file in java?

    Hi!All
    as title
    Can I use Java to call any EXE file.
    I need your help!!

    ~~~Use This~~~~
    try{
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec(
    "C:/Program
    Program Files/InternetExplorer/IEXPLORE.EXE
    http://192.168.1.101/index.jsp");
    why has private IP there?
    } catch (IOException e) {
    e.printStackTrace();
    }I and he want to a file which could run as .exe file.

  • Through Java code I want to execute a exe file which is in aJar file

    I am having some classes and an exe file in a directory. I have made them in to a Jar file. In a class file which is in that jar file i want to execute a Exe file which is also resides in that jar file. Is it possible to exexute that EXE file?
    For Example....
    1. Im having a directory named CLIENT.
    2. In that directory I have 10 clss files and an EXE file.
    3. These class files and EXE files are ziped in to a Jar file.
    4. I have to give the Jar file to my client.
    5. He can put that Jar file where ever he installed my product may be C driver or D drive like that
    Now the problem is...
    I want to execute the Exe File from one of the class where both the exe file and class file resides in the Jar file
    This is my requirment
    Can anyone Help to me to solve this problem?
    Thanks in Advancd
    Ibram Shah.A.M
    ([email protected])

    The answer is to extract the EXE into a temp directory, execute it, and delete it when you're done. For example:
    //This is the path *inside* the JAR file!
    InputStream in = getClass().getResourceAsStream("/resources/myprog.exe");
    OutputStream out = new FileOutputStream("myprog.exe");
    File file = new File("myprog.exe");
    int data;
    while((data = in.read()) >= 0) out.write(data);
    in.close();
    out.close();
    //Execute the EXE here using java.lang.Runtime.exec()
    if(file.exists()) file.delete();
    ...

  • Execute another exe file by my VI

    Hello,
    I am trying to execute anothe exe file, which was not created using LabView, from my VI.
    Is it possible? How could I do it?
    Thank you

    Use the System Exec function. Under Connectivity -> Libraries & Executables palette.

  • What is the repalcement of .exe file in Java  ??

    What is the repalcement of .exe file in Java .
    i want to launch my java code in .exe fashion just clickk and u get output.....
    but as far i have seen in java there is only class file as output and every time to
    launch the output of code u have to run it from netbean compiler.
    Ya i have sen some file with jnlp extension which launch application just by clicking how to make that........

    What is the repalcement of .exe file in Java .Though there is no replacement as it would defy java's claim 'write once run anywhere' (or whatever it is) but jars are as good as exes if you have jre installed....
    i want to launch my java code in .exe fashion just clickk and u get output.....try :
    [http://www.ej-technologies.com/products/exe4j/overview.html]
    [http://www.ej-technologies.com/products/install4j/overview.html]
    but as far i have seen in java there is only class file as output and every time to
    launch the output of code u have to run it from netbean compiler.who says so?? don't you know how to use the command line..... :-)
    Ya i have sen some file with jnlp extension which launch application just by clicking how to make that........Yeah that files are made using Java Web Start feature of java and I like that feature, search on Google to know about it..........

  • How to execute one .exe file with as3 in air ?

    Hi
    How to execute one .exe file with as3 in air?
    I want do this work without fscommand .
    plize help me .

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • What's the function of "Manage checked out files" in library settings?

    hi there,
    can anyone tell the function of "Manage checked out files " in library settings? it seems the place to manage all the checked out files in that library. but i can't see any one there. thanks in advance.
    allan

    Hi,
    The checked out files page will only show files which have no checked in version. It is a way for a library administrator to clean up a document library. Imagine you created a new document that was only checked out to you and had no checked in version. It wouldn't show up in list views for anyone else. You have to go to that page to delete this document.
    If you want to see all the checked out files in your library, you can create a new view and filter the view by “check out to” column (“check out to” column “is greater than or equal to” give a value like character A)
    Hope it can help you.
    Xue-Mei Chang

  • How to execute a exe file using javascript on app window.load.

    How to execute a exe file using javascript on app window.load.

    Hi sb00349044,
    As I have already mentioned in multiple replies to your previous questions, the SUMO forums focuses on providing help to end users with usage-questions and issues.
    For developer-related questions, please refer to one of the many resources readily available that I have linked to in the past:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
    * [https://lists.mozilla.org/listinfo Mozilla Mailing Lists]
    - Ralph

  • Can AIR execute Windows .EXE files?

    Can AIR execute Windows .EXE files?

    hi
    you can now implement a standard windows installer (ie a native installer, rather than the AIR installer) when users install your AIR app. Not sure if there's an option to do this in flex/flash builder but it can be done via command line.
    eg:
    adt -package -storetype pkcs12 -keystore myCert.p12 -target native NativeProcessTest.exe NativeProcessTest-app.xml NativeProcessTest.swf NativeApps/Windows/bin/echoTestWindows icons
    or try this handy packager:
    http://www.webkitchen.be/package-assistant-pro/

  • How to execute ".exe" files using java

    Hi,
      This is guruvulu,
         I have a problem in executing ".exe" files.For Example InternetExplorer.

    Hi,
    You can execute .exe files in JAVA using the following code.
    Runtime rt1 = Runtime.getRuntime();
    Process pc = rt1.exec("someexe.exe");
    you can get the output of the executed exe file in
    in = pc.getInputStream(); //this returns a InputStream
    hope this solves your problem.
    regards,
    P.Venkat

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • Which of the following will exactly copy a file in Photoshop CS5?

    Which of the following will exactly copy a file in Photoshop CS5?

    Just answer A to all the questions on your exam.  You'll probably get an A.  Honest. 
    Seriously, put your smart phone down and engage your brain.  I'll bet you really can get an A if you concentrate.
    -Noel

  • Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site

    Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site without success.

    The Elements 12 shortcut can't find the Elements12.0.exe file so the program will not load.  I can load the editor from its .exe file but not the organizer.

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

Maybe you are looking for

  • Kyocera printer offset/margins completely wrong

    Hey there! I'm new to printing under Linux. I finally got CUPS to work, installed foomatic, etc. and found appropriate drivers (.ppd) for my Kyocera FS-1020D from a WinXP driver package. Everything seems to work correctly, the printer is detected und

  • Using iweb to create a webpage but wrong fonts are displayed

    Hi, I am trying to create a front page for the followoing site using iweb '09. Whenever i publish the site the font that appears is totally incorrect. However when I view the site on my imac, it looks as it should do. I've seen numerous threads on th

  • Abap dump MESSAGE_TYPE_X in SAPLSLVC - in "FILL_DATA_TABLE

    Gurus , we get the MESSAGE_TYPE_X error in saplslvc in "FILL_DATA_TABLE '  when we execute our custmized program . but the same program was executed successfully in the Development system . i get this error in quality and production alone we have dev

  • Can I move my Photoshop CS5 plug-ins (e.g. Imagenomic's Portraiture) to Photoshop Cloud?

    I just installed Photoshop Cloud today.  I see that it does not include any of my plug-ins from my 64-bit Photoshop CS6 on my desktop.  Is it possible to move the plug-ins into Photoshop Cloud?

  • REP-0069 error

    Hi, I am receiving the following error when i am trying to run the report from report builder. I am working on reports 10g. REP-0069: Internal Error java.lang.illegalArgumentException: Not a directory! Can anybody suggest me how to resolve this issue