VS Code ·· Unable to find Java in the path.

Good afternoon,

I am trying to install VS Code for develop Garmin app and once I get installed VS and I execute the script Monkey C Verify installation I am getting the error "Unable to find Java in the path."

What I need to populate on IQ properties Java set path?

Another question, How I select the device for execute the app in test?

thanks in advance,

SportDev

Top Replies

  • installed VS and I execute the script Monkey C Verify installation I am getting the error "Unable to find Java in the path."

    Plugin won't know where is the JAVA_HOME if you didn…

All Replies

  • installed VS and I execute the script Monkey C Verify installation I am getting the error "Unable to find Java in the path."

    Plugin won't know where is the JAVA_HOME if you didn't config a env variable before, so you need to specify it by extension settings

  • Are you using Windows?

    If you download the MSI for an Eclipse Adoptium release (I recommend downloading the latest LTS release using the big button on that page - it should be version 17.x), the installer should modify the Windows PATH variable appropriately, which will allow Monkey C to find your java installation. (You can verify this by opening a Command Prompt / Terminal window and typing "java -version".)

    If you already have your own preferred installation of Java, just make sure you edit your system Path variable so it has an entry for the JDK's bin folder.

    https://www.java.com/en/download/help/path.html

    helpdeskgeek.com/.../

    Another question, How I select the device for execute the app in test?

    1) Make sure all the devices you're interested in are downloaded via the SDK manager (I would just download all of them.)

    2) When you create your project, use CTRL-SHIFT-P > Monkey C: Edit Products to select all the products your app should support

    3a) When you build your project (CTRL-SHIFT-P > Monkey C: Build Project), you will always be prompted for the device to build

    3b) If you run your project without explicitly building first (F5), you will only be consistently prompted for the device to build if you create a launch config (launch.json) first.