1 Reply Latest reply: Feb 21, 2013 12:02 PM by ytw RSS

    Native Bundle throws java.security.NoSuchAlgorithmException

    ascuccimarra
      I'm trying to build a native bundle, specially for mac os x, but also in windows. And in both environments the .app, .dmg, .exe get generated correctly, but when I run them, I get many java.security.NoSuchAlgorithmException exceptions. For example:
      Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available

      Caused by: java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available

      My program uses TLS, to establish xmpp connections. And also I have a webview with HTTPS which is not loading eighter.

      Does anybody have any idea why this could be happening?
      I should note that if I run the generated jar alone, it works fine, it only happens with the .exe and .app.
      This is my build.xml fx:deploy code:

      <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
      nativeBundles="all"
      outdir="${basedir}/${dist.dir}" outfile="${application.title}">
      <fx:application name="${application.title}"
      mainClass="${javafx.main.class}"/>
      <fx:resources>
      <fx:fileset dir="${basedir}/${dist.dir}"
      includes="*.jar"/>
      <fx:fileset dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
      </fx:resources>
      <fx:info title="${application.title}"
      vendor="${application.vendor}"/>
      </fx:deploy>

      Appreciate your help.

      Edited by: ascuccimarra on Feb 20, 2013 1:36 PM