Skip to content

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:

Terminal window
Get-Command jup
[Environment]::GetEnvironmentVariable('Path', 'User')

Repair only the current PowerShell session with:

Terminal window
$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:

Terminal window
$env:JAVA8_HOME = "D:\OpenJDK8"
jup init

Restore the missing Maven or JDK, or refresh detection:

Terminal window
jup doctor
jup init
Terminal window
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.