{"id":15069345,"url":"https://github.com/omico/ohmyjvm","last_synced_at":"2025-04-10T17:11:26.711Z","repository":{"id":104449257,"uuid":"608860226","full_name":"Omico/OhMyJVM","owner":"Omico","description":"A JDK version manager for Windows written in Kotlin Native","archived":false,"fork":false,"pushed_at":"2025-02-26T22:20:51.000Z","size":272,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T14:51:21.697Z","etag":null,"topics":["jdk","kotlin-native","version-manager","windows"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Omico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T22:12:50.000Z","updated_at":"2025-02-26T22:20:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b7bdeb0-f749-48cd-a14e-fbd9ebe6c2c9","html_url":"https://github.com/Omico/OhMyJVM","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omico%2FOhMyJVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omico%2FOhMyJVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omico%2FOhMyJVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omico%2FOhMyJVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omico","download_url":"https://codeload.github.com/Omico/OhMyJVM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261608,"owners_count":21074223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jdk","kotlin-native","version-manager","windows"],"created_at":"2024-09-25T01:41:58.497Z","updated_at":"2025-04-10T17:11:26.674Z","avatar_url":"https://github.com/Omico.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh My JVM\n\n[![GitHub License](https://img.shields.io/github/license/Omico/OhMyJVM?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0.html)\n\n## Overview\n\nTL;DR: The benefit of Oh My JVM is you can switch different JDKs without refreshing your environments.\n\nOh My JVM is a command-line tool for\nWindows to manage multiple JDKs written in [Kotlin Native](https://kotlinlang.org/docs/native-overview.html) inspired by [nvm-windows](https://github.com/coreybutler/nvm-windows).\n\n## Usage\n\nAdd or create `JAVA_HOME` with `%USERPROFILE%\\.ojvm\\jdk\\current` to your system or user environment variables.\n\nAdd `%JAVA_HOME%\\bin` to your system or user `PATH` environment variable.\n\nMake sure you have cleaned your environment variables and let Oh My JVM to manage your JDKs.\n\n### Out-of-box\n\nOh My JVM can automatically detect and add supported JDKs.\n\nOfficially Supported JDKs\n\n- [Eclipse Temurin](https://adoptium.net)\n- [Zulu](https://www.azul.com/downloads)\n\nIf you want to add other JDKs, please see [Manually add and use JDKs](#manually-add-and-use-jdks).\n\nIf you want to help us to support more JDKs, please create an issue or pull request.\n\nAssume you have the following JDKs being installed. In `C:\\Program Files\\Eclipse Adoptium`:\n\n```text\n.\n├── jdk-11.0.17.8-hotspot\n├── jdk-17.0.6.10-hotspot\n├── jdk-18.0.2.101-hotspot\n└── jdk-8.0.362.9-hotspot\n```\n\nOh My JVM has automatically added those JDKs. Run `ojvm list` to list them.\n\n```text\nAlias: temurin-11.0.17.8\nPath: C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.17.8-hotspot\nVersion: 11.0.17.8\n\nAlias: temurin-17.0.6.10\nPath: C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.6.10-hotspot\nVersion: 17.0.6.10\n\nAlias: temurin-18.0.2.101\nPath: C:\\Program Files\\Eclipse Adoptium\\jdk-18.0.2.101-hotspot\nVersion: 18.0.2.101\n\nAlias: temurin-8.0.362.9\nPath: C:\\Program Files\\Eclipse Adoptium\\jdk-8.0.362.9-hotspot\nVersion: 8.0.362.9\n```\n\n### Switch JDK\n\nNow, you can switch different JDKs.\n\n```text\nojvm use temurin-11.0.17.8\n\njava -version\nopenjdk version \"11.0.17\" 2022-10-18\nOpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)\nOpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)\n\n# Or you can use the full path\nojvm use \"C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.6.10-hotspot\"\n\njava -version\nopenjdk version \"17.0.6\" 2023-01-17\nOpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)\nOpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)\n```\n\n### Manually add and use JDKs\n\nAssume you have the following JDKs being installed. In `C:\\Program Files\\Eclipse Adoptium`:\n\n```text\n.\n├── jdk-11.0.17.8-hotspot\n├── jdk-17.0.6.10-hotspot\n├── jdk-18.0.2.101-hotspot\n└── jdk-8.0.362.9-hotspot\n```\n\n```shell\nojvm add \"C:\\Program Files\\Eclipse Adoptium\" --depth 1\n```\n\n```text\nAdded JDK: C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.17.8-hotspot\nAdded JDK: C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.6.10-hotspot\nAdded JDK: C:\\Program Files\\Eclipse Adoptium\\jdk-18.0.2.101-hotspot\nAdded JDK: C:\\Program Files\\Eclipse Adoptium\\jdk-8.0.362.9-hotspot\n```\n\nGo to [Switch JDK](#switch-jdk) to do the next step.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomico%2Fohmyjvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomico%2Fohmyjvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomico%2Fohmyjvm/lists"}