3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

The java.home variable defined in Visual Studio Code settings points to a missing or inaccessible folder (C:avadk-13.0.1)というエラーをはかれた

Last updated at Posted at 2020-01-12

エラーが出た

先日Javaの学習を始めたのでVScodeの拡張機能をインストールしていたら
"Language Support for Java(TM) by Red Hat"が

"The java.home variable defined in Visual Studio Code settings points to a missing or inaccessible folder (C:avadk-13.0.1)"

というエラーをはきやがりました。

__setting.json__の中にはしっかりと設定しているつもりでしたがよく見てみると
エクスプローラからパスをコピーしてきたものは
__"C:\Java\jdk-13.0.1"__となるのですが
__setting.json__のなかに記述されているほかのアドレスたちは
__""ではなく"/"__となっていたのです!
どうやらこれのせいで認識されなくてエラーをはいていたようです。
皆さんも気を付けましょう。

まとめ

エクスプローラでコピーしてくるとアドレスの区切りが""
setting.jsonのなかではアドレス区切りは"/"
そのせいで読み込めなかった。
置き換えたらうまく読み込んでくれました。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?