Here is mine as
@gvisoc has stated
user@expirion:~$ java -version
openjdk version "17.0.14" 2025-01-21
OpenJDK Runtime Environment (build 17.0.14+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.14+7-Debian-1deb12u1, mixed mode, sharing)
this is what I get with what you are using
user@expirion:~$ java --version
openjdk 17.0.14 2025-01-21
OpenJDK Runtime Environment (build 17.0.14+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.14+7-Debian-1deb12u1, mixed mode, sharing)
as you can see there is no difference
What packages do you show in Synaptic Package Manager that are installed? here is what I have installed on my machine
Your problem may be Java 23 use openjdk 17 instead - but here is how to install Java 23
- Use the wget command to download the JDK 23 .deb package from the official Oracle website.
Install the downloaded package:
Use dpkg to install the JDK 23 package on your Debian system.
dpkg -i jdk-23_linux-x64_bin.deb
- Once the installation is complete, remove the downloaded .deb file to keep your system clean.
rm jdk-23_linux-x64_bin.deb
After the installation, you can check if Java is successfully installed by running:
This will display the installed Java version, confirming that JDK 23 is correctly set up on your Debian system.