Exe File 1 « Windows « Java I/O Q&A





1. Running .exe files in Mac OS X    stackoverflow.com

I am a Mac user who wants to run a few .exe files from my Java process using Process and Runtime classes. I know that it is not possible to execute .exe ...

2. How can i get the console output generated by a exe file?    stackoverflow.com

without using a redirect to file (">", ">>")

3. How to capture the data returned from an EXE excuted from a batch?    stackoverflow.com

I've a batch file that needs to be invoked from a java program. The batch file in-turn invokes an EXE. The EXE program will return data which I want to handle. ...

4. how to execute command line .exe file in java    stackoverflow.com

  1. i want to convert an avi file to 3gp using java program.
  2. For this i am using "E.M. Total Video Converter Command Line 2.43" and the command for it is
    "C:\E.M. TVCC>TVCC -f E:\TestVideo\01.avi -o E:\OutputFiles\target.3gp"
  3. I got a ...

5. Wait until Symantec End Point DoScan.exe finishes scanning the file    stackoverflow.com

I am a developer in JAVA and developing an application which uses file upload. My client uses Symante End Point Protection on Windows Server. So, I am using a sample code to ...

6. exe File not released after AES Java encryption    stackoverflow.com

I have a function that encrypts files using AES 256 ( Java lib ) and then delete by writing over the file. For some reason it does not work for .exe ...

7. Executing any .exe file from a Java application    stackoverflow.com

I have a Java application in which user can give any executable file (.exe) and the application will run it on the system. Like cmd.exe, notepad.exe or on unix a.out etc. Now ...

8. how can i create exe file from my project    stackoverflow.com

Possible Duplicate:
How can I convert my java program to an .exe file ?
I wrote a program with Java and MySQL. I built a .jar file ...

9. running an Executable file and then waiting for that particular exe file to no longer be running    stackoverflow.com

I think the title says it all, i want to run an AHK executable and then have java wait for that executable to terminate it's own process at the end of ...





10. Pass filename from file that was clicked on using JSmooth    stackoverflow.com

So let's say I have a Java application that is associated with a particular filetype. I would like, upon double clicking a file of said filetype, for the filename to be ...

11. Is there any other way to create an exe file from a java source other than ant script    stackoverflow.com

Possible Duplicate:
How can I convert my Java program to an .exe file?
I need to create an exe file from my java source. My requirement ...

12. Need a free tools to create exe file from java    stackoverflow.com

I tried to generate a exe file form my java source. I followed the following link. http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fwww.eteks.com%2Ftips%2FtipCreationExe.html. But the exe file couldn't produced. I have the following exception. Unable to ...

13. The exe doesn't run    stackoverflow.com

I used the following Java code for move the file form one directory to another, then execute the file in the destination directory. My code is

import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;

import ...

14. Proper way to execute an executable file (.exe) in different situations    stackoverflow.com

this sort of problem is bugging me already for a while, so I was curious how your approaches are to handle the following situation: Imagine I have two different eclipse projects in ...

15. How to get the File Description of a DLL or EXE    stackoverflow.com

I am creating a program that among other things is going to control Services. I am attempting to list the Services similar to the way they are listed in msconfig (the ...

16. how to create .exe file in java    bytes.com

You will need a .WAR file for certain Windows Apps, .WAR or .EAR should do the trick most ofthe time for either that or Web Apps. Please forgive me I am ...





17. running .exe application from java file    bytes.com

hi, I wanna run a few files which are .exe and .jar from a java file as a part of my application... This is the code that i got frm net ...

18. Running an exe file    coderanch.com

Hi !! Needed some help urgently !!! I wanted to execute a binary that creates a username and password using a Java program, So I used the Runtime Class to do this. The statement was something like this: Runtime.getRuntime().exec(".... the command ..."); But then if it is for some command like username and password checking then after giving the username how ...

19. creation of exe file    coderanch.com

You can also create a shortcut and on the command line of the shortcut you can put in your java command. i.e. I used javaw.exe to run a class file that I had. I copied javaw.exe to the working directory of my class file and made the command line look like this: c:\dev\work\javaw.exe Then I save the shortcut, went back into ...

20. To stop running exe/Communicate with running exe    coderanch.com

Hello Everybody, I am having a java application,which has two buttons viz "RUN" and "Stop".When I click Run-button it opens a site say http://www.hotmail.com in IE as I am running IEs exe with statement Runtime runtime = Runtime.getRuntime(); runtime.exec("explorer http://www.hotmail.com"); It works fine. But How to solve following problems 1. I want to stop same exe when I ...

21. exe file handling    coderanch.com

I need help for this task... when user clicks on the download flash button in a browser from our company portal ... 1) download an flashpalyer.exe file from Macromedia site to user's machine and save to a temp folder on user's machine. 3)Install from temp folder. How can I do that using IO package ? Thanks in advance to all ranchers... ...

