try { ResourceBundle rb = ResourceBundle.getBundle("SimpleResourceBundle"); System.out.println(rb.getString("AMMessage")); System.out.println(rb.getString("PMMessage")); } catch (MissingResourceException mre) { mre.printStackTrace(); }