<-- Back

Build failed with an exception error after Java SDK update

Issue

After a new Java SDK update is installed, Studio Pro shows the error below during the building process. Consequently, the user cannot start their application locally.

 

FAILURE: Build failed with an exception.

* What went wrong:
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program
Files\Eclipse Adoptium\jdk-11.0.20.8-hotspot\bin\java.exe

*Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Environment

Studio Pro (all versions)

Cause

If a new Java JDK is installed manually, Studio Pro will not automatically recognize the new installation folder. It will then display the mentioned error when it attempts to run the application.

Solution/Workaround

The users should update manually the path in the field JDK directory under the Studio Pro menu Edit> Preferences... in the tab Deployment.

Another solution is to update the Studio Pro version. This new installation will identify the new Java SDK version and use it.

Internal information related

  • 201476
  • C0A5EDRD2/p1699964550294919
Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.