java system preferences under different users in linux
Set these settings per user:
mkdir -p ~/.java/.systemPrefsmkdir ~/.java/.userPrefschmod -R 755 ~/.javaexport 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/
.
My thinking is that even though you have different users, the JVM still reads tomcat as one user since it's the same process. Perhaps what you need is a user management mechanism? Log in and log out
I fixed this by setting the permissions of my Bash program executing to 755
ls abc.shchmod 755 abc.sh