Can't import sun.org.mozilla.javascript.internal in NetBeans

前端 未结 4 1406
后悔当初
后悔当初 2021-01-06 06:37

In my java program I make heavy use of Suns implmentation of the Rhino script engine. Very recently however, my JDK does not seem to automatically import the rt.jar file any

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-06 07:31

    I had the same error. You must manually add rt.jar from JRE dir to project libraries. Only this solution seems work. You can also see a tutorial on this approach here by Rob Di Marco

提交回复
热议问题