Hi I want to create a jar file...
I'm using Windows
QUESTION 1 (or problem)
The classes are stored:
"d:\Información\Developer\a a JAVA sources\Folder classes"
I want to create the myRT.jar file in:
"D:\Información\Dev\a a JAVA sources\myRT.jar"
The MANIFEST.MF file: already is included:
for this reason I will trying with M (Upper case M Letter) and without m (Lower case letter)
My tests was:
"C:\Program Files\Java\jdk1.8.0_91\bin\jar.exe"
cvfM "D:\Información\Dev\a a JAVA sources\myRT.jar"
-C "d:\Información\Developer\a a JAVA sources\Folder classes\"
Without "\" ending the -C option
"C:\Program Files\Java\jdk1.8.0_91\bin\jar.exe"
cvfM "D:\Información\Dev\a a JAVA sources\myRT.jar"
-C "d:\Información\Developer\a a JAVA sources\Folder classes"
Without Upper Case M Option
"C:\Program Files\Java\jdk1.8.0_91\bin\jar.exe"
cvf "D:\Información\Dev\a a JAVA sources\myRT.jar"
-C "d:\Información\Developer\a a JAVA sources\Folder classes"
Previously this work fine for me:
"C:\Program Files\Java\jdk\bin\jar.exe"
cvfm "D:\Developer\java\dist\some.jar"
"d:\Developer\java\MANIFEST.MF"
-C D:\Developer\java\classes bz\pckg
QUESTION 2
How you are rt.jar supplied compressed or with "-0 store only; use no ZIP compression" option?
QUESTION 3
Is there advantage for jar file? speed: no compression (with -0 option) space: with compression
QUESTION 4
What arguments are used by Netbeans (by default) to compress jar files?
PD
I was reading the help
https://docs.oracle.com/javase/tutorial/deployment/jar/build.html