Comments (14)
What version of JDK are you using. I was having essentially the same problem.
It turns out for me that Java could not find the package org.objectweb.asm when
trying to import org.objectweb.asm.ClassVisitor and org.objectweb.asm.Opcodes.
The solution that worked for me was installing default-jdk (which in turn,
installed openjdk-6-jdk for amd64). Previously I just had sun-java6-jdk
installed.
I'm running Ubuntu 10.04.
Hope this helps.
Original comment by [email protected]
on 9 Feb 2011 at 3:07
from dex2jar.
[deleted comment]
from dex2jar.
increasing JVM memory solved the problem.
Thank You
Original comment by [email protected]
on 9 Feb 2011 at 10:55
from dex2jar.
[deleted comment]
from dex2jar.
Get this exception when i tried to increase the heap memory
C:\Users\Administrator\Desktop\project\androidtutorial\dex2jar-0.0.7.8-SNAPSHOT>
java -Xms512m -Xmx1024m -cp "%CLASSPATH%" pxb.android.dex2jar.v3.Main
%*
version:0.0.7.8-SNAPSHOT
4 [main] INFO pxb.android.dex2jar.v3.Main - dex2jar %* -> %*.dex2jar.jar
22 [main] WARN pxb.android.dex2jar.v3.Main - Exception while process file %*
java.io.FileNotFoundException: File '%*' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:196)
at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1359)
at pxb.android.dex2jar.v3.Main.doFile(Main.java:111)
at pxb.android.dex2jar.v3.Main.main(Main.java:64)
Done.
Original comment by [email protected]
on 9 Mar 2011 at 7:20
from dex2jar.
[deleted comment]
from dex2jar.
when I try to open the dex2jar.bat in notepad looks like this
@echo off
set CLASSPATH=
FOR %%i IN ("%~dp0lib\*.jar") DO CALL "%~dp0setclasspath.bat" %%i
java -cp "%CLASSPATH%" pxb.android.dex2jar.v3.Main %*
where I have to modify in this file.
And, when I try to run in second one... get the error look like this
C:\Users\Administrator\Desktop\project\androidtutorial\dex2jar-0.0.7.8-SNAPSHOT>
java -Xms512m -Xmx1024m -cp "%CLASSPATH%" pxb.android.dex2jar.v3.Main
path/to/dexfile.dex
Exception in thread "main" java.lang.NoClassDefFoundError:
pxb/android/dex2jar/v3/Main
Caused by: java.lang.ClassNotFoundException: pxb.android.dex2jar.v3.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: pxb.android.dex2jar.v3.Main. Program will exit.
Original comment by [email protected]
on 10 Mar 2011 at 6:27
from dex2jar.
[deleted comment]
from dex2jar.
my problem was solved(increase heap memory)
thank u
Original comment by [email protected]
on 11 Mar 2011 at 6:00
from dex2jar.
hi, i uses the dex2jar-0.0.7.9-SNAPSHOT. and tried the above methods, it still
show:
java.lang.NoClassDefFoundError: pxb/android/dex2jar/v3/Main
Caused by: java.lang.ClassNotFoundException: pxb.android.dex2jar.v3.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
please help me!thanks!
Original comment by [email protected]
on 15 Apr 2011 at 8:01
from dex2jar.
[deleted comment]
from dex2jar.
Hi pxb1..
Im not getting your point....
How to fix the prob..."
java.lang.NoClassDefFoundError: pxb/android/dex2jar/v3/Main"
How to set a path without space?..
cud u plz explain it ?...
Thanks in advance..
Munna
Original comment by [email protected]
on 8 Sep 2011 at 10:18
from dex2jar.
[deleted comment]
from dex2jar.
Thanks for your reply..
Yes, I have chosen a (1) startdex2jar using dex2jar.sh..
Original comment by [email protected]
on 9 Sep 2011 at 9:04
from dex2jar.
Related Issues (20)
- 反编译出现错误 !
- Annotation with type, type lost to a string HOT 4
- Some errors HOT 6
- NullPointerException, convert dex to jar failed
- 0.0.9.16 Snapshot? HOT 2
- opcode format for 67 not found HOT 2
- Error while converting jar to dex for an attached apk HOT 1
- DexException: while accept method
- Maven repo is down HOT 2
- I can't convert a file.
- Typo in "d2j-decrpyt-string.*" file names
- com.googlecode.dex2jar.v3.V3AccessFlagsAdapter is missing?
- RuntimeException caused by @Nullable parameter annotation. HOT 3
- have the gts.org protocols for tracking downloaded on my galaxy 5s, coming through port 80 HOT 1
- can't dex my classes.dex file HOT 2
- Convert classes.dex failed HOT 2
- Fail generatin jar
- error while retrieving jar from apk
- current Hearthstone classes.dex
- Warning: Default charset cp1256 not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dex2jar.