简体   繁体   中英

How to Read this .JAR File

I have been trying to open the source code.jar and hoping to retrieve source code files in.java format with Eclipse, having no luck at all. The below screenshot is the furthest I can get.

Sreenshot

The file is upload to the below link:

https://www.dropbox.com/sh/v3qejrpfavy509o/AADLtEN7pvWbQLnZ8aDu7rfXa?dl=0

Any help is much appreciated. Thanks in advance.

.jar is the extension for a collection of compiled java classes (these classes have the .class extension) for the JVM to use and run, reverse engineering the source code is difficult because you need to reverse the compilation.

Some tools exist. IntelliJ has an integrated tool that helps you reverse engineer a.java file or a.jar file but once again it wont always be accurate.

  1. open the jar with a reverse tool, like beycompare with reverse plugin
  2. read the.class file, and create refer.java. then copy content to.java
  3. fix the.java compile error.

A jar file is more or less a zip file with a specific structure. you can extract it by using the jar tool which is delivered by the jre/jdk or a zip program.

Using the jar command you can do:

jar -xvf <file name>

to extract the file.

If you only want to see the content you can use:

jar -tvf <file name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM