question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong commands to install openJDK

See original GitHub issue

Describe the bug Our quickstart says…

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk11
java -version

This isn’t valid syntax as of early 2021.

Furthermore, if you do brew install, openjdk does not become the default version of Java. There are instructions on how to do this, but they are presented as only being needed if you do not use homebrew at all.

Expected behavior The code block should probably be something like

brew tap AdoptOpenJDK/openjdk
brew install adoptopenjdk11
unset JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 11`
java -version

┆Issue is synchronized with this Jira Story ┆friendlyId: DOCK-1925 ┆sprint: Sprint 74- Aquaman ┆taskType: Story

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chmreidcommented, Oct 29, 2021

Documentation written as an escaped Markdown string in a Javascript variable in a file deep in an application directory structure? Yuck.

1reaction
aofarrelcommented, Oct 8, 2021

Additionally, it seems that the instructions don’t put dockstore on the path permanently, and will keep making .bashrc larger and larger.

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't install openjdk keeps giving me error - Ask Ubuntu
can't install openjdk keeps giving me error ... Here's the commands i have tried. ... Have you tried sudo apt-get install -f ?...
Read more >
Chapter 2. Installing OpenJDK 11 on Red Hat Enterprise Linux
2.1. Installing a JRE on RHEL by using yum · Run the yum command, specifying the package you want to install: Copy. Copied!...
Read more >
Install Java 11 OpenJDK on Windows (a system path issue)
To install Java without installer I, of course, had set my system settings PATH and JAVA HOME to the address of the folder...
Read more >
javac: command not found" error after installing OpenJDK 1.7 ...
I have fixed this issue by executing the following command. I was not setting the PATH variable properly. I executed the following two ......
Read more >
'Java Not Recognized' Error Fix - TheServerSide.com
Install or reinstall Java and the JDK on your computer · Add Java's bin directory to the computer's PATH · Restart the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found