You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔥 Мощный PowerShell-скрипт для Windows, который упрощает поиск, установку, переключение и управление несколькими версиями JDK/JRE от разных поставщиков.
1
+
# Java Version Manager [set-java]
2
+
3
+

**Java Version Manager** — это мощный PowerShell-скрипт для Windows, который упрощает поиск, установку, переключение и управление несколькими версиями JDK/JRE от разных поставщиков.
12
+
13
+
#### ✨ Ключевые возможности
14
+
15
+
***Мульти-провайдер:** Поддержка Azul Zulu, Adoptium Temurin, Amazon Corretto, Oracle GraalVM и других.
16
+
***Установка:** Поиск и установка нужной версии Java в несколько кликов.
17
+
***Переключение:** Мгновенное переключение активной версии `JAVA_HOME` для сессии или для всей системы.
18
+
***Обновление:** Автоматический поиск и установка минорных обновлений для установленных JDK.
19
+
***Очистка:** Удаление старых версий и "умная" очистка переменной `Path`.
20
+
***Интеграция с IDE:** Синхронизация установленных JDK с конфигурацией IntelliJ IDEA, удаление "осиротевших" записей.
21
+
***Безопасность:** Проверка целостности скачиваемых архивов по контрольной сумме SHA256.
22
+
23
+
#### 🚀 Установка
24
+
25
+
1. Скачайте последний релиз со страницы [Releases](https://github.com/PixelmonPRO/Java-Version-Manager/releases).
26
+
2. Распакуйте архив в любую временную папку.
27
+
3. Щелкните правой кнопкой мыши по файлу `setup.bat` и выберите **"Запуск от имени администратора"**.
28
+
4. Скрипт скопирует все необходимые файлы в `C:\Program Files\Java\scripts` и добавит эту папку в системный `Path`.
# Обновить все установленные JDK до последних минорных версий
52
+
set-java --update --force
53
+
54
+
# Синхронизировать JDK в IntelliJ IDEA
55
+
set-java --clean-ide --force
56
+
```
57
+
---
58
+
59
+
### 🇺🇸 English
60
+
61
+
**Java Version Manager** is a powerful PowerShell script for Windows that simplifies finding, installing, switching, and managing multiple JDK/JRE versions from various providers.
62
+
63
+
#### ✨ Key Features
64
+
65
+
***Multi-Provider Support:** Works with Azul Zulu, Adoptium Temurin, Amazon Corretto, Oracle GraalVM, and more.
66
+
***Installation:** Find and install the required Java version in just a few clicks.
67
+
***Version Switching:** Instantly switch the active `JAVA_HOME` for the current session or the entire system.
68
+
***Updates:** Automatically find and install minor updates for your installed JDKs.
69
+
***Cleanup:** Uninstall old versions with smart `Path` variable cleaning.
70
+
***IDE Integration:** Synchronize installed JDKs with your IntelliJ IDEA configuration and remove orphaned entries.
71
+
***Security:** Verifies the integrity of downloaded archives using SHA256 checksums.
72
+
73
+
#### 🚀 Installation
74
+
75
+
1. Download the latest release from the [Releases](https://github.com/PixelmonPRO/Java-Version-Manager/releases) page.
76
+
2. Unzip the archive to any temporary folder.
77
+
3. Right-click on `setup.bat` and select **"Run as administrator"**.
78
+
4. The script will copy all necessary files to `C:\Program Files\Java\scripts` and add this directory to the system `Path`.
79
+
5.**Restart your terminal (CMD/PowerShell/etc).**
80
+
81
+
After this, the `set-java`, `javas`, and `jav` commands will be available system-wide.
"ApiQuery": "Querying {0} API for available packages...",
53
+
"ApiFetchFail": "Failed to fetch data from API{0}. Check your internet connection. If the error persists (e.g., 404 Not Found), the API address may have changed.",
54
+
"ApiUnexpectedError": "An unexpected error occurred while fetching data from the API. Check your internet connection or firewall settings.",
55
+
"ApiRequiresVersion": "The {0} provider requires a major Java version to be specified for search.",
56
+
"NoJdksInstalled": "No JDK/JRE versions found in '{0}'.",
57
+
"DirNotFound": "Java installation directory not found: '{0}'. Create it? [Y/n]:",
58
+
"DirCreateFailed": "Failed to create directory '{0}'.",
59
+
"DirCreated": "Directory '{0}' created successfully.",
"NonInteractiveLatest": "Found {0} packages. Selecting the latest version: {1}",
84
+
"NonInteractiveVersionNotFound": "Version '{0}' not found among installed JDKs.",
85
+
"NonInteractiveSwitchingTo": "Switching to JDK/JRE: {0}",
86
+
"NonInteractiveUninstallForce": "Use --force to confirm deletion of '{0}'.",
87
+
"ConfirmUpdateAll": "Are you sure you want to install all found updates? [Y/n]:",
88
+
"FileHashUnavailable": "Failed to calculate the file checksum after several retries. The file may be locked by an antivirus or corrupted.",
89
+
"ProcessLockDetected": "Deletion failed. The following processes may be locking the files in '{0}':",
90
+
"KillProcessesPrompt": "Do you want to attempt to terminate these processes and retry deletion? [Y/n]:",
91
+
"TerminatingProcesses": "Attempting to terminate processes...",
92
+
"TerminationFailed": "WARNING: Failed to terminate process {0} (PID: {1}).",
93
+
"RetryingDelete": "Retrying deletion...",
94
+
"DeletionFailedAgain": "Deletion failed again. Please close the locking applications manually and try again.",
95
+
"NoProcessesFound": "Could not automatically identify locking processes. Please ensure any applications using this Java version (like IDEs or servers) are closed and try again.",
96
+
"DebugHashFail": "failed, retrying in {0} sec...",
97
+
"MenuCleanIde": "6. Synchronize IDE JDK configurations",
98
+
"CleanIdeTitle": "--- Synchronize IDE JDK Configurations (IntelliJ IDEA) ---",
99
+
"CleanIdeScanning": "Scanning for IntelliJ IDEA configuration files...",
0 commit comments