-2

I have been trying to install java using deb file using terminal. However terminal keep on showing 3 lines and exiting.

(Reading database ... 212600 files and directories currently installed.)
Preparing to unpack jdk-18_linux-x64_bin.deb ...
Unpacking jdk-18 (18.0.1.1-ga) over (18.0.1.1-ga) ...
Setting up jdk-18 (18.0.1.1-ga) ...
shiddalingayya@shiddalingayya-ThinkPad-E15-Gen-2:~/Downloads$ 

enter image description here

Pshemo
  • 122,468
  • 25
  • 185
  • 269
  • I think your question should be asked in [Server Fault](https://serverfault.com/), the StackOverflow is about coding. See [What topics can I ask about here?](https://stackoverflow.com/help/on-topic) for more information – D.Kastier Jun 15 '22 at 19:06

1 Answers1

1

From what I can tell, the installation seems to finish successfully. I don't see any errors. What you might ask is why can't you use the java or javac in the command line.

You need to set your PATH and JAVA_HOME environment variables first, before the java command becomes available everywhere.

Check this post to see how to do that.

Alin Gabriel Arhip
  • 2,568
  • 1
  • 14
  • 24