JDeveloper 12c |集成WebLogicServer |构建默认域时出错

JDeveloper 12c | IntegratedWebLogicServer | Error while building the default domain

我正在尝试使用 JDeveloper 版本 12.2.1.4.0 运行 IntegratedWebLogicServer,我收到以下消息:

ERROR: An error occurred while building the default domain.

并且日志显示:

BuildDefaultDomain1.py      2020-02-10 11:53:05

cmd.exe /c ""C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py""
Cannot run program "cmd.exe" (in directory "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
java.io.IOException: Cannot run program "cmd.exe" (in directory "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at oracle.jdevimpl.adrs.weblogic.wlst.ScriptRunnerImpl.runScript(ScriptRunnerImpl.java:106)
    at oracle.jdevimpl.adrs.weblogic.builder.DomainScriptRunnerImpl.runScript(DomainScriptRunnerImpl.java:146)
    at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.createDomain(DefaultDomainBuilder.java:606)
    at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.build(DefaultDomainBuilder.java:274)
    at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.run(DefaultDomainBuilder.java:225)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused by: java.lang.IllegalArgumentException: Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
    at java.lang.ProcessImpl.needsEscaping(ProcessImpl.java:279)
    at java.lang.ProcessImpl.createCommandLine(ProcessImpl.java:202)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:436)
    at java.lang.ProcessImpl.start(ProcessImpl.java:140)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 9 more

我该怎么办?

我遇到了和你一样的问题。我正在安装 Oralce SOA Quick Start 12c 版本 12.1 版本 JDK:javac 1.8.0_251 解决这个问题。您在环境中设置参数: -Djdk.lang.Process.allowAmbiguousCommands=真 设置 JAVA_TOOL_OPTIONS=-Djdk.lang.Process.allowAmbiguousCommands=true

祝你好运:ManhKM

按照以下步骤在 12.2.1.4 中修复此问题

  1. 转到 Oracle_Home\jdeveloper\ide\bin 文件夹。
  2. 编辑 ide.conf 文件。
  3. # Other OSGi configuration options for locating bundles and boot delegation 部分(或任何其他部分)添加以下行
AddVMOption  -Djdk.lang.Process.allowAmbiguousCommands=true
  1. 重新启动 JDeveloper。