I'm trying to submit my java homework,and would like to create a jar file that contains the compiled .class files as well as my original source code .java files. I'm using IntelliJ, but didn't find an option of exporting .java to jar. Is there a way to do it by commandlines?
try
jar cf jar-file input-file(s)
check http://docs.oracle.com/javase/tutorial/deployment/jar/build.html for more info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With