Jdeveloper - ImportError: no module named re

Jdeveloper - ImportError: no module named re

当我尝试在 jDeveloper 中启动集成的 Weblogic Server 时出现以下错误:

Process started
wlst > 
wlst > Initializing WebLogic Scripting Tool (WLST) ...
wlst > 
wlst > Error execing the Python script "/C:/Oracle/Middleware/Oracle_Home/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/lib/PdkHandler.py" caused an error "Traceback (innermost last):
wlst >   File "<string>", line 1, in ?
wlst >   File "C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\internal\features\oracle.fmwshare.pyjar.jar\wlstScriptDir/lib/PdkHandler.py", line 15, in ?
wlst >   File "C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\internal\features\oracle.fmwshare.pyjar.jar\wlstScriptDir/lib/ProducerHelperHandler.py", line 21, in ?
wlst > ImportError: no module named re
wlst > "
wlst > Error execing the Python script "/C:/Oracle/Middleware/Oracle_Home/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/lib/PortletClientHandler.py" caused an error "Traceback (innermost last):
wlst >   File "<string>", line 1, in ?
wlst >   File "C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\internal\features\oracle.fmwshare.pyjar.jar\wlstScriptDir/lib/PortletClientHandler.py", line 14, in ?
wlst > ImportError: no module named re
wlst > "
wlst > Error execing the Python script "/C:/Oracle/Middleware/Oracle_Home/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/lib/ProducerHelperHandler.py" caused an error "Traceback (innermost last):
wlst >   File "<string>", line 1, in ?
wlst >   File "C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\internal\features\oracle.fmwshare.pyjar.jar\wlstScriptDir/lib/ProducerHelperHandler.py", line 21, in ?
wlst > ImportError: no module named re
wlst > "

我是 运行 jDeveloper on Windows 10,我遇到了一个问题,我一直收到 adrs domain password environment variable not set 错误。

我关注了 ,但现在却收到了这个错误。

我该怎么做才能解决这个问题?

谢谢

好的,我找到问题了。显然,问题在于编辑后重新打包 JAR。打包某些导致此错误的文件似乎有问题。为了避免这种情况,您需要编辑现有的 JAR 而不是解压并重新打包。之后一切正常。

我使用 7zip 来完成此操作,但我相信其他人也能正常工作。