Article 6M25K How to set Oracle JRE 8 installed in home dir as default JRE for current user?

How to set Oracle JRE 8 installed in home dir as default JRE for current user?

by
pusrob
from LinuxQuestions.org on (#6M25K)
Hi.

I need to use a program that specifically requires the old Oracle Java 8 as JRE. The problem is, that it is not available in my distribution's (Gentoo) repository any more, so I can't install it the normal way. The only option I have is downloading the official JRE tarball from java.com and copy its contents somewhere in my home directory.

Let's assume the install path for JRE will be:
Code:/home/someuser/Apps/JREAnd the path of the old Java program is:
Code:/home/someuser/Apps/OldJavaAppThe question is: How can I set this JRE as the default JRE for my current user, so that it works just the same as if it were installed using the package manager (from my user account's perspective)? I don't care about system-wide availability, I only need it for my own user account to run this one old java app. I don't have other JRE installed on the system.

Thanks in advance for your help.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments