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

Starting Java programs from different command windows

 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic