Post a Job  |   Ask a Question?   |   Already registered? login or register
Srinivasu Seelam
02/05/2016 10:19 PM

Unable to execute a class within a Jar from command line


Spam    2 Comments

Prabha,Kumari
03/05/2016 00:09:40
1) After generating the class file Create any txt file(eg: mainfest.txt) which contains Main-Class: D (Don't forget to give new line) Now D.class and mainfest.txt both file available in App2 folder. Cretate jar file:- E:\Practice\ClassLoaders\classes\App2>jar -cvfm app2.jar mainfest.txt D.class Run jar file:- E:\Practice\ClassLoaders\classes\App2>java -jar app2.jar

Srinivasu,Seelam
05/05/2016 13:23:26

Languages :
xml