Make a copy of the d2j-dex2jar.bat
file, and edit it. Find the line that says this:
java -Xms512m -Xmx1024m -cp "%CLASSPATH%"
"com.googlecode.dex2jar.tools.Dex2jarCmd" %*
Change the -Xmx
parameter to give yourself a larger maxheap size. Save it, and see if your modified BAT file works better. (There isn't an elegant way to override the JVM settings in this script.)
Apparently ... if you are using dex2jar-2.0
, the file that you need to edit is d2j_invoke.bat
.