![]() ![]() ![]() OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25. OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_265-b01) # why ~/.profile isn't run after a "su - user-name". I need to know which ~/.* file to put it in and/or # The following exports probably need to go into ~/.profile or # "sudo" wants password from keyboard, so separate the compound line. # Can't just paste the lines en masse to the Bash prompt cuz JDK 8 and JDK 11 refer to Red Hat builds of OpenJDK 8 and OpenJDK 11 respectively. It makes sense to install the most recent version or the version you were asked to try by JetBrains staff. Select the version to install, the higher the number after b, the more recent is the version. # They didn't, so just replace jdk8u172-b11 with jdk8u265-b01. Then, install Oracle Java JDK 17 using the dpkg command. Start the IDE, use Help Find Action (Ctrl+Shift+A or Cmd+Shift+A on Mac), type 'Choose Boot Java Runtime for the IDE', press Enter. # in the file name had a different pattern. # Did next steps manually in case version string I modified it for the URL of the tarball for my version, as found on the adoptopenjdk site, and fixed some pathologies that I experienced: cd ~/tmp Instead, I found Bash instructions at to "wget" the tarball and install it: # install-openjdk-8.sh I didn't actually have to download from the adoptopenjdk site and try to figure out the installation. OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)Īs per matigo's comment, "If you are using the 64-bit ISO (supported by Intel/AMD processors), then you'll want 圆4." OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) (answer Yes, and watch the downloads pass by) Unnless you have very specific requirements there are very good odds that the default-jdk will do what you need. Sudo apt install openjdk-17-jdk-headless # version 17+35-1~20.04 Sudo apt install openjdk-13-jdk-headless # version 13.0.7+5-0ubuntu1~20.04 Sudo apt install openjdk-8-jdk-headless # version 8u292-b10-0ubuntu1~20.04 Sudo apt install default-jdk # version 2:1.11-72 javacĬommand 'javac' not found, but can be installed with: Note that if you actually need to compile programs, you need more like the javac Java compiler. In other words, you have several already available in the Ubuntu package system. Sudo apt install openjdk-17-jre-headless # version 17+35-1~20.04 Sudo apt install openjdk-13-jre-headless # version 13.0.7+5-0ubuntu1~20.04 Sudo apt install openjdk-8-jre-headless # version 8u292-b10-0ubuntu1~20.04 Sudo apt install default-jre # version 2:1.11-72 I think you may have a X-Y problem, namely that all you really want is a JVM for your system.Īs suggested by running java on a Ubuntu 20.04 LTS WSL instance: javaĬommand 'java' not found, but can be installed with:
0 Comments
Leave a Reply. |