Skip to navigation
Create a simple java jar file
29.01.23
A very simple approach to create .class, .jar file. Executing the jar file. No need to worry too much about manifest file. Make it simple and elgant. Java sample Hello World Program public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } Compiling the class file javac HelloWorld.java Creating the jar file jar cvfe HelloWorld.jar HelloWorld HelloWorld.class or jar cvfe HelloWorld.jar HelloWorld *.class Running the jar file java -jar HelloWorld.jar Or java -cp HelloWorld.jar HelloWorld
https://stackoverflow.com/questions/1238145/how-to-run-a-jar-file
Reply
Anonymous
Information Epoch 1742342813
Live free or die.
Home
Notebook
Contact us