3.1 java compiling

Thanks Unity Team for impressive Android abilities of 3.1.0! :sunglasses:

I have small problem with dex-file generation:

Error building Player: Win32Exception: ApplicationName=‘java’, CommandLine=‘-Xmx1024M -Djava.ext.dirs=“C:/Tools/Android_SDK/platforms/android-8/tools/lib/” -jar “C:/Tools/Android_SDK/platforms/android-8/tools/lib/dx.jar” --dex --verbose --output=bin/classes.dex bin/classes.jar plugins’, CurrentDirectory=‘Temp/StagingArea’

This problem was not present at 3.0.0.
Also if I pass into dir ‘Temp/StagingArea’ and launch java with this command string manually - it works fine.

Is any solution exists?


P.s. I read in whats-new: “The editor will try to locate the JDK based on information stored in the registry on Windows.”
May be, Unity 3.1 can not find my JDK now?

I have try compile my unity/android project at another computer (with Vista) and this stage has been passed successfully.

perhaps the xmx1024M is just a bit too much RAM for your machine there?

May be… Wrong machine is under XP with 1Gb RAM. Right machine is under Vista with 2Gb RAM.

In case somebody has the same problem, use 32bit version of android sdk. Retreived from : Feddas - Shawn Featherly: June 2013

And dont forget to install Java 32 bit version also.