|
Java™ by example!
|
|
|
How do I read resources from my JAR file?
For this example, create the following directory structure:
Create a manifest file to specify the class that contains the main method.
mymanifest:
(notice the extra carriage-return!) Main.java:
jar everything up:
run:
output:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|