ejbc错误java.io.IOException JavaWeblogicJDKIDEAC
程序员文章站
2022-05-29 13:14:06
...
在命令行下执行ejbc时,出现以下错误提示:(在IDEA集成环境下不出现此错误)
解决方案:
给系统环境变量path增加jdk的bin目录(比如C:\bea702\jdk131_06\bin)就可以了
ejbc: [java] java.io.IOException: CreateProcess: javac -nowarn -J-mx256m -classpa th .... [java] at java.lang.Win32Process.create(Native Method); [java] at java.lang.Win32Process.<init>(Win32Process.java:67); [java] at java.lang.Runtime.execInternal(Native Method); [java] at java.lang.Runtime.exec(Runtime.java:566); [java] at java.lang.Runtime.exec(Runtime.java:491); [java] at java.lang.Runtime.exec(Runtime.java:457); [java] at weblogic.utils.Executable.exec(Executable.java:208); [java] at weblogic.utils.Executable.exec(Executable.java:133); [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp ilerInvoker.java:572); [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok er.java:373); [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:24 5); [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3 44); [java] at weblogic.ejbc20.runBody(ejbc20.java:470); [java] at weblogic.utils.compiler.Tool.run(Tool.java:126); [java] at weblogic.ejbc.main(ejbc.java:29); [java] Exec failed .. exiting [java] Java Result: 1
解决方案:
给系统环境变量path增加jdk的bin目录(比如C:\bea702\jdk131_06\bin)就可以了