VS Code error of not finding JDK installations

I use Visual Studio Code for coding and while now coding in java this error came up:-

Any idea what needs to be done to fix it??

Additional information:-
OS: Fedora 32 Workstation
code used to install java: sudo dnf inatall java
Java package: java-1.8.0-openjdk-1:1.8.0.252.b09-1.fc32.x86_64

Current situation: I am unable to code in Java! :frowning:

Please Help.

I suppose, and it is only a guess, that you should install the java -devel package.
sudo dnf install java-1.8.0-openjdk-devel
This command will install Java Development Kit - runtime environment and associated development tools.

https://developer.fedoraproject.org/tech/languages/java/java-installation.html

2 Likes

Yes, thank you brother, it helped. :slight_smile:
Well a small addition /usr/lib/jvm/java-1.8.0-openjdk
I had to include this path in its user setting.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.