How to run a Java Gradle project from VSCodium with the Redhat plugin?

898 views Asked by At

Having installed the redhat plugin for Java on Linux:

redhat

how do I now run the app:

chimp

from VSCodium?

From the console, the app builds and runs fine using gradle.

After closing VSCodium and then restarting (both the machine and IDE) I see:

no_java

I've installed Java and the JDK with SDK so:

nicholas@mordor:~$ 
nicholas@mordor:~$ sdk install java 11.0.9.hs-adpt

java 11.0.9.hs-adpt is already installed.
nicholas@mordor:~$ 
nicholas@mordor:~$ javac -version
javac 11.0.9.1
nicholas@mordor:~$ 
nicholas@mordor:~$ java -version
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
nicholas@mordor:~$ 

probably this is the problem. Perhaps the IDE isn't picking up on the JDK?

1

There are 1 answers

2
Molly Wang-MSFT On

Check if you've built the project successfully.

This is a demo gradle project, and you can click the Run or button in the top right-hand corner:

enter image description here