Questions tagged [jd-gui]

JD-GUI is a standalone graphical utility that displays decompiled Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields. Use this tag when this utility is relevant to the problem you are facing

JD-GUI is a standalone graphical utility that displays source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields. It has an plugin, JD-Eclipse.

It decompiles and analyses Java code from Java 1.5 on

Main page: http://java-decompiler.github.io/

25 questions
7
votes
2 answers

How to decode those JD-GUI error decompiled Bytecode

I want to decompile one apk file to see some part of its source code, but when I get to the part I am intrested in, JD-GUI gives following decompiled code /* Error */ public void loginV2(Context paramContext, String paramString1, int paramInt,…
J1B
  • 178
  • 1
  • 12
6
votes
1 answer

Recompile the java files which is decompiled by JD-GUI from a jar

I have a MyFile.jar file. I use JD-GUI to decompile it and used its "Save All Sources" options to save the files to a .zip file. Now extracted the .zip file and edited a .java file. the folder structure after extracting .zip file is like this …
Pawan
  • 1,614
  • 3
  • 18
  • 32
6
votes
1 answer

Why does JD-GUI prefix every line with a comment and line number?

I've encountered this problem several times. Whenever I decompile something and save all the sources using JD-GUI, it prefixes each line with a block comment and inserts line numbers for code in the body of methods. Here is an example from a jar I…
Rabbyte
  • 343
  • 1
  • 3
  • 7
5
votes
1 answer

Why does AspectJ generate an empty Annotation check?

I'm using AspectJ 1.8.8 compile-time weaving and I have a block like this @SomeAnnotation(value="someValue") public List doSomething(String someArg) { ... } where @SomeAnnotation is implemented with an "Around" advice. Looking at the bytecode…
Lycus
  • 410
  • 1
  • 6
  • 15
4
votes
1 answer

jd gui doesnt open on win10

i am trying to open jd gui. i am using .jar version for windows. when i double click the jar a coffe icon appears at screen, but nothing else happens. i tried reinstalling java before, but same result. btw, i can run my other executable jar files…
user9996483
4
votes
3 answers

.class file contains no variable names although setting to create those is activated

I try to find the reason for a strange effect with .class files. It seems like for interfaces the names of variables passed into a function are not listed, but in implementation classes they are. I stumbled across this effect while de-compiling some…
Marged
  • 10,577
  • 10
  • 57
  • 99
1
vote
2 answers

Using Java Decompiler (JD-GUI) on a .class file gives me multiple errors on src file, but it runs fine within a .jar? How does it work?

I'm new to Java and I'm trying to understand something. I managed to get a .jar file for a local device to communicate with my laptop. It works fine, but I would like to do an upgrade and scoop around the codes and change some details. I used a Java…
user5793598
1
vote
0 answers

dex2jar error: handleHotSwapPatch + FragmentManagerImpl

I tried to access codes of my deleted app by apk got from emulator. I accessed classes.dex but there is a problem making it jar by dex2jar. This is really important for me, how to fix that? The error file below: Summary version: reader-1.15,…
1
vote
1 answer

Why .Jar decompiling result is different in decompilers?

I decompiled .jar file with two decompilers, JD-GUI and Luyten, But the result is different. For example, result from Luyten have namespaces more specific. Also the source code is different in some lines. Why two decompilers decompile the same .jar…
rick
  • 1,009
  • 2
  • 10
  • 28
1
vote
3 answers

Error in JD-GUI regarding variable names

When looking at a jar file with JD-GUI I keep getting some sort of display error. It seems to replace variable names/identifiers with the symbol ��� (which in JD-GUI looks like a red snowman, picture attached). Any idea of how to fix this? I tried…
user1691834
1
vote
2 answers

Source code has comments after decompile whith JD-GUI

I have converted class files into source code by JD GUI Tool. I open the jar file using JD-GUI version 0.3.5, then open File folder and click "Save All Sources". There are comments in source code, e.g.: /* */ /* */ @ManagedBean /* 60 */…
Carol
  • 43
  • 1
  • 3
0
votes
1 answer

Unusual method appeared when decompiling JAR file into java project

When attempting to decompile a JAR file into a Java project using the Java Decompiler JD-GUI, I encountered an issue with the decompiled methods. Here is an example: public Node getNode() { Node res = null; try { Exception exception2,…
0
votes
2 answers

How re recreate project linkages from decompiled JAR using JD-GUI?

I have a legacy .JAR file. I am able to de-compile it with JD-GUI, but this gives me a set of class files. I am trying to follow code through but there is limited linkage between the various classes. I can follow the code manually, but is there a…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
0
votes
0 answers

Duplicate a javaws application to edit

I use an javaws app that comes with a jnlp file. I want to launch it locally and be able to modify the source code on my computer to fit my exact needs. I use Eclipse as IDE. I've opened the jnlp file and downloaded all the jar files, then I have…
Wargal
  • 103
  • 1
  • 9
0
votes
1 answer

Issue java.util.zip.ZipError: zip END header not found when open JAR with JD-GUI

I have a problem when, I try to open a Jar File with JD-GUI Decompiler, the error is the following. This error don't let me decompile the jar.
martosfre
  • 764
  • 6
  • 14
1
2