TzZek
TzZek

Reputation: 13

Visual Studio - Minecraft Mod Dev - Change JDK Location?

Problem I have a newer JDK installed and I need to change the path to that JDK instead of version 73, however I can't find anywhere on the IDE to do this.

Error:
Severity    Code    Description Project File    Line    Suppression State
Error       JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_73 MinecraftMod2   EXEC    0   

Upvotes: 1

Views: 79

Answers (1)

mjn
mjn

Reputation: 36654

The JAVA_HOME environment variable which points to the SDK can be set either for the current user only or for everyone, in the Windows computer settings 'Environment variables' dialog.

See for example

How to set java_home on Windows 7?

Upvotes: 1

Related Questions