我想问你如何在Java中查看jar文件的代码? [英] i want to ask you how to see the code of jar file in java?

查看:172
本文介绍了我想问你如何在Java中查看jar文件的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下如何在Java中查看jar文件的代码?

i want to ask how to see the code of jar file in java??

推荐答案

如果未附加源代码,则不允许查看代码.这就是原因.
You are not allowed to see the code if the source is not attached. That is why.


您可以使用 jar [ ^ ]命令从jar中提取类,然后使用
You could use the jar[^] command to extract the classes from the jar, and then use javap[^] to disassemble individual class files.


仅用于阅读,您可以更改或添加扩展名.zip.是的,jar文件是ZIP.解压缩并阅读.

—SA
Just for reading, you can change or add extension .zip to it. Yes, jar file is ZIP. Unzip it and read.

—SA


这篇关于我想问你如何在Java中查看jar文件的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