Skip to main content

Calling a specific class of Jar file inside a package from command Promt

Calling a specific class of Jar file inside a package from command Promt


Example to call a class from command line

C:\Users\AnilBalwani>java -cp C:\Users\AnilBalwani\Desktop\Testing.jar net.codecrete.qrbill.examples.AppendToPDF
Invoice 1 saved at C:\Raj\my_DemoPdf-1.pdf
Invoice 2 saved at C:\Users\AnilBalwani\my_dloc.pdf

Comments