LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-13-2024, 01:47 PM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

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


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/JRE
And the path of the old Java program is:
Code:
/home/someuser/Apps/OldJavaApp
The 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.
 
Old 04-14-2024, 08:18 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,608

Rep: Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550

If prefixing the java binary's location to your path isn't enough, set the JAVA_HOME environment variable too.

 
Old 04-14-2024, 02:13 PM   #3
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Original Poster
Rep: Reputation: 36
Hi.

Thanks for the reply. I figured out the path part, but didn't know about JAVA_HOME. It sort of works now, but only if I start the program from the command line. It should suffice for now, as I only need to use this program very rarely (fortunately).

Marking the thread as solved.
 
  


Reply

Tags
installation, jre, local, oracle



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using backed up "Home" dir for user "Home" dir in another Computer pizzipie Linux - Newbie 3 10-22-2023 04:27 AM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 11:37 AM
exclude parameter of rsync- 'dir' vs "dir" vs dir rng Linux - General 5 06-13-2012 01:47 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration