LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2021, 06:23 PM   #1
Straitsfan
LQ Newbie
 
Registered: May 2011
Posts: 26

Rep: Reputation: 0
tried to install java 17 in elementary OS but got Java 11 instead -- how to uninstall or update to Java 17


Hello all --

Trying to get used to EOS Odin, and downloaded and installed Java SE 17 from the Oracle Website. But when I wanted to make sure what version I had with java -version, it said I had version 11.

Anyone else have this problem? I would like to update it 17 or uninstall it. How do I do those two?
 
Old 12-02-2021, 02:53 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,167

Rep: Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393
you need to set the variable JAVA_HOME according to your config (= where did you install java 17)
probably: https://askubuntu.com/questions/1755...-home-for-java
 
Old 12-02-2021, 07:05 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,660

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584

Why do you want Java SE 17 - do you have specific software that requires it?

You probably have v11 because something installed via the package manager depends on it, and thus should not blindly remove it unless you want to break things.

It is perfectly valid (and often necessary) to have multiple versions installed at once, particularly with LTS versions 8 and 11.

I don't know whether Elementary's AppCenter can give you this information - if it doesn't, you'll need to use apt/dpkg on the command line.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 xsane I tried to use a HP scanjet 3500c scanner, it worked fine but when I tried to print all I got was garbage. br8ton2w Linux - Newbie 5 12-09-2016 04:51 PM
LXer: Elementary Studio GTK Theme - Fusion of Elementary and Ubuntu Studio Themes LXer Syndicated Linux News 0 01-18-2011 08:21 PM
LXer: What is Nautilus Elementary And How to Install Nautilus Elementary in Ubuntu Lu LXer Syndicated Linux News 0 05-21-2010 01:10 AM
[SOLVED] Tried wicd instead of NM, but got d-bus error YAOMTC Linux - Software 1 11-28-2009 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 PM.

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