Hi,
I am trying to jar my files, but have the following problems, any help would be very appreciated......
1. can I jar classes and a pakage in one jar file? (e.g. Test1.class, Test2.class, PackageTest). What is the proper syntex for this? I tried this, but did not work:
jar -cfm Test1.class Test2.class PackageTest.*
do I need to type every single .class in PackageTest (for example, PackageTest.myClass1 PackageTest.myClass2........)?
2. about make executable jar: I read one post in this forum said that steps are as following:
a.Create the
java Program and compile It.
b.Make a manifest file(eg:Manifest.mf) as follows:
Main-Class: <class file name which has the main method>eg: Main-Class:
Test c.Make the jar file:jar -cfm <Filename>.jar <Manifestfile> <list of classes in the java program>
So, I tried, and got the error message:
E:\scjd>Main-Class FBApp
'Main-Class' is not recognized as an internal or external command, operable program or batch file.
Can someone help me to know how to solve this? Thanks :roll: