I am reading a *.properties file using properties.load and a file name.
I want to add the properties file to the jar or to the classpath.
- How do add a file to the jar?
- How do I read from the jar?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Place the file in the source folder, it will be copied to the output and added to the jar together with the classes according to
Settings|Compiler|Resource Patterns.To load the file in your app use something like: