my dog learned polymorphism*
The moose likes Java in General and the fly likes Starting Java programs from different command windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Starting Java programs from different command windows" Watch "Starting Java programs from different command windows" New topic
Author

Starting Java programs from different command windows

Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Hi All,
I have a program that reads a property file when it first starts and it uses these various properties in the setup. I can change these properties from the GUI and then save them to disk. What is very strange here is that if I start the program from one command window, modify the properties and save them, exit the program, and then start the program again from another command window, it uses the old properties. If I start the program from the same command window that I save the properties in, it will be correct. Can anyone tell me what is going on here and how can I fix this problem? The properties file should be read and used no matter where I am starting it from. Many thanks for your help!!!
Lucas Richardson
Ranch Hand

Joined: Jul 08, 2001
Posts: 32
Are you sure that the file has been written to when you try to start the program in the second window? Also, when you try to start up the 2nd instance of it, is the first still running?
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Yes the file has definitely been written to. If I start the program in the same window, then I can see the changes that I just made. Also, I do stop the program before starting another.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Java programs from different command windows
 
Similar Threads
NX:Some Questions(URLyBird1.3.2)
Need Help starting Tomcat
JDBC Eclipse mySQL
JAXP on win98 - anyone ?
How to point PATH envirnoment to /bin directory?