C
C#2d ago
ninja

trying to update my java jdk path but having issues

I'm having issues updating my java jdk. I unpackaged the latest and successfully have a java_home env var set but it still tells me something is wrong and i need to update the pathing. It says to put the path at the machine level but I don't know what that means. Currently, I have the jdk in a marked folder under documents. This is for my maui project i'm trying to update some dependencies on.
ACTION REQUIRED:
✗- Java Development Kit (JDK) - The selected Java SDK version 17.0.13 is not recommended. Ensure the required JDK version 17.0.14 is configured by installing the JDK, and then setting the JDK at the preferred level.
1. Install the JDK:
- From the command palette, choose '.NET MAUI: Configure Android', select 'How to configure Android', and follow the instructions.
2. Set the JDK via one of the following routes:
- (Recommended) Set the JAVA_HOME environment variable to define the Java SDK path at the machine level.
- Configure the path to be used by adding the MSBuild property JavaSdkDirectory in the '.csproj' file to define the Android SDK path at the project level.
- From the command palette, select '.NET MAUI: Configure Android', and then 'Java SDK Preferred location' to set the preferred Java SDK path at the user/workspace level.
ACTION REQUIRED:
✗- Java Development Kit (JDK) - The selected Java SDK version 17.0.13 is not recommended. Ensure the required JDK version 17.0.14 is configured by installing the JDK, and then setting the JDK at the preferred level.
1. Install the JDK:
- From the command palette, choose '.NET MAUI: Configure Android', select 'How to configure Android', and follow the instructions.
2. Set the JDK via one of the following routes:
- (Recommended) Set the JAVA_HOME environment variable to define the Java SDK path at the machine level.
- Configure the path to be used by adding the MSBuild property JavaSdkDirectory in the '.csproj' file to define the Android SDK path at the project level.
- From the command palette, select '.NET MAUI: Configure Android', and then 'Java SDK Preferred location' to set the preferred Java SDK path at the user/workspace level.
1 Reply
mg
mg2d ago
are you aware this is a C# server, ah, it's for maui, nevermind

Did you find this page helpful?