Gritsch
September 28th, 2000, 08:24 AM
Is there a possibility to make an Executable (*.exe e.g. Windows) from Java Files ?
|
Click to See Complete Forum and Search --> : Make a Executable Gritsch September 28th, 2000, 08:24 AM Is there a possibility to make an Executable (*.exe e.g. Windows) from Java Files ? daileyps September 29th, 2000, 10:10 AM You can make a .jar (java executable) file. ronie April 15th, 2001, 01:59 PM use a batch file to avoid using javac *.java and java *.class each time you run a program Robert3 April 15th, 2001, 09:29 PM This was posted on some forum I just found, very helpful. Your application is named MyJavaApplication in the example. Cut and paste and replace and your set. hello, To convert MyJavaApplication.java to an executable file convert that file into a batch file MyJavaApplication.bat ......................... 1. compile and test your java file and make sure it works fine. 2. create a batch file as follows. a: write java MyJavaApplication in notepad. b: save this file as MyJavaApplication.bat Now doubleclick this file and you shall see your java file running. This is a coarse way of creating an executable file. Also, you can modify the properties of the Batch file so you can have the command prompt window auto close when you close the application, otherwise you have to manually close both. If anyone knows how to make it invisable from the batch file, that would completely rock. sundhario April 16th, 2001, 11:38 AM There are native byte code compilers which will convert .class files into an .exe file there might be a couple eval versions out on the net... Norm April 16th, 2001, 04:33 PM There are two other ways to single click execute java programs on Windows (I'm on Win9X). 1) Create a short cut, right-click it and select properties. Enter the commandline and the starting directory and set the Icon. 2) Add a choice to the Windows Explorer right-click/context menu: In W Explorer View|Options select FileTypes. Find existing extension and Edit it or add a New one if not there. Use New to add your new commandline. Be sure to put paths in "" in case there are spaces in the name. First line is the menu, second is the commandline. Use "%1" in the commandline to pick up the name of the file you've clicked on. Norm codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |