Skip to content

jd-wrapper/jd-cli

Repository files navigation

JD-CLI

JD-CLI, a standalone command line utility that displays Java sources from CLASS files.

Description

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

How to build JD-CLI ?

> git clone https://github.com/jd-wrapper/jd-cli.git
> cd jd-cli
> ./gradlew build

generate :

  • "build/libs/jd-cli-x.y.z.jar"
  • "build/libs/jd-cli-x.y.z-min.jar"
  • "build/distributions/jd-cli-windows-x.y.z.zip"
  • "build/distributions/jd-cli-osx-x.y.z.tar"
  • "build/distributions/jd-cli-x.y.z.deb"
  • "build/distributions/jd-cli-x.y.z.rpm"

How to launch JD-CLI ?

  • Double-click on "jd-cli-x.y.z.jar"
  • Double-click on "jd-cli.exe" application from Windows
  • Double-click on "JD-CLI" application from Mac OSX
  • Execute "java -jar jd-cli-x.y.z.jar" or "java -classpath jd-cli-x.y.z.jar org.jd.cli.App"

How to use JD-CLI ?

> jd-cli.exe -h
example:
jd-cli(.exe) Example.class
jd-cli(.exe) -b example.jar org.aaa.Example.class
jd-cli(.exe) -b org\aaa Example.class

usage:
 classes...      : Specify the class files...
 -b (--base) VAL : Specify the reference directory or Jar file.
 -h (--help)     : Show helps. (default: false)
 -l (--loc)      : Show full classpath. (default: false)
 -m (--meta)     : Show metadatas.(e.g. Filename, Java versions..) (default:false)
 -n (--line)     : Show Line Number. (default: false)
 -r (--real)     : Realignment Line Number. (default: false)
 -u (--unicode)  : Escapes Unicode Charset. (default: false)

How to extend JD-CLI ?

> ./gradlew idea

generate Idea Intellij project

> ./gradlew eclipse

generate Eclipse project

> java -classpath jd-cli-x.y.z.jar;myextension1.jar;myextension2.jar org.jd.cli.App

launch JD-CLI with your extensions

How to uninstall JD-CLI ?

  • Java: Delete "jd-cli-x.y.z.jar" and "jd-cli.cfg".
  • Mac OSX: Drag and drop "JD-CLI" application into the trash.
  • Windows: Delete "jd-cli.exe" and "jd-cli.cfg".

License

Released under the GNU GPL v3.

About

JD-CLI, a standalone command line Java sources from CLASS files

Resources

License

Stars

Watchers

Forks

Packages

No packages published