Search code examples
javaandroideclipsesunibm-mobilefirst

Launch of Android app fails with sun/security/x509/X500Name


I can't launch my Android app (which was working fine before I upgraded the version of Worklight that I'm using) and it keeps giving the error of sun/security/x509/X500Name. Now, I've setup Android many times with Sun's Java, so I'm absolutely baffled. Here's how I've got it setup:

Project >> Properties >> Java Build Path >> Libraries >> Add Library - This is where I have put my Sun Java.

Window >> Preferences >> Java >> Installed JREs - My Sun Java is ticked and is the default one.

I've even edited my eclipse.ini but with or without the following line it makes no difference: -vm C:\Program Files (x86)\Java\jdk1.6.0_27\bin\javaw.exe

I seem to remember something about I couldn't have spaces, is that true? If so, how do I replace the spaces? Even still, it should work within my Eclipse application without the need for defined my VM in this manner (or so I believe).

I'm not aware of anywhere else I need to define the Java I'm using. If I've missed anything please let me know.

Thanks!


Solution

  • The problem was due to Eclipse launching as eclipse.exe in the task manager. It needs to be javaw.exe in the task manager else Android launch will FAIL.