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

getSplashScreen returns null in java version 9, and in version 8 returns SplashScreen object

XMLWordPrintable

    • x86
    • windows_10

      FULL PRODUCT VERSION :
      java version "9.0.4"
      Java(TM) SE Runtime Environment (build 9.0.4+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.16299.309]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      HP Pavilion 17-x015ds
      CPU N3710 2x1.6GHz
      RAM 8GB

      A DESCRIPTION OF THE PROBLEM :
      I have simply java source code 'SplashDemo.java' and animation 'splash.gif' from website:
      https://docs.oracle.com/javase/tutorial/uiswing/misc/splashscreen.html.
      To simplify the analysis, I removed the line 'package misc;'
      Using JDK 9 (9.0.4), I compiled this code using the 'javac SplashDemo.java' command and started the received class with the command:
      'java -splash: splash.gif SplashDemo'.
      Unfortunately, I received a 'SplashScreen.getSplashScreen () returned null' message.
      I did the same (compilation and launch) using JDK 8 (1.8.0_40) and the program works as it should, i.e. the animation appears and after a while the program window appears.
      I would like to use the latest version of Java 9, but it looks like the SplashScreen class has a problem.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The process described in the description.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The process described in the description.
      ACTUAL -
      The process described in the description.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      The process described in the description.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      The process described in the description.
      ---------- END SOURCE ----------

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: