filmov
tv
Lesson - 09 : Eclipse IDE - Run Java program outside Eclipse

Показать описание
Create JAR file:
To run the Java program outside of the Eclipse IDE, you need to export it as a JAR file. A JAR file is the standard distribution format for Java applications.
Select your project, right-click it and select the Export menu entry.
Run your program outside Eclipse:
Open a command shell, e.g., under Microsoft Windows select Start ▸ Run and type cmd and press the Enter key. This should open a console window.
Switch to the directory which contains the JAR file, by typing cd path. For example, if your JAR is located in c:\temp, use the following command.
To run the Java program outside of the Eclipse IDE, you need to export it as a JAR file. A JAR file is the standard distribution format for Java applications.
Select your project, right-click it and select the Export menu entry.
Run your program outside Eclipse:
Open a command shell, e.g., under Microsoft Windows select Start ▸ Run and type cmd and press the Enter key. This should open a console window.
Switch to the directory which contains the JAR file, by typing cd path. For example, if your JAR is located in c:\temp, use the following command.