This should be located in your shell initialization file. Point it to the OpenJDK directory, not to its /bin subfolder, as JAVA_HOME will not only be used to determine the executables' location. Set JAVA_HOME to where you extracted your OpenJDK installation. My command (for Linux) was this one: sudo tar -xf OpenJDK11U-jdk_圆4_linux_hotspot_11.0.16.1_1.tar.gz -C /usr/local. If you want a more conventional location, extract it to /usr/local/, which is where software manually installed by the user conventionally goes in POSIX systems. ![]() In case you can't or don't want to use admin permissions, extract it somewhere in your user space (like ~/.openjdk). Then, extract the compressed file appropriate to your OS. Store the extracted files in the Directory Tree:.If it still isn't working, double-check this tutorial, try to read your JAVA_HOME path, and see if it points to the the bin folder within the downloaded folder's path. If it wasn't, restart your computer and try again. If the output was the version, all was OK, congrats! These are the executables you have access from your CLI (like Windows Terminal, Command Prompt, or Poweshell).Ĭlick on 'New' at the top-right corner and add %JAVA_HOME% as a variable. Click on the variable named Path (either for System or User, depending on your choice in the last section). Stay in the Environment Variables window. If you are doing this process as a non-admin, choose User Variables instead. Enter the variable value as the installation path of the JDK (appending the \bin sub-folder at the end of the path). In the System Properties window, select the Advanced tab, then Environment Variables. Open the Control Panel > System
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |