Unable to compile

117 views
Skip to first unread message

Suzanka Bett

unread,
Mar 4, 2016, 3:39:01 AM3/4/16
to dex...@googlegroups.com
Hello,

A newbie question. I am having trouble compiling dex2jar. When running the script gradlew, the last step produces an error:

...............
:dex-tools:clean UP-TO-DATE
:dex-translator:clean UP-TO-DATE
:dex-writer:clean UP-TO-DATE
:d2j-base-cmd:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':d2j-base-cmd:compileJava'.
> Could not find tools.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 29.542 secs



I am running Ubuntu 15.10 on Virtual Box.

  $ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.10.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)


Thank you.

Bob Pan

unread,
Mar 4, 2016, 3:44:38 AM3/4/16
to dex...@googlegroups.com

Compiling dex2jar requires a JDK not a JRE, probably you are compile dex2jar with a JRE.
Please install the jdk by apt-get, and try again
sudo apt-get install openjdk-7-jdk


--
You received this message because you are subscribed to the Google Groups "dex2jar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dex2jar+u...@googlegroups.com.
To post to this group, send email to dex...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages