6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CygwinのJavaを快適に使う方法

Posted at

まずここの説明を読む

そして、ここからjava_wrapperの最新版をダウンロードする

上記の説明通りにjava_wrapperのインストールを行う

最後に、UTF-8でターミナル(僕の場合はmingetty)を使っている場合、
javaのコマンド群がことごとく文字化けするので、

java_wrapperに以下のパッチをあてる

103a104
>         ARGS="$ARGS -J-Dfile.encoding=UTF-8"
119a121,124
>     java)
>         ARGS="$ARGS -Dfile.encoding=UTF-8"
>         general_parse_arg $*
>         ;;
120a126
>         ARGS="$ARGS -J-Dfile.encoding=UTF-8"

やっていることは、単に、file.encodingを指定するオプションをつけているだけ

ただし、javaのときだけ指定方法が違うので条件を分けている

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?