Advertisement

09.07.2005 at 09:49AM PDT, ID: 21553534
[x]
Attachment Details

How to read configuration file or property file in Java?

Asked by ala in Java Programming Language

Tags: java, file, read, configuration

I have an application in Java. Each time when we change the server, we have to change the databae name, user name and some paths for text files and recompile it. I want to make a configuration or property file and each time just change in that file and application will run without recompiling it.
How is it possible, give me an example with sample code plz.

ThanksStart Free Trial
[+][-]09.07.2005 at 09:50AM PDT, ID: 14838338

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: java, file, read, configuration
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.07.2005 at 09:51AM PDT, ID: 14838343

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 11:14AM PDT, ID: 14838914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 11:17AM PDT, ID: 14838935

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2005 at 04:42PM PDT, ID: 14840998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32