![]() ![]() # /usr/local/sbin /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home Now my fish_user_paths (and PATH) have JAVA_HOME: echo $fish_user_paths Set -export JAVA_HOME /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home ~/.config/fish/functions/java11.fish function java11 I copied and adjusted this script for Java 11 (abbreviated): Set fish_user_paths $fish_user_paths $JAVA_HOME # If we add $JAVA_HOME/bin to the path, then man erroneously searches $JAVA_HOME/bin/man # We need it for the man pages, so man will search $JAVA_HOME/man # We do not need JAVA_HOME on the path for the executables Set -export JAVA_HOME /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home If set -local idx (contains -index - $JAVA_HOME $fish_user_paths) ~/.config/fish/functions/java8.fish function java8 ![]() I have a solution, but if anyone finds a simpler solution, then I will accept it. # OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)Īlso, I am able to compile and run Java 11 code.Īdditional information: I am using macOS Catalina 10.15.6 (19G2021). # OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) I can verify the versions are correct: java -version # location: Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk# # installer: Package name is AdoptOpenJDK # => Package installers may write to any location options such as -appdir are ignored. # => Running installer for adoptopenjdk11 your password may be necessary. # => Purging files for version 11.0.8,10 of Cask adoptopenjdk11 # => Verifying SHA-256 checksum for Cask 'adoptopenjdk11'. I checked that I have the latest version of AdoptOpenJDK 11 installed: brew reinstall adoptopenjdk11 I read Are my macOS man pages outdated?, but I do not think the answer applies here, because Java is not an old Unix tool, and I have installed Java with Homebrew. # uninstall pkgutil: 'net.adoptopenjdk.11.jdk' # system_command '/usr/sbin/pkgutil', args:, print_stdout: true When I run fswatch /usr/local/share/ while reinstalling adoptopenjdk11, I do not see any changes. I see Homebrew is storing manuals for other software: /usr/local/share/man.īased on the cask source, I do not see man pages installed, but I don't know what OpenJDK11U-jdk_圆4_mac_hotspot_11.0.8_10.pkg is doing. I find the location of the java manual: man -w java The Java Extensions Mechanism March 2002 javac(1) See or search the Java web site for the following: ![]() When I run man javac, I see documentation from 2002. The Java Extensions Framework Features June 2004 java(1) When I run man java, I see documentation from 2004. I want to see the documentation via the manual pages. I am using Homebrew to install AdoptOpenJDK 11. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |