Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Java • Installing JDK on PI

$
0
0
Hi All

New to all this and I'm trying to install Open JDK 17, I have tried this using UI, so heading to add/remove programs, searching Open JDK and selecting all the checkboxes against all the JDK 17 bits and clicking OK to start installing them. A pop up comes up and it looks like it is doing something but it ultimately fails with no error or warning message. I tried using the console and the command;

sudo apt install openjdk-17-jdk

The process kicks off and then I get the output below;
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-17-jre-headless : Depends: java-common (>= 0.28) but it is not installable

So I'm guessing I need to install java-common... any ideas how I would do that? I have been on google and found a couple of suggestions but nothing has worked.

Ta

Statistics: Posted by kdubz — Thu Mar 28, 2024 9:36 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles