How do I create an executable jar file?

Đăng Khánh

New member
How do I create an executable jar file?
Answer
To create a new runnable JAR file in the workbench:
  • From the menu bar’s File menu, select Export.
  • Expand the Java node and select Runnable JAR file.
  • In the Runnable JAR File Specification page, select a ‘Java Application’ launch configuration to use to create a runnable JAR.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2017/11
Command Prompt
  • Open a Command Prompt window as administrator. Windows 10: press Win⊞ + S, type cmd, then press Ctrl + Shift + Enter. Or click Start, and click All Programs.
  • Enter the command setx JAVA_HOME -m “Path” . For “Path”, paste in your Java installation path .
 

Tìm kiếm

Back
Top