Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Load property file from outside the Jar  RSS feed

 
Angelo Nicholas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

How do i load a config file which has to be placed outside the Jar file, i had it inside my jar initially and placed it in the classes folder. Now i need to place the config file outside the jar and run the jar using a bat file, how do i set the classpapth so as to include the config file at runtime.

I am new to java and do not have much experience in java.

Thanks
Angelo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!