LoginSignup
3
2

More than 5 years have passed since last update.

IntelliJ IDEAでclassファイルをデコンパイルしたソースコードを表示する

Last updated at Posted at 2014-09-16

IntelliJ IDEAでclassファイルをデコンパイルしたソースコードを表示する方法について紹介します。

File > Settings > Pligins を選択し、「Browse Respositories」ボタンをクリック。「decompiler」で検索し、表示されるリストにある「Java Decompiler IntelliJ PliginCode tools」をダブルクリックし、インストールします。

jd.png

ダウンロード、インストールしたらIntellJ IDEAを再起動します。

jdsettings.png

File > Settings > Java Decompiler を選択し、Decompilerの設定画面を表示します。「Realign line number」と「Show line number」にチェックしておくと、クラスファイルを生成したJavaのソースコードと対応した行数で整形してくれるようになります。

ソースコードが無いjarファイル内のクラスを参照しても、以下のように逆コンパイルしたソースコードが表示されます。
decosrc.png

3
2
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
3
2