22. Facing problem with running external exe from my java code    coderanch.com

Hello, I have to run the exe from java code for which I m using Runtime and Process classes. The exe runs in the following way on command prompt C:/ myexe -j [now press enter] input sentence ! [now press enter] And after this exe gives the output. So is there any way to achieve this programmatically in Java? here is ...

23. Opening .exe file in Java    coderanch.com

Hi All, I need to open an .exe file using Java. I don't want to run that exe with Java, but I need to open the .exe using Java (to see the binary). I am able to open .exe in EditPlus tool, the same content I want to see in Java console when I run the Java programme. Please suggest me ...

24. Invoke exe from java    coderanch.com

25. I need help to create exe file.    coderanch.com

Hello Sir, I did project on RMI. It is continues Server Monitoring System. I have design my GUI in swing. So, can U tell me How can I connect my GUI with client class to monitor server. One more thing I want to display server system information in TextArea and I want to create exe file with icon. Please, help me. ...

26. How to create exe file?    coderanch.com

27. How to make .EXE files?    coderanch.com

28. How to make exe file?    coderanch.com

I see you are using JBuilderX. You are in luck, with JBuilderX Enterprise or Developer edition, you can create native exicutabls. You can find the option somewhere in the tool bar along witht the options to create jars and things. JBuilder will then create a native exe file that you can just click on and run - you dont even need ...

29. Making an exe file    coderanch.com

30. Creating .exe file    coderanch.com

Hi, I have written a small application (GUI). I have been searching through the threads and have read about creating .jar file versus using java web start. I have never used either of these and am wondering am i correct in thinking that the person running the application will still need JRE installed? Is it possible to create a .exe file ...

31. Java exe application files    coderanch.com

32. making exe file from java code    coderanch.com

hi, i nid some help in making an exe file from my java codes, i have several classes, one which has the main function, and i need to make an application (.exe) file from it, how can i do this? is there a software which can do this (i really just need to generate an exe file) or anything that i ...

33. How to run a exe file in java by taking parameters    coderanch.com

Hi Everybody, please help me to solve this problem. PROBLEM : String[] cmd = { "D:\\Program Files\\eRightSoft\\SUPER\\ffmpeg.exe","D:\\AVI\\NEURO01.avi","D:\\AVI\\FlashFile.flv" }; Runtime.getRuntime().exec(cmd); My task is to run the FFMPEG.EXE file that takes the first parameter source file and the second parameter is the destination file format and convert to the destinatio file format i.e(to second parameter type). All this has to happen in a ...

34. Exceute an exe file    coderanch.com

