tldr/pages/common/cs-java.md

33 lines
891 B
Markdown
Raw Normal View History

coursier: add new documentation pages (#9728) * coursier: add new documentation pages * fixing ci errors * fixing ci errors * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix other typo * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix error Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-01-09 16:38:15 +00:00
# cs java
> The `java` and `java-home` commands fetch and install JVMs. The `java` command runs them too.
coursier: add new documentation pages (#9728) * coursier: add new documentation pages * fixing ci errors * fixing ci errors * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix other typo * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix error Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-01-09 16:38:15 +00:00
> More information: <https://get-coursier.io/docs/cli-java>.
- Display Java version by using coursier:
coursier: add new documentation pages (#9728) * coursier: add new documentation pages * fixing ci errors * fixing ci errors * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix other typo * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix error Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-01-09 16:38:15 +00:00
`cs java -version`
- Call a specific Java version with custom properties using coursier:
coursier: add new documentation pages (#9728) * coursier: add new documentation pages * fixing ci errors * fixing ci errors * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix other typo * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix error Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-01-09 16:38:15 +00:00
`cs java --jvm {{jvm_name}}:{{jvm_version}} -Xmx32m -X{{another_jvm_opt}} -jar {{path/to/jar_name.jar}}`
- List all the available JVM in the coursier default index:
`cs java --available`
- List all the installed JVM in the system with his own location:
`cs java --installed`
- Set a specific JVM as one-off default for the shell instance:
coursier: add new documentation pages (#9728) * coursier: add new documentation pages * fixing ci errors * fixing ci errors * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-fetch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix other typo * Update pages/common/cs-complete-dep.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-launch.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-install.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-java.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * Update pages/common/cs-resolve.md Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com> * fix error Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-01-09 16:38:15 +00:00
`cs java --jvm {{jvm_name}}:{{jvm_version}} --env`
- Revert the changes for the default JVM settings:
`eval "$(cs java --disable)"`
- Set a specific JVM as default for the whole system:
`cs java --jvm {{jvm_name}}:{{jvm_version}} --setup`