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

ScriptEngine are not loaded in Java 7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.7.0_03-icedtea"
      OpenJDK Runtime Environment (IcedTea7 2.1) (7~u3-2.1-3)
      OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux xxx 3.2.0-2-amd64 #1 SMP Tue Mar 20 18:36:37 UTC 2012 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      It is not possible to use the Rhino javascript engine by using ScriptEngineManager, even by manually adding the jar to the list of jar used or using another jar with the Rhino engine.

      It was working with java 6 but is not in java 7 (the expected output comes from Java 6).

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Using the source code to output the engines.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Available language: ECMAScript
      ACTUAL -
      (nothing is outputted)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.script.ScriptEngineFactory;
      import javax.script.ScriptEngineManager;

      public class Test {

      public static void main(String[] args) {
      ScriptEngineManager manager = new ScriptEngineManager();
      for (ScriptEngineFactory factory : manager.getEngineFactories()) {
      System.out.println("Available language: "
      + factory.getLanguageName());
      }
      }

      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      No workaround found.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: