To install Confluence manually on Windows, you will need to set an environment variable to point Confluence to the your Java installation directory. This information is only relevant if you're installing Confluence manually on a Windows server. If you're using the installer, you don't need to do this. If the path contains spaces, use the shortened path name. You'll need to close and re-open any command windows that were open before you made these changes, as there's no way to reload environment variables from an active command prompt.
If the changes don't take effect after reopening the command window, restart Windows. Is that wrong? Isn't it supposed to point to If so, how do I reset it?
No, it's not wrong. When using mvn -version , maven uses java internal java. It is actually dynamic property showing you which JRE is running your code. If you compile and execute a Test. This is expected. Quoting this :. It's meant to be set as an environment variable and referenced in Windows batch files or Unix scripts.
I always have it in my Windows Control Panel and. Some Java applications use the name jdk. And if you want to make sure, you can comment out " echo off" statement in mvn.
TL;DR: Based on the information you've given, your configuration is correct, no need to change anything. Edit: thanks to this thread, there was also an issue about this being confusing , which resulted in change of output for Maven version 3. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Please follow the steps given below to set up your Java environment. Follow the instructions to download Java, and run the. Once you have installed Java on your machine, you would need to set environment variables to point to correct installation directories.
Now, alter the 'Path' variable so that it also contains the path to the Java executable. Refer to your shell documentation if you have trouble doing this. For example, if you use bash as your shell, then you would add the following line at the end of your '.
To write Java programs, you need a text editor. There are even more sophisticated IDEs available in the market.
0コメント