Could anyone please help me to execute an exe file "fi2t1". It needs to pick up necessary files from source and place the output files to the desination source =>String FirstParam1 = "C:/Temp/sample"; destination=>String SecondParam = "C:/Temp/sample"; My code is: private static void compilingFiles() throws IOException { String FirstParam1 = "C:/Temp/sample"; String SecondParam = "C:/Temp/sample"; Process procforopenreport2 =Runtime.getRuntime().exec("cmd /c start /MIN ...

35. creating .exe file for java application    coderanch.com

Hi all, I have written an application.Now i want to deploy it in different machine . For that i am planning to create " .exe " file, which will set required environment variables and path required for my application. Can any one please let me know the procedure for creating ".exe " file for java application.

36. How to create an .exe file?    coderanch.com

37. Making a .exe File.    coderanch.com

I have made a swing application and made an executable JAR file. Thats working properly. But it works only in the machines which have JDK installed. So i want to make an .exe file for that. How can i make a .exe file. Does a exe file runs even JDK is not installed? Tell me the process of making a .exe ...

38. java.exe File    coderanch.com

39. Running exe files with java    coderanch.com

I'm having a problem with running exe files with Java. I want to add a program onto a banner with Java that will execute from a hosting website on any computer. The program is 500kb and it is an exe. How would i accomplish this? PS: i just started with Java a few days ago and i have been searching for ...

40. Running a .exe file from a .java file    coderanch.com

42. Problem in Executing .exe file using Script    coderanch.com

I can suggest only one way doing that even though i never tried it and don't think it will work. I think it's best if you use WSH i think thats the name for it windos scrippting. Ok anyway you can try to do this in vbscript by using FSO object file system object. Create a batch file which will contain ...

43. making a .java file .exe    coderanch.com

As far as I know, there are three things you can do... 1 - Have the installer (if you use an installer) create a shortcut on the desktop or in the start menu somewhere that executes the same thing your command-line instruction would be. It looks the exact same, and you don't have to mess with really compiling the code into ...

44. can java make exe files?    coderanch.com

Welcome to JavaRanch, Icon Liu! There are programs that you can download to create an exe from a Java application. This approach at creating an executable application would likely have two big flaws - it would only be executable on Windows, and the size of the exe might be a lot bigger than you were expecting as some Java -> exe ...

45. .exe file for Java Application    coderanch.com

46. Java EXE files?    coderanch.com

47. How to make exe file?    coderanch.com

This question has been asked many times before on this forum. You can use the Search tool to find the previous discussions. To summarize, you cannot create an exe file with Java itself. This would defeat the whole purpose of "Write once, run everywhere" since exe files are specific to the Windows operating system. With that said, there are some tricks ...

49. is there a EXE file in java ?    coderanch.com

The Sun HotSpot VM -which is used since Java 1.3 if memory serves- takes measurements of which methods and classes are heavily/lightly used at runtime. Based on that it may actually decide NOT to compile a method, and to interpret it every time it gets called. It definitely does not compile everything at once at startup. Other JVMs (IBM, Kaffe, SableVM...) ...

50. Call exe file with parameters in JAVA    coderanch.com

You say you already know how to call an exe in Java. That's with the Runtime.exec() method, right? There are several overloaded versions of this method - there's one where you just supply the name of the exe, but there are also versions where you can supply parameters. Look it up in the API documentation.

52. creating an exe file from java application files    coderanch.com

Originally posted by Abhilash Mutugudurmut: Can we create an exe file from java application files/class files if the answer is yes then how? if it is no then what abt a client who does not know how to enter commands through prompt. client machine should be installed with a JVM/J2SDK for operating the application.

54. changing java file into .exe file    coderanch.com

55. Java exe cant access Jess.clp file    coderanch.com

57. java.exe file    coderanch.com

58. how to create exe file    coderanch.com

59. C:\Program Files\Java\jre6\bin\javaw.exe (Feb 12, 2009 1:54:50 PM)    coderanch.com

I thought I had replied earlier. I found your "is javaw.exe spyware or virus?" link eventually, Fred. It seemed to be where somebody was being very suspicious. You can find more about javaw here: look particularly at the end of the "DESCRIPTION" section. Are you getting that message from an IDE? I know some IDEs (eg Eclipse) seem to use javaw ...

61. CREATION OF EXE FILE    coderanch.com

62. How to create exe file    coderanch.com

63. Calling .exe file from java    coderanch.com

I'm trying to write this java program that calls a .exe file and read in the result. The .exe file is written in c and has something like printf("hello") at the end. I tried to do this: try { Process p = Runtime.getRuntime().exec("c:\\test\\a.exe"); BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream())); System.out.println(br.readLine()); br.close(); } catch (Exception err) { err.printStackTrace(); } but it keeps ...

64. exe files for java, how to ?    coderanch.com

Hello, folks! I want to create a windows-like executable file for my java project. i have heard that you can to do that using shell programming but i am a complete beginner on that subject. My question is if there is anyone here that can help me solve my problem by providing me a link to an article on the subject ...

65. How to create .exe file in java?    coderanch.com

66. Java installer file (.EXE)    coderanch.com

67. run a exe file by java code    go4expert.com

import java.lang.*; import java.io.*; public class LoadNotpad{ public static void main(String args[])throws IOException{ Runtime r=Runtime.getRuntime(); Process p=null; try { String s="c:\\windows\\notpad.exe"; p=r.exec(s); } catch(Exception e){ System.out.println("error==="+e.getMessage()); e.printStackTrace(); } } } /*This is the exception when i am running the above code plz help me to execute this code and the mentioned java file Win32Process is not in my jdk1.2.2 */ /* ...

68. [Help] Make .exe file from exe4j    java-forums.org

69. Running EXE files with Java    java-forums.org

70. How to create an exe file in java    java-forums.org

Hi I want to create an exe file for my java app. I tried with some third party softwares JEXECreator, successfully created the exe file and its working fine in my system, when I tried with another machine, its not working. I got the following error * The error occurred while running the application. The exit code is 0x10000223. * Contact ...

71. How to change into an .exe file.    java-forums.org

Hi! I would like to know the following: 1. Is it possible to change multiple java files into an .exe file so that you could just click on an icon and run the program. 2. After conversion if you still need a program like Jgrasp to run the written program. 3. What program do I need to covert the files. Please ...

72. calling a .exe file from java code    java-forums.org

73. How do I make an exe file from BlueJ?    java-forums.org

I know how to make a jar file in bluej, but the problem is that the jar file created must be in the same folder as the bluej files to run it. Or else it wont do anything. Is there are a way to make it run even without the bluej files in the same folder?

74. Calling an external exe from Java code with some input file    java-forums.org

I want to call a C exe from a Java code and want to pass an input file to that C exe as well. I can call an exe through this code (without any input file) Process myProcess = Runtime.getRuntime().exec("my.exe"); But I dont know, how to call my.exe with the input file "myfile.txt". Thanks for the help. regards,

75. To build exe file?    forums.oracle.com

Hi every body, I want to make the exe file. I know how to create the executeable jar file. In programme, I have used some properties file. Therefore my exe file should consists of jre,some properties file and jar file. I have found a no. of tools like JExecutor, Launch4j, inno setup, JCreator, JSmooth, Java Launcher. But I could not find ...

77. Run exe file in java    forums.oracle.com

Boffel wrote: Both of you is really funny, but I dont think both of u paid for all the answers u got here... Hmmm...I have almost 30,000 posts and I know that I have gotten less than 10 answers here. And none of those answers were code to implement a server either. I am not sure any of those answers even ...

78. finding version info from .exe file    forums.oracle.com

I don't know of anything off the top of my head that will give you that information. That sounds like something that is operating system dependent, so you won't likely find anything in the standard libraries. You're going to have to look in the third-party realm. I would try searching with Google. - Adam

79. .exe file in java    forums.oracle.com

80. .exe file    forums.oracle.com

81. Creating exe files from Java files    forums.oracle.com

82. Creating a .exe type file for execution outside the java environment    forums.oracle.com

Hello, In C++ you have a .exe file which when dbl clicked, it launches your program. How is this done in java??? I'va read about .bat files, however where do you create a .bat file? I tried creating it in Netbeans, but it does not recognize the .bat extension... The I'm assuming you just type in the .bat file: Welcome java ...

83. Make java file to exe?    forums.oracle.com

84. Two .exe files to run sequentially    forums.oracle.com

85. Making bin or exe files    forums.oracle.com

86. Exe file not producing the output files    forums.oracle.com

I went through it. But did not seem anything useful for mine. Please help me with this code So you do not think that looking at the output of stdout and stderr is usefull! So how are you going to find out what is wrong? We have no idea of what your exe file does so we cannot duplicate your problem; ...

87. Problem with exe file    forums.oracle.com

88. Running exe file    forums.oracle.com

It sounds like the "exeFile" is buggy, whatever it is. But if it turns out that its bug is that it ignores the second argument, and instead uses the current execution directory to store the files it creates...then you could work around the bug by setting the current working directory of the process you're exec'ing. One of the exec() methods (and, ...

90. stand alone .exe file    forums.oracle.com

91. java to exe file    forums.oracle.com

92. Is it possible to export exe file by NetBean?    forums.oracle.com

There is some programms that creates a real Exe file for your java application. search on google you should find one indeed there are. java2exe, for one. doesn't mean it's a good idea, though! by bundling your java up as a .exe, you're coupling what was once some platform-independent code to your Microsoft platform. OP, I'd challenge your teacher on this. ...

93. which is the function to execute an .exe file in java    forums.oracle.com

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 ...

94. java exe files    forums.oracle.com

95. creating exe file    forums.oracle.com

You don't need to create an .exe file. Create an executable jar instead. That's basically a jar file with a manifest file that says what class to execute when the jar file is double-clicked. Read the docs for details. If you absolutely have to have an .exe, then you can do that with 3rd-party tools. Sun doesn't provide one with the ...

97. How to make .EXE file of Java Source code    forums.oracle.com

Hello friends, As using JDK and javac we are able to convert the .java file into .class file of a java program and in that .class file of the java program contain the native bytecode. Then using JRE we run that native bytecode. Though its not a big Issuee for developer to run bytecode from windows cmd prompt by writing java ...

98. when i double clicked java to exe file it installs but no out put    forums.oracle.com

i wrote following program ........................................................................................................... import java.awt.*; class FrameWithComponents{ public static void main(String[] args){ //create a new frame whose //title is "Frame with components" Frame AFrame = new Frame("Frame with components"); //create a label, a button, a textbox, and a textarea Label lblOne = new Label("This is a label"); Button btn1 = new Button("This is a button"); TextField tf1 = new ...

99. how to create .exe file ??    forums.oracle.com

i created a program .............................................................................................................. import java.util.*; public class HelloDate { public static void main (String[] args) { System.out.println ("Hello, it's: "); System.out.println(new Date()); } } ....................................................................................................................... the program is succesfully compiled and also the jar file for this program is also created please tell me how to make .exe for this program ?? any software ( package tools ) is ...

100. What is the repalcement of .exe file in Java ??    forums.oracle.com

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 ...