I have Java 1.6 installed on my Linux box and all users and programs used it. Now, I need to install a program which uses version 1.7. I want to install this version such that everyone else continues to use 1.6, except that new program. What I am thinking is to install new Java and to keep $JAVA_HOME to point to the old Java 1.6. For that particular process, executed by a separate user, I want to set $JAVA_HOME to point to java 1.7
Is this going to work? It will not overwrite the original $JAVA_HOME? Is it sufficient $JAVA_HOME to point to new java for everything to work?
Note: I don't want that the program to be executed under Java 1.7, the program calls a scripts which must run under 1.7. I don't have permissions neither to modify the program, nor those scripts.