DrClap: You still here?
here is what I did, but I am not sure if I have created a directory inside the jar file or not. Are both .class files to be in the directory inventorymain? or just InventoryMain.class?
This still will not run my program, when I try to run it now, nothing happens at all, so I obviously aint doing something right......
c:\****>jar cvfm Inventory.jar manifest.txt -C inventorymain/ .
added manifest
adding: inventorymain/./(in = 0) (out= 0)(stored 0%)
adding: inventorymain/./Inventory.class(in = 210) (out= 173)(deflated 17%)
adding: inventorymain/./InventoryMain.class(in = 289) (out= 216)(deflated 25%)
> I am not sure if I have created a directory inside the jar file or not.
Then look in the jar file. Any utility that can look in zip files will look in jar files. I use WinZip.
> Are both .class files to be in the directory
> inventorymain? or just InventoryMain.class?
If your class is in package X.Y.Z then it needs to be in directory X/Y/Z in the jar file. That applies to all files, of course. Why would it apply to one class but not to another class?
DrClap;
I looked into my Inventory.jar file and both .class files are in a directory called inventorymain. (so I have that correct.)
So everything seems to be the way it should be, but when I run the program, absolutely nothing happens. No error messages, and most importantly, no program execution. I am soooo frustrated right now!! This is all I get in command prompt when I run program.
C:\****>Inventory.jar
C:\****>
Any more suggestions?