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

Linux and MacOS support #144

Open
directentis1 opened this issue Nov 10, 2024 · 6 comments
Open

Linux and MacOS support #144

directentis1 opened this issue Nov 10, 2024 · 6 comments

Comments

@directentis1
Copy link

directentis1 commented Nov 10, 2024

Bonjour, I came across your project when looking for an alternative to jd-gui and I was really impressed by how it supports multiple projects in one, how convenient it will be for Android Disassembling projects.

But currently there are only binaries for Windows.
Will there be releases for Linux or MacOS in the near future? 👀

Because it is a Java project, porting to other platforms is not too complicated.
If you need any help, let me know.

Update:
You just need to create a new launch, eg. jd-gui-duo.sh and all will be okay.

jre/bin/java -ea --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens java.desktop/javax.swing.text=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.lang.ref=ALL-UNNAMED -cp "lib/*" org.jd.gui.App

@nbauma109
Copy link
Owner

nbauma109 commented Nov 10, 2024

It's not as simple as that. There is an embedded jre which is generated with jlink from a windows distribution of JDK by project jre-builder. I didn't want to invest time in doing this for mac and Linux because I only use windows as desktop environment and would not be able test. PRs are welcome if everything is tested.

@nbauma109 nbauma109 reopened this Nov 10, 2024
@directentis1
Copy link
Author

directentis1 commented Nov 10, 2024

Ah, I see your jre version is 17.0.3.
I've used jre from BellSoft Liberica, it's worked without any issues.

We also could customize your jre-builder to generate reduce jre version for Linux/Mac.
But for a general user, which simple want to download and run, embedded jre is not necessary.

You can simply provide the program and instruct users to download the corresponding jre version, in addition to the full version with jre.

image

@nbauma109
Copy link
Owner

For full-feature usage, it requires a jre with the compiler module or a jdk.
Embedded jre makes it work out of the box, using any other jre requires a tweak such as changing script or copying.

@directentis1
Copy link
Author

For full-feature usage, it requires a jre with the compiler module or a jdk. Embedded jre makes it work out of the box, using any other jre requires a tweak such as changing script or copying.

Hmm, so we can modify jre-builder a bit to release Linux/Mac versions.
And similar for jd-gui-duo to get corresponding jre to each platform.

@jurgenbrouwer
Copy link

jurgenbrouwer commented Dec 10, 2024

Would be a great addition, I'm looking for a replacement for the good old JD-GUI at the moment.

Edit: Mac user

@farfromrefug
Copy link

Same thing here would love to see a cross platform solution

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

4 participants