【发布时间】:2016-07-12 09:19:29
【问题描述】:
我对 WLST 很陌生。我正在从这里尝试这个例子 -https://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/using_WLST.html#wp1075595
这需要我导入以下类 -
import weblogic.management.scripting.utils.WLSTInterpreter;
import org.python.util.InteractiveInterpreter;
谁能告诉我需要将哪个 jar 添加到构建路径中才能导入这些类。我添加了 weblogic-classes.jar 并且没有看到任何编译时错误。但它在运行时失败并出现以下异常 -
线程“主”java.lang.NoClassDefFoundError 中的异常: weblogic/management/scripting/utils/WLSTMsgTextFormatter 在 weblogic.management.scripting.utils.WLSTUtilHelper.(WLSTUtilHelper.java:33) 在 weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:80)
不胜感激。
【问题讨论】: