[android-beginners] Re: Building HelloWorld App problem java.lang.OutOfMemoryError: Java heap

2008-09-25 Thread Gav

I could do so but it appears to be a problem with my SDK.

I tried running Keytool on its own had the same error.

C:\Users\Gavc:\Program Files\Java\jdk1.6.0_07\bin\keytool -genkey -
alias and
oiddebugkey -keyalg RSA -validity 365 -keypass android -keystore
debug.keystore
-storepass android
What is your first and last name?
  [Unknown]:  a
What is the name of your organizational unit?
  [Unknown]:  b
What is the name of your organization?
  [Unknown]:  c
What is the name of your City or Locality?
  [Unknown]:  d
What is the name of your State or Province?
  [Unknown]:  e
What is the two-letter country code for this unit?
  [Unknown]:  fs
Is CN=a, OU=b, O=c, L=d, ST=e, C=fs correct?
  [no]:  yes

Exception in thread main java.lang.OutOfMemoryError: Java heap space
at java.io.WinNTFileSystem.list(Native Method)
at java.io.File.list(File.java:973)
at sun.security.provider.SeedGenerator
$1.run(SeedGenerator.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.j
va:146)
at
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java
170)
at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
at java.math.BigInteger.randomBits(BigInteger.java:475)
at java.math.BigInteger.init(BigInteger.java:464)
at java.math.BigInteger.largePrime(BigInteger.java:596)
at java.math.BigInteger.probablePrime(BigInteger.java:538)
at
sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(RSAKeyPairGener
tor.java:105)
at java.security.KeyPairGenerator
$Delegate.generateKeyPair(KeyPairGener
tor.java:656)
at sun.security.x509.CertAndKeyGen.generate(CertAndKeyGen.java:
131)
at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1156)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:786)
at sun.security.tools.KeyTool.run(KeyTool.java:172)
at sun.security.tools.KeyTool.main(KeyTool.java:166)


I have tried re-installs of jdk's 1.5 and 1.6 with the same error. I
posted on the Sun forums but also have had no luck.




On Sep 21, 1:42 pm, hongqing huang [EMAIL PROTECTED] wrote:
 Do you mind post you Code here?Or you tried to build the SDK's example named
 helloWorld ?
 2008/9/19 Gav [EMAIL PROTECTED]



  Thanks for the reply.

  I am not sure I understand how this limit could affect the signing of
  my application.

  1. The app I am building is a new android project(through eclispe).
  And is extremely small not above a 16m limit
  2. The error occurs as I am building the project and not during the
  installation/running.

  In vain un-installed and re-installed all my the sdks, jres  and
  eclipse with no success.

  Anyone have any other idea's to what might cause this?

  On Sep 18, 4:52 am, akin [EMAIL PROTECTED] wrote:
   hi, the Android use the MAX memory  is 16m,so check your application
   and object if anything exceed this limit.Hope this may helpful.

   On 9月18日, 下午12时56分, Gav [EMAIL PROTECTED] wrote:

Hello,

I am using Vista with jdk 1.6.7 with Eclipse and ADT and am having the
following error message when I try to build Android apps.
It looks like the keytool is generating the following error.

Any Ideas?

[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: Exception
in thread main java.lang.OutOfMemoryError: Java heap space
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.io.WinNTFileSystem.list(Native Method)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.io.File.list(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
sun.security.provider.SeedGenerator$1.run(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.security.AccessController.doPrivileged(Native Method)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.security.SecureRandom.nextBytes(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.math.BigInteger.randomBits(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.math.BigInteger.init(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.math.BigInteger.largePrime(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
java.math.BigInteger.probablePrime(Unknown Source)
[2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)

[android-beginners] Re: Building HelloWorld App problem java.lang.OutOfMemoryError: Java heap

2008-09-21 Thread hongqing huang
Do you mind post you Code here?Or you tried to build the SDK's example named
helloWorld ?
2008/9/19 Gav [EMAIL PROTECTED]


 Thanks for the reply.

 I am not sure I understand how this limit could affect the signing of
 my application.

 1. The app I am building is a new android project(through eclispe).
 And is extremely small not above a 16m limit
 2. The error occurs as I am building the project and not during the
 installation/running.

 In vain un-installed and re-installed all my the sdks, jres  and
 eclipse with no success.

 Anyone have any other idea's to what might cause this?


 On Sep 18, 4:52 am, akin [EMAIL PROTECTED] wrote:
  hi, the Android use the MAX memory  is 16m,so check your application
  and object if anything exceed this limit.Hope this may helpful.
 
  On 9月18日, 下午12时56分, Gav [EMAIL PROTECTED] wrote:
 
   Hello,
 
   I am using Vista with jdk 1.6.7 with Eclipse and ADT and am having the
   following error message when I try to build Android apps.
   It looks like the keytool is generating the following error.
 
   Any Ideas?
 
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: Exception
   in thread main java.lang.OutOfMemoryError: Java heap space
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.io.WinNTFileSystem.list(Native Method)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.io.File.list(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.provider.SeedGenerator$1.run(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.security.AccessController.doPrivileged(Native Method)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.security.SecureRandom.nextBytes(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.math.BigInteger.randomBits(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.math.BigInteger.init(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.math.BigInteger.largePrime(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.math.BigInteger.probablePrime(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown
   Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.x509.CertAndKeyGen.generate(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.tools.KeyTool.doGenKeyPair(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.tools.KeyTool.doCommands(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.tools.KeyTool.run(Unknown Source)
   [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
   sun.security.tools.KeyTool.main(Unknown Source)

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Building HelloWorld App problem java.lang.OutOfMemoryError: Java heap

2008-09-18 Thread akin

hi, the Android use the MAX memory  is 16m,so check your application
and object if anything exceed this limit.Hope this may helpful.

On 9月18日, 下午12时56分, Gav [EMAIL PROTECTED] wrote:
 Hello,

 I am using Vista with jdk 1.6.7 with Eclipse and ADT and am having the
 following error message when I try to build Android apps.
 It looks like the keytool is generating the following error.

 Any Ideas?

 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: Exception
 in thread main java.lang.OutOfMemoryError: Java heap space
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.io.WinNTFileSystem.list(Native Method)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.io.File.list(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.provider.SeedGenerator$1.run(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.security.AccessController.doPrivileged(Native Method)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.security.SecureRandom.nextBytes(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.math.BigInteger.randomBits(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.math.BigInteger.init(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.math.BigInteger.largePrime(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.math.BigInteger.probablePrime(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown
 Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.x509.CertAndKeyGen.generate(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.tools.KeyTool.doGenKeyPair(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.tools.KeyTool.doCommands(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.tools.KeyTool.run(Unknown Source)
 [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation:  at
 sun.security.tools.KeyTool.main(Unknown Source)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---