当前位置:网站首页>Decompile jar files (idea environment)
Decompile jar files (idea environment)
2022-07-26 19:52:00 【xsqsharp】
explain
Want to be right about some jar Decompile files , Because now IDEA More people use it , The more convenient way is , have access to IDEA Decompile the plug-ins in .
IDEA plug-in unit
have access to IDEA Medium "Java Bytecode Decompiler", This plug-in is generally built-in , You can use it directly . Find the location of the plug-in .
Java Bytecode Decompiler Location :D:\DevTools\JetBrains\IntelliJ IDEA 2021.1\plugins\java-decompiler\lib\java-decompiler.jar
To decompile jar Bag location :F:\javadecom\helloworld.jar

Open console , Enter the to decompile jar In the directory of the package , Decompile command :
java -cp "D:/DevTools/JetBrains/IntelliJ IDEA 2021.1/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true F:/javadecom/helloworld.jar data
explain
org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler: Is the startup class of the plug-in .
data: Is to decompile jar A folder under the package path , It needs to be created in advance , The decompiled results will be placed in this folder .
Carry out orders , An error appears , As shown in the figure below :

Error details :
F:\javadecom>java -cp "D:/DevTools/JetBrains/IntelliJ IDEA 2021.1/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true F:/javadecom/helloworld.jar data
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
intend JDK11 Compiled code , Can't use JDK8 Decompile .
You need to download one JDK11, After the download , You can specify the use of JDK11 decompile .
- JDK11 Location :D:\DevTools\Java\jdk-11.0.12\bin\java.exe
Specify the use of JDK11 Decompile command :
D:/DevTools/Java/jdk-11.0.12/bin/java.exe -cp "D:/DevTools/JetBrains/IntelliJ IDEA 2021.1/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true F:/javadecom/helloworld.jar data

After decompilation , Will be in data Generate... In directory jar Decompiled file .

Extract the file , Is decompiled code .
边栏推荐
- NLP learning path
- 6种方法帮你搞定SimpleDateFormat类不是线程安全的问题
- Intensive reading of the paper: yolov2 - yolo9000: better, faster, stronger
- Will 3R balanced financial products have risks? Is it risky?
- How to uninstall win11 edge? The method tutorial of completely uninstalling win11 edge browser
- Leetcode daily practice - 26. Delete duplicates in an ordered array
- Household deposits increased by 10.33 trillion yuan in the first half of the year, with an average of 57.1 billion deposits pouring into banks every day
- MySQL subquery usage
- Deeply analyze the execution process of worker threads in the thread pool through the source code
- Bug 反馈:同步失败
猜你喜欢

Image preview embedding location of blog maintenance record

Solidity中call函数详解

DDL,DQL,DML语句

MySQL 子查询使用方式
![[MySQL must know and know] log details](/img/68/0c32ae42bfa013d10310ab67b1de58.png)
[MySQL must know and know] log details

ipad下载的文件在哪里可以找到

Talk about how to use redis to realize distributed locks?

LeetCode每日一练 —— 26. 删除有序数组中的重复项

Principle analysis and source code interpretation of service discovery

2022/07/26 learning notes (day16) linked list and stack
随机推荐
带你熟悉云网络的“电话簿”:DNS
学习Muduo中ChatRoom实现的各种细节和思考
[MySQL must know and know] log details
Solidity中call函数详解
Redis介绍
Leetcode daily practice - 189. Rotation array
EN 1504-6 products for protection and repair of concrete structures - reinforcement anchorage - CE certification
【PHP】将 SESSION 数据保存到 Redis
Redis introduction
十大排序详解
什么是联邦图机器学习?弗吉尼亚大学最新《联邦图机器学习:概念、技术和应用》综述
[PHP] common header definitions
Ijcai2022 meeting! Brescia et al. Tutorial of evidential reasoning and learning, describing its latest progress, with 96 slides attached
金仓数据库 KingbaseES SQL 语言参考手册 (12. SQL语句:ALTER LANGUAGE 到 ALTER SUBSCRIPTION)
Implementing DDD based on ABP -- domain logic and application logic
中天钢铁在 GPS、 AIS 调度中使用 TDengine
Test interview question set UI automated test
Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end
LeetCode每日一练 —— 189. 轮转数组
JS中的 作用域
