|
-
September 28th, 2000, 08:24 AM
#1
Make a Executable
Is there a possibility to make an Executable (*.exe e.g. Windows) from Java Files ?
-
September 29th, 2000, 10:10 AM
#2
Re: Make a Executable
You can make a .jar (java executable) file.
-
April 15th, 2001, 01:59 PM
#3
Re: Make a Executable
use a batch file to avoid using javac *.java and java *.class each time you run a program
-
April 15th, 2001, 09:29 PM
#4
Re: Make a Executable
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.
-
April 16th, 2001, 11:38 AM
#5
Re: Make a Executable
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...
-
April 16th, 2001, 04:33 PM
#6
Executing Java programs on Windows
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
Norm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|