Things I Needed to Know
2009-Dec-12, Saturday 12:44 pmTo make an executable jar (laugh if you want, but I was always happy without an executable):
- need to be in bin folder (or the root of your .class structure)
- create manifest.mf, add:
Main-class: socket/client/main
- jar -cvfm socketclient.jar manifest.mf socket/client
- chomd 777 socketclient.jar
- ./socketclient.jar 9.88.44.3 (or java -jar socketclient.jar 9.88.44.3)
- need to be in bin folder (or the root of your .class structure)
- create manifest.mf, add:
Main-class: socket/client/main
- jar -cvfm socketclient.jar manifest.mf socket/client
- chomd 777 socketclient.jar
- ./socketclient.jar 9.88.44.3 (or java -jar socketclient.jar 9.88.44.3)