How to load a properties file in Java
Posted on Jan 09, 2009 | 1 Comment
This tutorial will explain how to access properties file through Java coding. A properties file can be accessed with the ResourceBundle class which resides in the java.util package. In the example below I’m going to provide is based on the properties file staying in the same package. For properties file staying outside the package, we need to set the CLASSPATH variable pointing to the same folder where the external...
You can subscribe by e-mail to receive news updates and breaking stories.