


This may happen as early as July 3, 2012. If you have Auto-Update enabled, your JRE 1.6 version will be updated to JRE 7. If it doesn't, please make sure you followed all steps correctly.Oracle Support is telling all Forms and EBS users to urgently disable auto-update of the JRE on your end users PC. If it returns the just set path, the environment variable has been set successfully. Now reload this file: source /etc/environment That should be enough to set the environment variable. In this file, add the following line (replacing YOUR_PATH by the just copied path): JAVA_HOME="YOUR_PATH" The path of the installation is for each:Ĭopy the path from your preferred installation and then edit the file /etc/environment: sudo nano /etc/environment It returns something like: There are 2 choices for the alternative java (providing /usr/bin/java). To set the JAVA_HOME environment variable, which is needed for some programs, first find out the path of your Java installation: sudo update-alternatives -config java Setting the "JAVA_HOME" environment variable In Java, this includes but is not limited to: keytool, javadoc and jarsigner. This command can be executed for all other commands which have different installations. It is the same selection screen as the previous command and should be used in the same way. This can also be done for the Java compiler ( javac): sudo update-alternatives -config javac You can now choose the number to use as default. Press enter to keep the current choice, or type selection number: * 0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 auto modeġ /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual modeĢ /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 manual mode It will usually return something like this if you have 2 installations (if you have more, it will of course return more): There are 2 choices for the alternative java (providing /usr/bin/java). To do this, execute the following command: sudo update-alternatives -config java When there are multiple Java installations on your Droplet, the Java version to use as default can be chosen.
