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

前端 未结 4 1403
后悔当初
后悔当初 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:25

    There are two indications that you shouldn't use this class: sun and internal - these mean that this is some internal class that shouldn't be used by third parties. Because it can change or be removed in future releases - i.e. this is not part of an API. So - download Rhino separately.

    If you are using the scripting API - use only the API classes/interfaces - i.e. javax.script

提交回复
热议问题