Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8111749

javafxc cannot find sun.security.jca.GetInstance (in jse rt.jar)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • win7, x86, jdk 1.6.0_21, jfx 1.3.0_b412, netbeans 6.9.1

      Attempting to work with JSSE in JavaFX on NetBeans. When trying to compile the attached file (Server.fx), Netbeans reports this error:

      Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the
      Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues)
      after checking for duplicates. Include in your report:
      - the following diagnostics
      - file {APPDATA_TEMP_DIR}\javafx_err_1777629855159446304.txt
      - and if possible, the source file which triggered this problem.
      Thank you.
      {FX_PROJ_LOC}\ssltest\Server.fx:14: cannot access sun.security.jca.GetInstance
      class file for sun.security.jca.GetInstance not found
          def keyPairGen = KeyPairGenerator.getInstance("RSA");
      1 error
      ERROR: javafxc execution failed, exit code: 1

      Two things: 1) https://openjfx-compiler.dev.java.net/Issues is no longer a valid URL. http://www.oracle.com/technetwork/java/javafx/training/index.html directed me here, so I hope this is the place. If not, please direct me with apologies. 2) I have no idea what "code name" version this affects. I picked Presidio but the nonsensical real JavaFX version is stated in Environment.

      Also attached, as per requested, is the offending JavaFX-to-Java translated file.

      It goes without saying (..) that the rt.jar (where this public class resides) is by default on my classpath.

            bcbeck Brian Beck (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: