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.orgEnvironment
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
0 Comments