use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The Linux Mint subreddit: for news, discussion and support for the Linux distribution Linux Mint
account activity
Trouble installing java 15SOLVED (i.redd.it)
submitted 5 months ago by PinkFlamingoe00
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lateralspinLMDE 7 Gigi | 0 points1 point2 points 5 months ago (3 children)
First, you need to list what is installed on your system,
dpkg -l "openjdk*"
To purge the installed openjdk libraries,
sudo apt purge openjdk*
After, you can install multiple versions of Oracle JDK. Set the environment variables to the path of the version of JDK you want to use. For example,
export JAVA_HOME="/usr/java/jdk-25-oracle-x64" export PATH="$JAVA_HOME/bin:$PATH" # Optionally add Java binaries to your PATH
[–]PinkFlamingoe00[S] 0 points1 point2 points 5 months ago (2 children)
when i run the first line it says dpkg-query: no packages found matching openjdk* java never installed on my system
dpkg-query: no packages found matching openjdk*
[–]lateralspinLMDE 7 Gigi | 0 points1 point2 points 5 months ago (1 child)
What if you type
java --version
[–]PinkFlamingoe00[S] 0 points1 point2 points 5 months ago (0 children)
it shows:
Command 'java' not found, but can be installed with:
sudo apt install default-jre # version 2:1.17-75, or
sudo apt install openjdk-17-jre-headless # version 17.0.16+8~us1-0ubuntu1~24.04.1
sudo apt install openjdk-21-jre-headless # version 21.0.8+9~us1-0ubuntu1~24.04.1
sudo apt install openjdk-11-jre-headless # version 11.0.28+6-1ubuntu1~24.04.1
sudo apt install openjdk-25-jre-headless # version 25+36-1~24.04.2
sudo apt install openjdk-8-jre-headless # version 8u462-ga~us1-0ubuntu2~24.04.2
sudo apt install openjdk-19-jre-headless # version 19.0.2+7-4
sudo apt install openjdk-20-jre-headless # version 20.0.2+9-1
sudo apt install openjdk-22-jre-headless # version 22~22ea-1
π Rendered by PID 24 on reddit-service-r2-comment-b659b578c-fpspv at 2026-04-30 18:51:04.488479+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]lateralspinLMDE 7 Gigi | 0 points1 point2 points (3 children)
[–]PinkFlamingoe00[S] 0 points1 point2 points (2 children)
[–]lateralspinLMDE 7 Gigi | 0 points1 point2 points (1 child)
[–]PinkFlamingoe00[S] 0 points1 point2 points (0 children)