Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to java 21.0.2 #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions java.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

```bash
# Установка JDK
brew install openjdk@21
brew install openjdk@21.0.2

# Установка сборщика проектов Gradle
brew install gradle
Expand All @@ -44,8 +44,8 @@ brew install gradle
```bash
## Устанавливаем JDK
asdf plugin-add java https://github.com/halcyon/asdf-java.git
asdf install java openjdk-21
asdf global java openjdk-21
asdf install java openjdk-21.0.2
asdf global java openjdk-21.0.2

## Устанавливаем переменную окружения JAVA_HOME
. ~/.asdf/plugins/java/set-java-home.bash
Expand All @@ -71,7 +71,7 @@ brew install gradle
```bash
# Из директории, куда скачали архив
mkdir /usr/lib/jvm
tar -zxf openjdk-20*_bin.tar.gz -С /usr/lib/jvm
tar -zxf openjdk-21.0.2_bin.tar.gz -С /usr/lib/jvm
## Имя конечной директории может отличаться, в зависимости от версии
echo 'export JAVA_HOME=/usr/lib/jvm/jdk-21.0.2' >> $HOME/.bashrc
echo 'export PATH=$PATH:/usr/lib/jvm/jdk-21.0.2/bin' >> $HOME/.bashrc
Expand Down