[Solved] VScode complains that Java project has no explicit encoding set

We Are Going To Discuss About VScode complains that Java project has no explicit encoding set. So lets Start this VScode Article.

VScode complains that Java project has no explicit encoding set

  1. [Solved] VScode complains that Java project has no explicit encoding set

    I have experienced the same problem after the Language Support for Java by Red Hat extension had been updated to v1.5.0. No code errors were reported and only the message about no explicit encoding was shown in the Problems tab.

  2. VScode complains that Java project has no explicit encoding set

    I have experienced the same problem after the Language Support for Java by Red Hat extension had been updated to v1.5.0. No code errors were reported and only the message about no explicit encoding was shown in the Problems tab.

Solution 1

Just a few minutes earlier I was also having the same problem. Here is how I fixed it:

  1. Click on the Gear Icon.
  2. Click on Settings.
  3. Click on Command Palette.
  4. Type Clean java language server workspace.
  5. Hit Restart and Delete.
  6. After reloading is done, the issue will be fixed.

Original Author Mr. T-REX Of This Content

Solution 2

I have experienced the same problem after the Language Support for Java by Red Hat extension had been updated to v1.5.0. No code errors were reported and only the message about no explicit encoding was shown in the Problems tab.

I was able to resolve the issue by clicking the “…” next to “Java Projects” in the Explorer view, and selecting “Clean Workspace”, then “Restart and delete”.
After the application had reloaded, the issue was gone and language server started working as usual.

Original Author Irseq Of This Content

Solution 3

I believe this is a bug caused by v1.5.0 Red Hat’s Language Support for Java extension. Nothing I tried fixed it, so the best solution may be to wait for the extension developers to fix it.

You can follow the issue on GitHub https://github.com/redhat-developer/vscode-java/issues/2416

Original Author Luke Cloninger Of This Content

Solution 4

I have same problems before few minutes ago.
and I solved this problem.

File -> Save Workspace AS -> Choose Your directory -> Save

Original Author PowerOverWhelmingCoding Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment