Java files run under windows without JDK installed.
•
Java
1. Firstly, the project should be GUI, using swing or AWT.
2. Use eclipse to package jar files.
Right click the project name, select export, and select Java \ jar file.
Select the SRC folder Classpath and Project not selected
Remove the option of export class files with compile errors
Select the class containing the main method in the main class and click finish.
3. Create a new folder, copy the jar package and the JRE directory file under the installation JDK to this directory, and copy the jar to this directory at the same time.
4. Create a directory under the above directory Bat file, edit as follows:
start java/jre/bin/javaw -jar xxx. jar
Lesson:
1. Using exe4j, JDK is restricted.
2. The use of Java launcher 64 bit system is limited.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码