termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.98k stars 2.98k forks source link

[Package]: JD-GUI #11625

Closed ghost closed 1 year ago

ghost commented 2 years ago

Package description

JD-GUI is a standalone graphical utility that displays Java source codes of ".class" files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.

Home page URL

https://github.com/java-decompiler/jd-gui

Source code URL

https://github.com/java-decompiler/jd-gui

Packaging policy acknowledgement

Additional information

How to build JD-GUI ?

git clone https://github.com/java-decompiler/jd-gui.git cd jd-gui ./gradlew build generate :

"build/libs/jd-gui-x.y.z.jar" "build/libs/jd-gui-x.y.z-min.jar" "build/distributions/jd-gui-windows-x.y.z.zip" "build/distributions/jd-gui-osx-x.y.z.tar" "build/distributions/jd-gui-x.y.z.deb" "build/distributions/jd-gui-x.y.z.rpm" How to launch JD-GUI ? Double-click on "jd-gui-x.y.z.jar" Double-click on "jd-gui.exe" application from Windows Double-click on "JD-GUI" application from Mac OSX Execute "java -jar jd-gui-x.y.z.jar" or "java -classpath jd-gui-x.y.z.jar org.jd.gui.App" How to use JD-GUI ? Open a file with menu "File > Open File..." Open recent files with menu "File > Recent Files" Drag and drop files from your file explorer How to extend JD-GUI ?

./gradlew idea generate Idea Intellij project

./gradlew eclipse generate Eclipse project

java -classpath jd-gui-x.y.z.jar;myextension1.jar;myextension2.jar org.jd.gui.App launch JD-GUI with your extensions

How to uninstall JD-GUI ? Java: Delete "jd-gui-x.y.z.jar" and "jd-gui.cfg". Mac OSX: Drag and drop "JD-GUI" application into the trash. Windows: Delete "jd-gui.exe" and "jd-gui.cfg".

Anonymous2716 commented 2 years ago

JD GUI works by default even if not a package. Just download the jar file. Bytecode viewer too.

ghost commented 2 years ago

JD GUI works by default even of not a package. Just download the jar file. Bytecode viewer too.

How to run JD-GUI in termux? Can you give me command

Anonymous2716 commented 2 years ago

@ArjunaKumarMohanta you need to setup a GUI environment. Probably termux-x11 or vnc . then in there in terminal you can just run java -jar jd-gui.jar there you go.

ghost commented 2 years ago

@ArjunaKumarMohanta you need to setup a GUI environment. Probably termux-x11 or vnc . then in there in terminal you can just run java -jar jd-gui.jar there you go.

Not work

Anonymous2716 commented 2 years ago

Screenshot_20220819-200436_1

@ArjunaKumarMohanta

ghost commented 2 years ago

Screenshot_20220819-200436_1

@ArjunaKumarMohanta

Yes, How to fix this?

Anonymous2716 commented 2 years ago

@ArjunaKumarMohanta setup a GUI environment https://wiki.termux.com/wiki/Graphical_Environment . Or checkout other github repos like https://github.com/adi1090x/termux-desktop set it up. And then run in there. Or post on reddit.com/r/termux to ask how to do it. Then download jdgui and run it. Download the jar file from their website.

ghost commented 2 years ago

Screenshot_20220819-200436_1

@Anonymous2716 Can you share how perform this action ? Please share screen recording video

Anonymous2716 commented 2 years ago

@ArjunaKumarMohanta

First basic preparation I assume you have done it all.

pkg update

pkg upgrade

pkg install openjdk-17 xfce4 tigervnc

Then setup vnc:

mkdir ~/.vnc

cd ~/.vnc

echo "xfce4-session &" > xstartup

chmod +x xstartup

Now download the jd-gui jar file from here:

http://java-decompiler.github.io/#jd-gui-download Or here https://github.com/java-decompiler/jd-gui/releases

Then start the vncserver :

vncserver

It will ask to set a password. Set it .

Then install a vnc viewer e.g. realvncviewer -play store , avnc - fdroid , bvnc etc.

Then login there :

Screenshot

And then start jdgui as I showed in the previewes comment : Open up the terminal then.

java -jar jd-gui.jar

Bytecode-viewer works the same way too.

Alternatively you can use jadx in termux . without setting up any of this.

ghost commented 2 years ago

@ArjunaKumarMohanta

First basic preparation I assume you have done it all.

pkg update

pkg upgrade

pkg install openjdk-17 xfce4 tigervnc

Then setup vnc:

mkdir ~/.vnc

cd ~/.vnc

echo "xfce4-session &" > xstartup

chmod +x xstartup

Now download the jd-gui jar file from here:

http://java-decompiler.github.io/#jd-gui-download Or here https://github.com/java-decompiler/jd-gui/releases

Then start the vncserver :

vncserver

It will ask to set a password. Set it .

Then install a vnc viewer e.g. realvncviewer -play store , avnc - fdroid , bvnc etc.

Then login there :

Screenshot

And then start jdgui as I showed in the previewes comment : Open up the terminal then.

java -jar jd-gui.jar

Bytecode-viewer works the same way too.

Alternatively you can use jadx in termux . without setting up any of this.

@Anonymous2716 But, in JD-GUI decompile Save all source not working

Anonymous2716 commented 2 years ago

@ArjunaKumarMohanta sometimes it has issues . but it works fine last time I tried. File > save all sources.

ghost commented 1 year ago

@Anonymous2716 how to can use jadx in termux ?

Anonymous2716 commented 1 year ago

@ArjunaKumarMohanta visit their github page. It doesn't require any modifications or any special setup. Just use as it is.