Forums Register Login

jar files

+Pie Number of slices to send: Send
i would like to add a properties file in the jar package and i want the class files in the package to access the properties file. i always get a file not found error. what is the way of implementing it.
+Pie Number of slices to send: Send
Are you using Classloader.getResourceAsStream() to open the file? Since there's no actual file (it's in the JAR), you can't get to it using the normal File operations.
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 631 times.
Similar Threads
where to keep .jar file that is called in jsp page
Jar files & JarOutputStream
Location of Property files
How to use Properties file contents
Packaging an application
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:44:28.