You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can't recognize JAVA_HOME while its value was set #347
The settings in your settings.json config look good to me, but it looks like the jmods directory is missing from the JDK install. Therefore the vs code extension assumes that this module is not around and tries to inform you about that. Do the live hover work nevertheless? And where are the jmod files of your JDK install? Somewhere else?
@Samet-MohamedAmin The find command you ran didn't seem to find any jmod. So our question still remains where are the jmods in your particular setup?
The way your jdk installation is setup is somewhat different from what is expected by STS and so it seems to be unable to find the jmods directory or its contents in your install.
For reference, I have a jdk 12 on my machine and it contains a directory called 'jmods' in which we can find a number of '.jmod' files. See:
I would expect that... given that it relies on functionality from some of these jmods. So if they are not found then some features of STS 4, such as the live hovers, will not work.
Activity
martinlippert commentedon Aug 22, 2019
The settings in your
settings.jsonconfig look good to me, but it looks like thejmodsdirectory is missing from the JDK install. Therefore the vs code extension assumes that this module is not around and tries to inform you about that. Do the live hover work nevertheless? And where are thejmodfiles of your JDK install? Somewhere else?Samet-MohamedAmin commentedon Aug 22, 2019
I made a quick search for
jmodlocation.The live hover does not work either.
..
ps: I use other vs code java extensions without any problem.
kdvolder commentedon Aug 23, 2019
@Samet-MohamedAmin The find command you ran didn't seem to find any jmod. So our question still remains where are the jmods in your particular setup?
The way your jdk installation is setup is somewhat different from what is expected by STS and so it seems to be unable to find the jmods directory or its contents in your install.
For reference, I have a jdk 12 on my machine and it contains a directory called 'jmods' in which we can find a number of '.jmod' files. See:
kdvolder commentedon Aug 23, 2019
I would expect that... given that it relies on functionality from some of these jmods. So if they are not found then some features of STS 4, such as the live hovers, will not work.
Samet-MohamedAmin commentedon Aug 23, 2019
I have installed
java-12-openjdk-jmodsand now the problem seems to be solved. I should had done this from the first time.Thank you @martinlippert and @kdvolder for your feedback.
kdvolder commentedon Aug 23, 2019
Thanks for letting us know and I'm glad you found a solution.