Как декомпилировать jar
Перейти к содержимому

Как декомпилировать jar

Как декомпилировать jar

Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.

What can I do to prevent this in the future?

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.

Another way to prevent getting this page in the future is to use Privacy Pass. You may need to download version 2.0 now from the Chrome Web Store.

Cloudflare Ray ID: 71ac81c05fce696f • Your IP : 82.102.23.104 • Performance & security by Cloudflare

Как декомпилировать весь файл Jar? [закрыто]

Хотите улучшить этот вопрос? Обновите вопрос, чтобы он теме переполнения стека.

Закрыто 4 года назад .

Кто-нибудь знает о бесплатном декомпиляторе, который может декомпилировать весь файл Jar вместо одного класса? У меня проблема с подклассами, такими как name $ 1.class name $ 2.class name.class

2009: JavaDecompiler может хорошо работать с jar: начиная с 0.2.5, отображаются все файлы в JAR-файлах.

http://java.decompiler.free.fr/sites/default/screenshots/screenshot1.png

JD-Eclipse, похоже, не изменился с конца 2009 года (см. Изменения ).
Поэтому его интеграция с последним Eclipse (3.8, 4.2+) может быть проблематичной.

JD-Core активно поддерживается.

Оба являются результатом фантастической работы (пользователя SO) Эммануэля Дюпюи .

2018: Более современный варианта, упомянутый в комментариях по Дэвиду Кеннеди Араужо :

Fernflower — первый реально работающий аналитический декомпилятор для Java и, вероятно, для языка программирования высокого уровня в целом.

Смотрите также Как декомпилировать в java-файлы intellij idea для команды, работающей с недавним IntelliJ IDEA.

Прежде всего, стоит помнить, что все архивные файлы Java ( .jar / .war / etc . ) — это в основном просто модные .zip файлы с несколькими добавленными манифестами и метаданными.

Во-вторых, для решения этой проблемы я лично использую несколько инструментов, которые решают эту проблему на всех уровнях:

    +Jadclipse при работе в IDE для декомпиляции .class файлов , мой любимый инструмент сжатия, изначально поддерживает Java-архивы (опять же, см. Первый абзац). , мой любимый инструмент сравнения, при правильной настройке, может делать сравнения на лету между любыми архивными файлами, включая jar s. Стоит попробовать.

Преимущество всего вышеперечисленного заключается в том, что мне не нужно держать какой-либо другой внешний инструмент, который загромождает мою рабочую среду. Все, что мне когда-либо понадобится из одного из этих файлов, может быть обработано внутри моей IDE или встроено в другие файлы.

.JAR and .Class to Java decompiler

Until recently, you needed to use a Java decompiler and all of them were either unstable, obsolete, unfinished, or in the best case all of the above. And, if not, then they were commercial. The obsoleteness was typically proved by the fact that they can only decompile JDK 1.3 bytecode.
The only so-so working solution was to take the .class file and pre-process it, so it becomes JDK 1.3 compatible, and then run Jad over it (one of those older, but better decompilers).

But recently, a new wave of decompilers has forayed onto the market: Procyon, CFR, JD, Fernflower, Krakatau, Candle.
Here’s a list of decompilers presented on this site:

This free and open-source decompiler is available here: http://www.benf.org/other/cfr/
Author: Lee Benfield

  • Java 7: String switches
  • Java 8: lambdas
  • Java 9: modules
  • Java 11: dynamic constants
  • Java 12: Kotlin style «switch expressions»
  • Java 14: ‘instance of’ pattern match and ‘Record types’

free for non-commercial use only, http://jd.benow.ca/
Author: Emmanuel Dupuy

Updated in 2015. Has its own visual interface and plugins to Eclipse and IntelliJ . Written in C++, so very fast. Supports Java 5.

Procyon
  • Enum declarations
  • Enum and String switch statements
  • Local classes (both anonymous and named)
  • Annotations
  • Java 8 Lambdas and method references (i.e., the :: operator).
Fernflower

Updated in 2015. Very promising analytical Java decompiler, now becomes an integral part of IntelliJ 14. (https://github.com/JetBrains/intellij-community/tree/master/plugins/java-decompiler)
Supports Java up to version 6 (Annotations, generics, enums)

given here only for historical reason. Free, no source-code available, jad download mirror
Author: Pavel Kouznetsov

Probably, this is the most popular Java decompiler, but primarily of this age only. Written in C++, so very fast.
Outdated, unsupported and does not decompile correctly Java 5 and later.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *