biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Nick Lee
biang
Originally posted by Nick Lee:
Hi,
I think only one file is enough,you can keep all the info(params) inside it.I've finished working on that function and it works well.
hope helpful.
biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Andrew Monkhouse:
Hi Biang
I was talking about having a GUI for the server. Not having the client control the server.
Regards, Andrew
biang
biang
Nick Lee
biang
Biang: There is only one db file,so the db file location can be modified by server GUI and also by client GUI. What if they choose the different location??
Nick: I think the location doesn't need to be configed,cos ur db file should be placed beside ur jar file
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Andrew Monkhouse:
Hi Vlad
According to the instructions, "Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory."
This may be the same directory that contains the jar file, but it doesn't have to be. The example I gave was one instance where the current working directory would be different from the directory where the jar file is located.
Are you storing your properties file in the current working directory or are you explicitly storing it in the same directory as the jar file?
Regards, Andrew
biang
biang
Are you storing your properties file in the current working directory or are you explicitly storing it in the same directory as the jar file?
Originally posted by Vlad Rabkin:
Hi Andrew,
Of course if runme.jar will be executed from another directory(not the directory where runme.jar is located):
- properties will not be found if you try to load them
- properties will be saved in that directory (where the programm was executed), but not where runme.jar is.
So, you are right.
Vlad
biang
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
biang
"I'm not back." - Bill Harding, Twister
biang
Originally posted by Jim Yingst:
What I do is, I just look for the file in the current directory. If it's not there, I assume it's a new user, and I create a new properties file for them. They will need to configure things like host name and port number, using the GUI configuration tools.
This setup allows multiple users on the same machine using the same shared jar file but different properties files. This makes a lot of sense if the users have accounts on a Unix server - each user gets their own loging directory, from which they can start the client program.[/QB]
biang
"I'm not back." - Bill Harding, Twister
biang