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

FX Samples broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 10
    • 9
    • core-libs
    • None

      jjs cd jdk9/nashorn/samples

      jjs -fx barchart_weather.js
      Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast?q=chennai,india&units=metric&mode=json

      jjs -fx browser_dom.js
      Doesn't print in console
      Works in JDK8

      jjs -fx colorfulcircles.fx
      Caused by: fx:bootstrap.js:47 TypeError: Cannot load script from colorfulcircles.fx
      Doesn't work in JDK8 either

      jjs -fx datepick.js
      Caused by: datepick.js:48 ReferenceError: "Scene" is not defined
      Works in JDK8

      jjs -fx filebrowser.js -- .
      Caused by: java.lang.BootstrapMethodError: call site initialization exception
      Works in JDK8

      jjs -fx jsonviewer.js
      Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast/daily?q=Chennai&mode=json&units=metric&cnt=7`
      Doesn't work in JDK8

      All other work


            sdama Srinivas Dama (Inactive)
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: