If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
dbigham
Posts: 495
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA
Accepted Solution

AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space
at java.io.WinNTFileSystem.list(Native Method)
at java.io.File.list(Unknown Source)
at javax.crypto.JarVerifier.getSystemEntropy(JarVerifier.java:788)
at javax.crypto.JarVerifier.testSignatures(JarVerifier.java:706)
at javax.crypto.JarVerifier.access$400(JarVerifier.java:34)
at javax.crypto.JarVerifier$1.run(JarVerifier.java:183)
at javax.crypto.JarVerifier$1.run(JarVerifier.java:149)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.JarVerifier.<clinit>(JarVerifier.java:148)
at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:316)
at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:261)
at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
at javax.crypto.JceSecurity$1.run(JceSecurity.java:78)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:76)
at javax.crypto.Cipher.getInstance(Cipher.java:498)
at com.zerog.ia.licensing.EditionHelper.decryptFromStore(Unknown Source)
at com.zerog.ia.licensing.EditionHelper.determineEdition(Unknown Source)
at com.zerog.ia.installer.Installer.be(Unknown Source)
at com.zerog.ia.installer.Installer.checkAuthorization(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.bv(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.a1(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.az(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)

 

Running:

 

- Windows 7

- 16 GB RAM

- echo %JAVA_HOME%

   E:\Program Files\Java\jdk1.6.0_35

Please use plain text.
Developer
dbigham
Posts: 495
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

[ Edited ]

I found this page:

 

http://stackoverflow.com/questions/880855/increase-the-java-heap-size-permanently

 

And did the following from the Windows command line:

 

set _JAVA_OPTIONS=-Xmx4g

 

I then inspected the file the installer left on my Windows desktop, which was:

 

BlackBerry_10_SDK_for_Adobe_AIR_3.0.0_Install_11_30_2012_09_06_36.log

 

It gives the path of the installer temp directory, which for me was:

 

E:\Users\Daniel\AppData\Local\Temp\I1354238452\

 

So I then:

 

cd E:\Users\Daniel\AppData\Local\Temp\I1354238452\Windows

BlackBerry-Air-SDK-Installer-3.0.0.201211051306.exe

 

... and the installer ran ok.

Please use plain text.
Developer
dbigham
Posts: 495
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

On the installation directory screen, I specify:

 

E:\Program Files (x86)\Research In Motion

 

... as the install path, and I get the error:

 

Error!

 

You do not have write permissions to the chosen installation destination.

Please choose a different location for the installation.

 

I needed to explore to the "Research in Motion" directory, right click Properties, Security, and give my user permissions to that directory.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

Are you running as admin?
Please use plain text.
Developer
dbigham
Posts: 495
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: AIR 3.0 Beta 4 Installer Fails: java.lang.OutOfMemoryError: Java heap space

I would try that.
Please use plain text.