Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Joel Evans   on Dec 10 In Java Category.

  
Question Answered By: Vikram Aditya   on Dec 10

Jar file contains only "src" folder, so create a file called "resource" and keep the properties file.

Code to read data from properties file.

Properties logProperties=new Properties();
logProperties.load(ClassLoader.getSystemResourceAsStream("FILE_NAME"));
String logTableName = logProperties.getProperty("PROPERTY_NAME");


All the best

Share: 

 
 
Didn't find what you were looking for? Find more on jar files and properties files or file IO Or get search suggestion and latest updates.


Tagged: