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

JCP not launching

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 9
    • 9
    • deploy
    • b149
    • Verified

      JCP is not launching on Windows and Mac. Below is the exception when you try to launch JCP with JDK9 build 148:

      Exception in Application start method
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      at java.base/sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
      Caused by: java.lang.RuntimeException: Exception in Application start method
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
      at java.base/java.lang.Thread.run(Unknown Source)
      Caused by: javafx.fxml.LoadException:
      /jdk.deploy.controlpanel/com/sun/deploy/jcp/fxml/JCP.fxml:18

      at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.load(Unknown Source)
      at jdk.deploy.controlpanel@9-internal/com.sun.deploy.jcp.Main.start(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(Unknown Source)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
      at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private javafx.scene.control.Button com.sun.deploy.jcp.controller.JCP.applyBtn accessible: module jdk.deploy.controlpanel does not "opens com.sun.deploy.jcp.controller" to module javafx.fxml
      at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Unknown Source)
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
      at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
      at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor.addAccessibleFields(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor.access$3900(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor$1.run(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor$1.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor.addAccessibleMembers(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerAccessor.getControllerFields(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.injectFields(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.access$1600(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processValue(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
      at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
      ... 14 more
      Exception running application com.sun.deploy.jcp.Main

            vrao Vivek Rao (Inactive)
            vrao Vivek Rao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: