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 (4)

  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. AdiM

    I have the same problem and also the problem of missing tools/ant.build.xml in current AndroidADK.

    So, NBAndroid is not usable for me at the moment.

  4. Log in to comment