Troubleshooting
Processes inherit environment variables when they start. Completely exit the IDE and any resident launcher, reopen them, and create a new terminal. On Windows, sign out and back in if necessary. Verify in PowerShell:
Get-Command jup
[Environment]::GetEnvironmentVariable('Path', 'User')
Repair only the current PowerShell session with:
$env:Path = "$env:USERPROFILE\.javaup\bin;$env:Path"
jup version
Run mvn --version in the same terminal. Restart the terminal after changing
PATH, or add Maven Wrapper to the project.
Confirm that it is a full JDK containing javac, not a JRE. Expose a custom
location through a versioned variable, or add <jdkHome> to Maven Toolchains:
$env:JAVA8_HOME = "D:\OpenJDK8"
jup init
Restore the missing Maven or JDK, or refresh detection:
jup doctor
jup init
jup settings list
jup settings use <alias>
# or
jup settings unset
Set the standard NO_COLOR environment variable. The repository build script
also accepts JUP_BUILD_COLOR=always or JUP_BUILD_COLOR=never.
If the problem remains, open a
GitHub issue with the operating
system, jup version, relevant POM configuration, expected Java version, and
redacted command output.