Home >类库下载 >java类库 >The java virtual machine runs the jar file directly

The java virtual machine runs the jar file directly

巴扎黑
巴扎黑Original
2016-12-02 12:04:583633browse

1. Select the java file, right-click and select export---> Select jar file and click next
2. Check export generated class files and resources and export java source files and resoures
Then enter the save path in jar file:
Click next
3.
Click next by default, click next again, click the Browse button behind the main class
Select the main method
finish

4.
Enter cmd to enter the command window
Run the command: java -jar jar path

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn