Hi - I have a JAR file that uses data files and two zipped files, but I can not get them to work. Every thing works file in my IDE when I work with JAR's files and the zipped files.
At first I included all the files in the JAR and used a Manifest file:
Main-Class: folder.mainName
Class-Path: folder.zipFile_1.zip folder.zipFile_2.zip
First the JAR would not read the dat files in the JAR. It did work when I put the data files in the JAR's folder.
a) Is there a way to get the JAR to read text files within the JAR.?
The JAR would not access the zip files. I reied putting them out side the JAR and changed the Manifest file without too much luck. Here is the file:
Main-Class: folder.mainName
Class-Path: zipFile_1.zip folderFile_2.zip
b) How can I get the JAR to read/use the resources in the zipped file?
Any help/suggestions would be appreciated. Thanks... Ronnie
At first I included all the files in the JAR and used a Manifest file:
Main-Class: folder.mainName
Class-Path: folder.zipFile_1.zip folder.zipFile_2.zip
First the JAR would not read the dat files in the JAR. It did work when I put the data files in the JAR's folder.
a) Is there a way to get the JAR to read text files within the JAR.?
The JAR would not access the zip files. I reied putting them out side the JAR and changed the Manifest file without too much luck. Here is the file:
Main-Class: folder.mainName
Class-Path: zipFile_1.zip folderFile_2.zip
b) How can I get the JAR to read/use the resources in the zipped file?
Any help/suggestions would be appreciated. Thanks... Ronnie