Ant Script importPackage does not work after upgrading to Ant 1.9.2

just updated to eclipse luna which contains ant 1.9.2 and my goals <script>stopped working in this code:

<script language="javascript"><![CDATA[
    importPackage(java.net);
    importPackage(java.io);
    ...

error message:

 javax.script.ScriptException: ReferenceError: "importPackage" is not defined in <eval> at line number 2
+4
source share
1 answer

What version of Java are you using? Rhino has been superseded in Java 8.

The following error may occur: JDK-8025132 .

+7
source

Source: https://habr.com/ru/post/1532642/


All Articles