[turn]
Several Java turn EXE tools, make a comparison, talk about your own views:
1. Get a Towerj compiler from www.towerj.com, which can compile your Class file into an EXE file.
Note: Can't find it, it is not available, and it is acquired.
2. Create an Exe file with Jexegen.exe provided by Microsoft's SDK-Java 4.0, this software can download from Microsoft's website, as follows:
http://www.microsoft.com/java/download/dl_sdk40.htm
The syntax of Jexegen is as follows:
JEXEGEN / OUT: EXE_FILE_NAME
/ Main: main_class_name main_class_file_name.class
[and other classes]
Note: Nothing tried
3. Visual Cafe provides a local compiler that can create an EXE file. You need to install the EXE components provided on the CD.
Note: Nothing tried
4. Create a installation disk using Installanywhere.
Note: Very nice tool.
But it is to be> 8m (with JRE), there is a> 1M (without JRE).
However, it can be compiled into an Exe program that can be used in various platforms.
5. A high-performance Java compiler provided using IBM AlphaWorks, which can be obtained from the following address:
http://www.alphaworks.ibm.com/tech/hpc
Note: Nothing tried
6. Jet is an excellent Java language local compiler. This compiler can get a test version from this website:
http://www.excelsior-usa.com/jet.html
Note: Don't like it.
Compiling good programs or JRE, I heard that genuine can not be JRE. I have to build it, I have used it for 30 minutes.
7. Instant Day JOVE
http://www.instantitutions.com/jove/...ejovesystem.htm
JOVE has merged the previous Supercede, an excellent local compiler, now Supercede has no longer exists.
Note: Too annoying, always coming out a dialog
Have it, will come out a dialog, indicating that this is a product of JOVE.
8. JTOEXE
A local compiler developed by Bravo Zulu Consulting, INC, which can be downloaded from the company's web page, but it is currently not found on the company's homepage.
Homepage: http://www.bravozulu.com/
I have had this software on this FTP, I don't know if it is still in:
ftp://race.dlut.edu.cn/pub/java/tools/jet
Note: I am bored, I always come out a dialog, but I didn't think I found CRACK, found on Google.
Now after I removed the dialog, I like this tool very much, although it needs JRE, but the file is only more than 100 K, very good.
9.exe4j
very nice
10.jbuilder
This tool does not have to talk more, in JBuilder6.0 (including 6.0), is not generated, so you can use the following method. This can be thought out, I just gave propaganda.
There are also JBuilder 7.0 to generate an EXE file.
This is the use of Borland's non-public use, which can make an EXE file to start the Java file through JBuilder. JBUILDER does not support local compilation mechanisms. But there is a hidden tip that allows you to start Java programs from an executable file, you can appear or do not appear in the Console window. I want to do this, I need these files in the bin directory of jbuilder:
JBuilder.exe
Jbuilderw.exe (optional)
JBuilder.config
JDK.config
Javalauncher.dll
"Jbuilder.exe" is a universal executable shell file for launching the Java program, "jbuilderw.exe" seems to be Javaw.exe, it puts "jbuilder.exe", but does not show that console when running window. The key to using these files is the file name. "Jbuilder.exe" finds a configuration file called "jbuilder.config", which contains information that runs the Java program. The same "jbuilderw.exe" finds "jbuilder.exe" to start Java programs that do not have a console window. Rename JBuilder.exe "Foo
.exe "," foo.exe "will look for" foo.config "configuration files, the same" jbuilderw.exe "is renamed" foow.exe ", which will look for" foo.exe "files.
Speaking here, smart readers should guess how to use JBuilder.exe to launch the app. Just rename the JBuilder.exe, JBuilerw.exe, jBuilder.config, specify the primary class and class path in jbuilder.config, and can be started by executing jbuilder.exe (or renamed EXE file) Java app is. Below is this unit as an example.
Borland JBuilder 5 is installed in the E: / JBuilder5 / Directory, build a Temp directory in E: / jbuilder5 / bin /, then copy jbuilder.exe, jbuilder.config, javalauncher.dll, jdk.config four files to E: / jbuilder5 / bin / temp / directory, then build a hello directory in this directory, generate a hello.java file in this directory, ie E: /JBUILDER5/bin/temp/hello/hello.java file,
//Hello.java/
Package hello;
Public class hello {
Public static void main (string s []) {
System.out.println ("Hello, EXE FILE!");
}
}
Compile into a Class file, then open the jbuilder.config file, make a corresponding modification:
Find the following two lines in jbuilder.config
# Start JBuilder Using The Its Main Class
Mainclass com.borland.jbuilder.jbuilder
change into
# Start JBuilder Using The Its Main Class
Mainclass hello.hello
AddPath E: / JBuilder5 / Bin / TEMP /
The addPath command is to add a directory to the class path, which can be identified in the CONFIG_README.TXT in the jbuilder / bin directory in the jbuilder / bin directory.
Then modify the javapath in jdk.config into a relative path, for example,
JavaPath ../jdk1.3/bin/java
changed to
JavaPath ../../jdk1.3/bin/java
At last
Modify JBuilder.exe, JBuilder.config to the file name required, such as foo.exe and foo.config files.
Execute the foo.exe file now
At this point, you have completed it by modifying JBuilder to start your own Java application using the EXE file.
But the fun place is not in this place, the following tips may be more interesting, pack the JAR file into the EXE file!
Assume that use the above file to generate a hello.jar package,
JAR CVF Hello.jar Hello / *. Class
Then attach the JAR package to jBuilder.exe,
Copy / b ../jbuilder.exe hello.jar foo.exe
In the foo.config (jbuilder.config) file, remove the class paths added before and add the following path:
AddPath E: /JBUILDER5/BIN/Temp/foo.exe
Then execute, foo.exe
have you seen it? An EXE file containing a jar package is executed!
The rough principle of this process is that the important information of the EXE file is in the file head, so putting the chaos and seven-eight-shot EXE files are not tight; the important information of the JAR / ZIP file is in the end of the file, so that they are not coherent It can be easily performed.
Please note: Readers If you use this feature, you have to take your own risk, because Borland does not provide official support for this feature!
You can also see http://www-900.ibm.com/developerwor ...ive/index.shtml This is an article, but it provides a lot of useful information.