LoginSignup
7
4

More than 5 years have passed since last update.

俺のPCにJDK9のインストールするのメンドイけど、とりあえずJShellを試したいんだが

Posted at

※Dockerがインストールされてる前提

How to use

というわけで、とりあえず .bashrc やら .zshrc やらにこんな感じで、alias設定

.zshrc
alias jshell='docker run -it --rm java:9-jdk jshell'

あとはウィンドウを開き直すなり、sourceコマンドで読み直すなりして

jshell

以上。

7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4