posted 12 years ago
Thanks. I will try to do that at home.
By the way, I am trying a simple experiment in my office computer using netbean platform
I have c:\myProgram\javaApplication\src. I have a simple program called JavaApplication.java
I compile it under my command prompt. So, I have c:\myProgram\javaApplication\classes\JavaApplication.class
Under c:\myProgram\javaApplication, I type jar -cfm sample.jar abc.txt -C classes .
where abc.txt contains "Main-Class: javaApplication.JavaApplication"
So, I typed jar -xf sample.jar sample.jar
In c:\myProgram\javaApplication, I hava javaApplication package and META-INF folder. I opened the META-INF folder, I
see the default manifest.mf, instead of abc.txt
Here is the problem. jar -cfm does not seem to add acb.txt to META-INF folder.
So, when I type javaw -jar sample.jar , I got the same error message.