Steps:
- Remove the .class files from
nbdirectory. - Edit the port in .java code
- Execute
javac .\HPDeviceManagerExploit.java. - Move newly formed .class files to
nbdirectory. - Now in the outside directory run
jar cfm .\HPDeviceManagerExploit.jar .\manifest.mf nb - You will have .jar file.