For example, let's suppose These are the two last lines of my ~/.zshrc file: export JAVA_HOME="/usr/local/jdk-11.0.16.1+1" 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |