LoginSignup
6
4

More than 5 years have passed since last update.

windowsでjavaのencodingを変更

Posted at

UTF8のソースをコンパイルしたときにエンコーディングエラーが出たとき
javacコマンドに都度 -Dfile.encoding=UTF8 を渡すなどでも良いが、環境変数で設定して固定してよいなら

JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

JAVA_TOOL_OPTIONSに値をセットすることでも対応。

参考サイト

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