redhat-developer / redhat-developer/vscode-java

JDK missing or inaccessible folder in Ubuntu 18

Open
#1,044 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

runtime
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

[provide a description of the issue]
The java.home variable defined in VS Code settings points to a missing or inaccessible folder (usr/lib/jvm/java-8-openjdk-amd64)

Environment
  • Operating System: Ubuntu 18
  • JDK version: java-8-openjdk-amd64
  • Visual Studio Code version: 1.37.1
  • Java extension version: 0.7.1
Steps To Reproduce
  1. [step 1] Just open a java file and show this error.
    The java.home variable defined in VS Code settings points to a missing or inaccessible folder (usr/lib/jvm/java-8-openjdk-amd64)
Current Result

showing Java file text in red color.

Expected Result

I just want to open a java file in a normal java file way.

Additional Informations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the java.home setting against the reported Ubuntu JDK path, including whether the folder exists and is accessible. Reproduce by opening a Java file with the listed VS Code and Java extension versions. Done means the extension no longer reports the missing or inaccessible folder and Java files open normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
24/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.