2024-10-13

intellij コンパイルエラー

File - Project Structure

Platform Settings - SDKs - JDK home path

Project Settings - Project - SDK - Add JDK (フォルダを選択)


Gradleの場合

Failed to calculate the value of task ':compileJava' property 'javaCompiler'.

Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=21, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.

No locally installed toolchains match and toolchain download repositories have not been configured.

File - Settings

Build, Execution, Deployment - Build Tools - Gradle - Gradle JVM

hyperv windows

Hyper-Vマネージャー クイック作成 Windows11開発環境 仮想マシンの作成 参考サイト 【Windows 11便利テク】Windows 11でより使いやすくなったHyper-V。サクッと無料で仮想環境を作ってみる - PC Watch