Hi all. I decided to update my mobile project to 5.1 and after the update it needed a different target sdc, I installed it and changed. However, after that, an error with java began to fly out, claiming an error between the environment variable and the installed java location. I already tried to change the Java installation location in the project settings, but another error pops up and I’m sure that I’m correcting the first one incorrectly. Tell me what am I doing wrong
I think the issue is that your JAVA_HOME
should point to a jdk but yours is pointing to the jre. Java Development Kit (jdk) is for making apps, Java Runtime Environment (jre) is for running java apps.
The default install location for the jdk is in program files, for example:
C:\Program Files\Java\jdk-19
3 Likes
I already changed the environment variable settings to match the UE5 setting - this leads to the error indicated in the picture. I found a small thread on reddit where a person had the same problem, but my level of English does not allow me to understand exactly what he did. He writes about creating a new keystore, but it didn’t help me, maybe he means something else. Here is the quote:
Maybe the problem is in the outdated jdk?
-
Windows 7 – Right click My Computer and select Properties > Advanced
2.Windows 8* – Go to Control Panel > System > Advanced System Settings
Windows 10 – Search for Environment Variables then select Edit the system environment variables - Click the Environment Variables button.
- Under System Variables, click New.
- In the Variable Name field, enter either:
-
JAVA_HOME
if you installed the JDK (Java Development Kit)
or -
JRE_HOME
if you installed the JRE (Java Runtime Environment)
- In the Variable Value field, enter your JDK or JRE installation path.
6 Likes
worked. Thanks a lot
Still the best answer and working!