0

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

错误:构建默认域时出错。

日志显示:

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$1.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

我该怎么办?

4

2 回答 2

1

我和你有同样的问题。我正在安装 Oralce SOA Quick Start 12c version 12.1 Version JDK: javac 1.8.0_251 来解决这个问题。您在环境中设置参数: -Djdk.lang.Process.allowAmbiguousCommands=true set JAVA_TOOL_OPTIONS=-Djdk.lang.Process.allowAmbiguousCommands=true

祝你好运:ManhKM

于 2020-05-30T04:16:59.277 回答
1

请按照以下步骤在 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。
于 2020-10-20T15:57:33.173 回答