3

I am experiencing the following runtime failure when trying to develop Android applications in IBM RSA 8.0.2.

NoClassDefFoundError: sun/security/x509/X500Name

This occurs when I run my Android app.

I believe this NCDF error is due to RSA8 using the IBM jre and not the Sun version.

However when I specify the Sun jre location in the eclipse.ini file (using the -vm option) RSA does not start.

When I do not specify any jre in the eclipse.ini file RSA fails to start.

When i leave the IBM jre location in the jre, RSA starts fine, however i am unable to force RSA to use the Sun jdk as a runtime environment using the windows preferences options

Does anyone have any other ideas/knowledge of how to...

  1. Use RSA8 to develop Android applications?
  2. specify a jre in the eclipse.ini file other than the IBM-supplied one?
Gilles 'SO- stop being evil'
  • 104,111
  • 38
  • 209
  • 254
Hector
  • 4,016
  • 21
  • 112
  • 211

3 Answers3

1

I resolved my problem with android development and IBM RSA V8.0.2

I managed to start RSA with the sun supplied jdk as follows:-

Edit the eclipse.ini file so that the only entry was the -vm <jdk location>/javaw.exe

I was able to launch the android hello world example OK

Hope this helps anyone else attempting to use a non "pure" eclipse IDE such as RSA

Hussain
  • 5,552
  • 4
  • 40
  • 50
Hector
  • 4,016
  • 21
  • 112
  • 211
  • Yes this does help me! Thank-you! I wonder, though. I have the absolute path to the JDK location specified, I wonder how I can specify something more relative... – Sam Aug 02 '12 at 09:42
  • sure: D:/Program Files/Java/jdk1.6.0_31/jre/bin/javaw.exe 'eclipse' is an install of rational ream concert under: D:\Program Files\IBM\TeamConcert – Sam Aug 02 '12 at 11:47
1

I had the same error and resolved it by changing the JRE location in the Preferences (Windows > Preferences > Java > Installed JREs). I pointed it to Sun Java6 JDK (not sure if it makes a difference for jre). Then restart the workbench. Restarting seems to be the key.

Diana
  • 11
  • 1
0

My ini file looked like this:

enter image description here

I changed it to this:

enter image description here

Now it works

Pavenhimself
  • 527
  • 1
  • 5
  • 18