Oracle Java Installer
Oracle java (jdk/jre) installler script for linux. It simplifies the installation of Oracle java from a downloaded source (tar.gz). It also maintains consistency among multiple versions of java (jdk/jre). Uninstalling any java version installed with this script will fall back to the next most recently installed version of java.
Give the install.sh file execution permission and run it in terminal (with root privilege).
sudo add-apt-repository -y ppa:neurobin/ppa sudo apt-get update sudo apt-get install oraji
Java Installation Instruction:
Run in terminal:
sudo oraji '/path/to/the/jdk_or_jre_archive'
sudo /path/to/oraji /path/to/the/jdk_or_jre_archive after giving the oraji script execution permission if you didn't install the script).
That's it. Now if you want to populate JAVA_HOME and other environment variables run
source /etc/profile or logout and login.
Java Uninstallation Instruction:
path/to/oraji -uif you didn't install the oraji script).
- Choose the version to be uninstalled from the list.
- The version can be provided as command line argument too i.e
oraji -u version(or
/path/to/oraji -u versionif you didn't install the script).
- The java version points to the jdk/jre install directory:
/usr/lib/jvm/jdk|jre<version_number>and comprises with both the jdk/jre part and the version_number part.
- You shouldn't run
oraji -u version(with a version argument) unless you are sure of it. Simply run
oraji -uand let oraji detect the version for you.
- After uninstalling with this script, if Java falls back to another Java version then JAVA_HOME and other environment variables will be updated accordingly (you will need to run
source /etc/profilemanually to populate them immediately), mozilla plugin will be restored to the fallback java.
N.B: The uninstallation method is only for the oracle java installed with the
oraji script. It deletes the
/usr/lib/jvm/jdk|jre<version_number> directory and all exports and environment variables that was included in /etc/profile by oraji and the mozilla plugin. If a fall back java is available, exports and environment variables will be available for this java version and mozilla plugin will be restored.
Manage multiple Java versions:
Switching between Java versions was never easier
You can install multiple Java versions and set whichever version you want as your current Java.
- To check which version of Java is currently active (with all other available Java versions) run
- To activate a Java version, run
sudo oraji -sand select the version from the list.
||Install from an archive path|
||Set a java version|
||Show the installed java versions|
4.1.0: Tue Aug 23 23:38:01 UTC 2016
-soption to activate an installed Java version
-coption to check installed Java version
-hoption for help
-ioption for an alternative to provide archive path
4.0.2: Sat Jan 9 16:16:23 UTC 2016
- Improved environment variable management for multiple java version.
- Minor bug fix.
- Manual added. Can be accessed with
4.0.1: Wed Dec 23 04:34:25 UTC 2015
- Input prompt improved.
- tilde (~) expansion supported in input prompt.
- Minor bug fix
4.0.0: Tue Dec 22 23:37:16 UTC 2015
- an install.sh script to install oraji.
- Takes the path of the archive instead of version name.
- Can be run from any directory.
- Both jdk and jre can be installed/uinstalled.
- If multiple version of jdk/jre is installed, then upon uninstallation of a version, java automatically falls back to a previously (most recent) installed version.
oraji -vprovides version info of
oraji -uto uninstall java.
- Internal multiple java version management.
3.0.1: Tue Dec 22 20:58:42 UTC 2015
- Added some extra environment variables besides JAVA_HOME.
- Updated PATH environment variables with some new paths.
- JAVA_HOME is no longer deleted by uninstall script.
- Multiple java version management.
3.0.0: Tue Dec 22 19:32:07 UTC 2015
- Improved portability.
- Lot's of bug fixed.
- Comprehensive install of java which makes it usable for java developers.
- Xubuntu 14.04.1 LTS