java system preferences under different users in linux

java system preferences under different users in linux

Set these settings per user:

mkdir -p ~/.java/.systemPrefs
mkdir ~/.java/.userPrefs
chmod -R 755 ~/.java
export JAVA_OPTS=-Djava.util.prefs.systemRoot=/home/user/.java -Djava.util.prefs.userRoot=/home/user/.java/.userPrefs
  <run appl>

Without creating the directories, some Java virtual machines default to /etc/.

See also: Java – Setting Preferences backingstore directory

My thinking is that even though you have different users, the JVM still reads tomcat as one user since its the same process. Perhaps what you need is a user management mechanism? Log in and log out

java system preferences under different users in linux

I fixed this by setting the permissions of my Bash program executing to 755

ls abc.sh
chmod 755 abc.sh

Leave a Reply

Your email address will not be published. Required fields are marked *