Skip to content

Instantly share code, notes, and snippets.

@sfloess
Last active May 12, 2022 16:39
Show Gist options
  • Save sfloess/ff16bfe32b99c626e5981d8cef512564 to your computer and use it in GitHub Desktop.
Save sfloess/ff16bfe32b99c626e5981d8cef512564 to your computer and use it in GitHub Desktop.
Java Tips and Tricks

Java

Helpful tips and tricks for Java.

Quickies

Adopt A JDK

  • yum - Create /etc/yum.repos.d/adoptopenjdk.repo containing:
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
  • apt
    • Import pgp key: wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
    • Add the following to /etc/sources/sources.list: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster main

Best Practices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment