run config file in server for each user

hello all

I have a Linux server and many terminals. In this server, I have a java application. From a terminal, an user can login into this server. When an user login, he will be at his folder called /home/username. He then run the Java application from his terminal. When the application run, it MUST open a config file for this user in his folder "username". So if ANOTHER user also run this application in the server from his terminal, the application will open the config file for ANOTHER user.

I am thinking that I can put the Java application in the server path, so all users can run the application from their terminals by using simple command regardless to the location of the application.

java -jar theApplication.jar

But I donot know how to do sothe application can find config file for each user.

How I can do that ?

Thanks

suhu

[891 byte] By [suhua] at [2007-11-27 9:56:21]
# 1
You can obtain the string for the user's home directory by using the System properties.System.getProperty("user.home");
nantucketa at 2007-7-13 0:26:28 > top of Java-index,Java Essentials,Java Programming...