how to run jar file from command line

If you are trying to run Java file from command line (run jar file from command line) use the following example
C:\Program Files (x86)\Java\jre6\bin>java -jar .jar

I want to run Nexus 1000v installer from command line i will use following command

C:\Program Files (x86)\Java\jre6\bin>java -jar D:\Nexus1000v.4.2.1.SV2.2.1a\VSM\Installer_App\Nexus1000V-install_CNX.jar

Leave a Comment