{"id":13680474,"url":"https://github.com/halcyon/asdf-java","last_synced_at":"2025-04-29T23:31:54.363Z","repository":{"id":40336076,"uuid":"183291853","full_name":"halcyon/asdf-java","owner":"halcyon","description":"A Java plugin for asdf-vm.","archived":false,"fork":false,"pushed_at":"2025-04-23T16:47:28.000Z","size":168604,"stargazers_count":500,"open_issues_count":75,"forks_count":94,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T17:46:14.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halcyon.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,"zenodo":null}},"created_at":"2019-04-24T19:14:25.000Z","updated_at":"2025-04-23T16:47:32.000Z","dependencies_parsed_at":"2023-12-28T03:06:54.648Z","dependency_job_id":"64bb177e-dd0e-4cff-bfad-ad0e5fe3e40d","html_url":"https://github.com/halcyon/asdf-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcyon%2Fasdf-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcyon%2Fasdf-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcyon%2Fasdf-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcyon%2Fasdf-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halcyon","download_url":"https://codeload.github.com/halcyon/asdf-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251600356,"owners_count":21615693,"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":[],"created_at":"2024-08-02T13:01:17.458Z","updated_at":"2025-04-29T23:31:49.349Z","avatar_url":"https://github.com/halcyon.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# asdf-java\n\n[![Build status](https://github.com/halcyon/asdf-java/workflows/asdf-java%20Tests/badge.svg?branch=master)](https://github.com/halcyon/asdf-java/actions?query=workflow%3A%22asdf-java+Tests%22+branch%3Amaster) [![travis ci](https://travis-ci.org/halcyon/asdf-java.svg?branch=master)](https://travis-ci.org/halcyon/asdf-java) [![Join the chat at https://gitter.im/asdf-java/community](https://badges.gitter.im/asdf-java/community.svg)](https://gitter.im/asdf-java/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n[Java](https://www.java.com/en/) plugin for the [asdf](https://github.com/asdf-vm/asdf) version manager.\n\n## Requirements\n- [bash v5.0](https://www.gnu.org/software/bash/)\n- [curl](https://curl.haxx.se/)\n- [sha256sum](https://www.gnu.org/software/coreutils/) (only on Linux)\n- [unzip](http://infozip.sourceforge.net/UnZip.html)\n- [jq](https://stedolan.github.io/jq/) (only for updating the release data)\n\n## Install\n\n```\nasdf plugin-add java https://github.com/halcyon/asdf-java.git\n```\n\n## Use\n\nCheck [asdf](https://asdf-vm.github.io/asdf/) for instructions on how to install \u0026 manage versions of Java.\n\n## Install\n\nList candidate JDKs:\n\n```\nasdf list-all java\n```\n\nInstall a candidate listed from the previous command like this:\n\n```\nasdf install java adoptopenjdk-11.0.16+8\n```\n\n### Setting a version\n\nSelect an installed candidate for use like this:\n\n```\nasdf global java adoptopenjdk-11.0.16+8\n```\nor just for the local directory\n```\nasdf local java adoptopenjdk-11.0.16+8\n```\n\n### Latest\n\nIf you just want the latest of a major version (without worrying about the patch number), install it like this:\n\n```\nasdf install java latest:adoptopenjdk-11\n```\n\nSimilarly, you can set the global/local version. The latest tag will resolve to the most recent version.\n\nRunning `asdf local java latest:adoptopenjdk-11` will result in the following:\n\n```shell\n$ cat .tool-versions\njava adoptopenjdk-11.0.16+8\n```\n\n## JAVA_HOME\nTo set `JAVA_HOME` in your shell's initialization add the following:\n\n`. ~/.asdf/plugins/java/set-java-home.bash`\n\nFor zsh shell, instead use:\n\n`. ~/.asdf/plugins/java/set-java-home.zsh`\n\nFor fish shell, instead use:\n\n`. ~/.asdf/plugins/java/set-java-home.fish`\n\nFor nushell shell, instead use:\n\n`source ~/.asdf/plugins/java/set-java-home.nu`\n\nFor xonsh shell, instead use:\n\n`source ~/.asdf/plugins/java/set-java-home.xsh`\n\n## macOS\n\n### `JAVA_HOME` integration\n\nSome applications in macOS use `/usr/libexec/java_home` to set java home.\n\nSetting `java_macos_integration_enable` to yes on `.asdfrc` file enables this integration.\n\n```\njava_macos_integration_enable=yes\n```\n\n_Note: Not all distributions of Java JDK packages offer this integration (e.g. liberica). This option only works for packages that **do offer** that integration._\n\n### Apple Silicon integration\n\nIf you have an Apple Silicon mac, then you can choose to run either an `arm64` JVM natively, or an `x86_64` JVM under Rosetta translation. If you run the command `arch`, it will print either `arm64` (which means you are running natively) or `x86_64` (which means you are running under Rosetta translation).\n\nWhen you run `asdf list all java`, it lists only the VMs which are available for the architecture you are currently running under. To switch your terminal from native ARM to Rosetta use `arch -x86_64 /bin/zsh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalcyon%2Fasdf-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalcyon%2Fasdf-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalcyon%2Fasdf-java/lists"}