12-23-2017
1,484,
567
Join Date: Mar 2011
Last Activity: 28 November 2020, 9:34 AM EST
Posts: 1,484
Thanks Given: 68
Thanked 567 Times in 444 Posts
No need to uninstall anything.
Install the required oracle java using rpm.
Using alternatives command as superuser one can change the default java used.
Bare in mind, that perhaps some programs on the system rely on open java, so above change could affect those.
One could also download only required oracle java as compressed archive with all binaries and libraries required.
Create a user on the system which will utilize that java environment.
Unpack the archive under /opt/orajava (for instance)
As root, chown /opt/orajava to user created.
Setup required java options in user home directory profile file (JAVA_HOME etc.)
Configure kernel parameters for that user, depending on the application requirements/load (if applicable, defaults are often ok).
Above setup will have no effect on the system other then running new processes/code (load) under user created above and consuming disk space required.
Hope that helps
Regards
Peasant.