1. NBAndroid
  2. Untitled project
  3. nbandroid
  4. Issues
Issue #75 new

Netbeans and NBAndroid Build Error

Anonymous created an issue

I set up NBAndroid to work Netbeans with Android apps.So I create a test application.My problem is when I try to build the application there is the error bellow.The code of the application is that netbeans create.How can I solve this problem?

Creating AndroidApplication1-debug-unaligned.apk and signing it with a debug key... E:\Oopss\Tools\AndroidSDK\tools\ant\build.xml:958: The following error occurred while executing this line: E:\Oopss\Tools\AndroidSDK\tools\ant\build.xml:969: The following error occurred while executing this line: E:\Oopss\Tools\AndroidSDK\tools\ant\build.xml:312: java.lang.NoClassDefFoundError: Could not initialize class sun.security.x509.X500Name at com.android.sdklib.internal.build.SignedJarBuilder.writeSignatureBlock(SignedJarBuilder.java:384) at com.android.sdklib.internal.build.SignedJarBuilder.close(SignedJarBuilder.java:273) at com.android.sdklib.build.ApkBuilder.sealApk(ApkBuilder.java:795) at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:371) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

Comments (3)

  1. Sviatopolk

    It is related to you either wanting to use it with Netbeans 8.2 or previous versions with Java 8. If you must, in the meantime, you can use it with NB 8.1 and JDK 7.

  2. Markus Kilås

    Doesn't it look like the AndroidSDK tools SignedJarBuilder is trying to use a non-standard class "sun.security.x509.X500Name"? What I don't understand though is why it works to build (i.e. "ant debug") from command line.

  3. Log in to comment