Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help regarding property file

 
nitude gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi DERE!!
I am writing a Java code in which I am trying to use property file where I have defined connection details and few constants

here is my code


CheckListReportComponent.java
########################

connection.properties
########################


when I use strURL or strUser etc in getMyConnection() function I start getting err "Driver not Found!!!"
where as when I prnt these properties in main...using SOP I m able to do that..
Please suggest where I m missing n why these property are not available inside other functions

TIA......


 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
properties in the files shouldn't have quotes around them
eg
 
nitude gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Thanks for the prompt reply...It worked!!!
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome. Thanks for the feedback.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic