Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant Script importPackage does not work after upgrading to ant 1.9.2

just upgraded to eclipse luna which contains ant 1.9.2 and my <script> targets 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
like image 305
clamp Avatar asked Mar 20 '23 04:03

clamp


1 Answers

What version of Java are you running? Rhino has been replaced in Java 8.

The following bug might be the problem: JDK-8025132.

like image 67
Mark O'Connor Avatar answered Apr 07 '23 15:04

Mark O'Connor