Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app won't open a .class file #44

Open
jlholt opened this issue Jun 5, 2020 · 2 comments
Open

app won't open a .class file #44

jlholt opened this issue Jun 5, 2020 · 2 comments

Comments

@jlholt
Copy link

jlholt commented Jun 5, 2020

I'm using JD-GUI for macOS version 1.6.6.

While attempting to create a reproducible test for another issue, I ran into this.

I created a simple Test.java, compiled it, and executed it successfully. However, when I tried to open it with the app, nothing appears to have happened.

Here's the source code for the Java 1.8 compiled output that I'm trying to decompile:

public class Test {
public static void main (String args[]) {
int x = Integer.parseInt(args[0]);
int y = Integer.parseInt(args[1]);
long z = l(x, y);
System.err.println(String.format("x=%d y=%d z=%d", x, y, z));
}
public static long l (int x, int y) {
long rc = ((long)y << 32L) | x;
return rc;
}
}

$ javac Test.java
$ java Test 1 2
x=1 y=2 z=8589934593

I don't anticipate this code causing a core problem but I am wondering if the app will only read jar files. If that's the case, then the open file dialog should prevent me from doing something that is not allowed.

Alternatively, if it is an app problem, it probably would be a good idea for someone to easily find out what to type from the command line to bypass the app.

@Bowser2011
Copy link

Version 1.6.6 on Windows 10 (20H2 Build 19042.630) won't open anything for me and doesn't give any clues about why not. I tried the jar version and the exe version. And I've tried all the latest versions in each 1.x series down to 1.1.0. 1.1.0 opens files, but the search feature doesn't work. I'm continuing to use version 0.3.6 unless the file I'm decompiling is too big for it.

@beeiku
Copy link

beeiku commented Aug 26, 2022

can u leave a dwpwnlaod for the 0.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants