Newbie Error when trying to use dex2jar

1,540 views
Skip to first unread message

Malek Musleh

unread,
May 21, 2015, 10:26:28 PM5/21/15
to dex...@googlegroups.com
Hi,

I am getting an error trying to run dex2jar:

I have downloaded it, and unzipped it to my home folder, and run it as follows:

/home/musleh/dex2jar-2.0/d2j-dex2jar.sh classes.dex

But I encounter the following error:

musleh@sherpa08:~/Research/dex2jar$
/home/musleh/dex2jar-2.0/d2j-dex2jar.sh Browser.apk
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/googlecode/dex2jar/tools/Dex2jarCmd : Unsupported major.minor
version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class:
com.googlecode.dex2jar.tools.Dex2jarCmd. Program will exit.


It looks to be a path problem, but I also see the
UnSupportedClassVersion Error. The APK I unzipped is for Android ICS/

Any help would be appreciated.
Thanks,

Malek

Bob Pan

unread,
May 21, 2015, 10:33:08 PM5/21/15
to dex...@googlegroups.com
hi Malek,

dex2jar-2.x requires Jdk7 + , please update you jdk from oracle.com

ps. openjdk also works, you can install it by yum, apt-get or pacman if on linux.

BR,
b0b



--
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