From a2bdcf43fca289aee4505e7eaa70843f7143b31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Sat, 16 Jan 2021 20:50:03 +0200 Subject: [PATCH 1/2] Trim whitespace --- README.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 879e5a21..2525f1d0 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,16 @@ Java Version Manager inspired by [nvm](https://github.com/creationix/nvm) (Node.js). Written in Go. The goal is to provide unified pain-free experience of **installing** (and **switching** between different versions of) JDK regardless of -the OS (macOS, Linux x86/x86_64/ARMv7+, Windows x86_64). +the OS (macOS, Linux x86/x86_64/ARMv7+, Windows x86_64). `jabba install` - [Oracle JDK](http://www.oracle.com/technetwork/java/javase/archive-139210.html) (latest-version only) -- [Oracle Server JRE](http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html) (latest-version only), -- [Adopt OpenJDK](https://adoptopenjdk.net/) (jabba >=0.8.0 is required) - - Hotspot +- [Oracle Server JRE](http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html) (latest-version only), +- [Adopt OpenJDK](https://adoptopenjdk.net/) (jabba >=0.8.0 is required) + - Hotspot - [Eclipse OpenJ9](https://www.eclipse.org/openj9/oj9_faq.html) - [Zulu OpenJDK](http://zulu.org/) (jabba >=0.3.0 is required) -- [IBM SDK, Java Technology Edition](https://developer.ibm.com/javasdk/) (jabba >=0.6.0 is required) +- [IBM SDK, Java Technology Edition](https://developer.ibm.com/javasdk/) (jabba >=0.6.0 is required) - [GraalVM CE](https://www.graalvm.org/) - [OpenJDK](http://openjdk.java.net/) - [OpenJDK Reference Implementation](http://openjdk.java.net/) @@ -47,21 +47,21 @@ Make sure to source `jabba.sh` in your environment if you skip it: [ -s "$JABBA_HOME/jabba.sh" ] && source "$JABBA_HOME/jabba.sh" ``` -> In [fish](https://fishshell.com/) command looks a little bit different - -`curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash; and . ~/.jabba/jabba.fish` +> In [fish](https://fishshell.com/) command looks a little bit different - +`curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash; and . ~/.jabba/jabba.fish` > If you don't have `curl` installed - replace `curl -sL` with `wget -qO-`. > If you are behind a proxy see - -[curl](https://curl.haxx.se/docs/manpage.html#ENVIRONMENT) / -[wget](https://www.gnu.org/software/wget/manual/wget.html#Proxies) manpage. -Usually simple `http_proxy=http://proxy-server:port https_proxy=http://proxy-server:port curl -sL ...` is enough. +[curl](https://curl.haxx.se/docs/manpage.html#ENVIRONMENT) / +[wget](https://www.gnu.org/software/wget/manual/wget.html#Proxies) manpage. +Usually simple `http_proxy=http://proxy-server:port https_proxy=http://proxy-server:port curl -sL ...` is enough. **NOTE**: The brew package is currently broken. We are working on a fix. #### Docker -While you can use the same snippet as above, chances are you don't want jabba binary & shell +While you can use the same snippet as above, chances are you don't want jabba binary & shell integration script(s) to be included in the final Docker image, all you want is a JDK. Here is the `Dockerfile` showing how this can be done: ```dockerfile @@ -108,14 +108,14 @@ jabba ls-remote "*@>=1.6.45 <1.9" --latest=minor # install Oracle JDK jabba install 1.15.0 # install Oracle Server JRE -jabba install sjre@1.8 +jabba install sjre@1.8 # install Adopt OpenJDK (Hotspot) jabba install adopt@1.8-0 # install Adopt OpenJDK (Eclipse OpenJ9) jabba install adopt-openj9@1.9-0 # install Zulu OpenJDK jabba install zulu@1.8 -jabba install zulu@~1.8.144 # same as "zulu@>=1.8.144 <1.9" +jabba install zulu@~1.8.144 # same as "zulu@>=1.8.144 <1.9" # install IBM SDK, Java Technology Edition jabba install ibm@1.8 # install GraalVM CE @@ -153,20 +153,20 @@ jabba use jabba alias default 1.8 ``` -> `.jabbarc` has to be a valid YAML file. JDK version can be specified as `jdk: 1.8` or simply as `1.8` +> `.jabbarc` has to be a valid YAML file. JDK version can be specified as `jdk: 1.8` or simply as `1.8` (same as `~1.8`, `1.8.x` `">=1.8.0 <1.9.0"` (mind the quotes)). -> jsyk: **jabba** keeps everything under `~/.jabba` (on Linux/Mac OS X) / `%USERPROFILE%/.jabba` (on Windows). If at any point of time you decide to uninstall **jabba** - just remove this directory. +> jsyk: **jabba** keeps everything under `~/.jabba` (on Linux/Mac OS X) / `%USERPROFILE%/.jabba` (on Windows). If at any point of time you decide to uninstall **jabba** - just remove this directory. -For more information see `jabba --help`. +For more information see `jabba --help`. ## Development > PREREQUISITE: [go1.8](https://github.com/moovweb/gvm) ```sh -git clone https://github.com/shyiko/jabba $GOPATH/src/github.com/shyiko/jabba -cd $GOPATH/src/github.com/shyiko/jabba +git clone https://github.com/shyiko/jabba $GOPATH/src/github.com/shyiko/jabba +cd $GOPATH/src/github.com/shyiko/jabba make fetch go run jabba.go @@ -175,20 +175,20 @@ go run jabba.go make test # or "test-coverage" if you want to get a coverage breakdown # to make a build -make build # or "build-release" (latter is cross-compiling jabba to different OSs/ARCHs) +make build # or "build-release" (latter is cross-compiling jabba to different OSs/ARCHs) ``` ## FAQ **Q**: What if I already have `java` installed? -A: It's fine. You can switch between system JDK and `jabba`-provided one whenever you feel like it (`jabba use ...` / `jabba deactivate`). +A: It's fine. You can switch between system JDK and `jabba`-provided one whenever you feel like it (`jabba use ...` / `jabba deactivate`). They are not gonna conflict with each other. **Q**: How do I switch `java` globally? -A: **jabba** doesn't have this functionality built-in because the exact way varies greatly between the operation systems and usually -involves elevated permissions. But. Here are the snippets that should work: +A: **jabba** doesn't have this functionality built-in because the exact way varies greatly between the operation systems and usually +involves elevated permissions. But. Here are the snippets that should work: * Windows @@ -229,5 +229,5 @@ By using this software you agree to - Apple's Software License Agreement in case of "Java for OS X" - [International License Agreement for Non-Warranted Programs](http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?la_formnum=&li_formnum=L-PMAA-A3Z8P2&l=en) in case of IBM SDK, Java Technology Edition. -This software is for educational purposes only. -Use it at your own risk. +This software is for educational purposes only. +Use it at your own risk. From 19c96a522cb6c550382b1822b89331d471eff9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Sat, 16 Jan 2021 20:51:02 +0200 Subject: [PATCH 2/2] Add Arch Linux instructions --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 2525f1d0..3059c038 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,15 @@ Usually simple `http_proxy=http://proxy-server:port https_proxy=http://proxy-ser **NOTE**: The brew package is currently broken. We are working on a fix. +##### Arch Linux + +Install [jabba](https://aur.archlinux.org/packages/jabba/) package from AUR. + +This will only install the jabba binary. To enable shell integration you will have to install the integration shell script for your shell: + +* [zsh plugin for jabba](https://github.com/2m/zsh-jabba) +* [fish plugin for jabba](https://github.com/2m/fish-jabba) + #### Docker While you can use the same snippet as above, chances are you don't want jabba binary & shell