Skip to content

kevinmic/java_readFileFromResource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Run the following

cd src
# compile the code for the jar
javac code/*.java
# create the jar using the code and udf directories
jar -cf ../myjar.jar code udf

cd ..
# list the contents of the jar
jar -tf myjar.jar
# compile the test code that accesses code in the jar
javac -cp .:myjar.jar TestIt.java
# run the code
java -cp .:myjar.jar TestIt

About

Code to try and illistrate a way to get a file out of a resource Stream and a way not to do it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published