let me extend to be clear:
regardless what I am doing scomp claims that javac is not available in
the current directory. But why does scomp try to find javac there? It
shall locate it along the %PATH%.
I also tried a javac.bat in the current directory executing javac from
its bin\javac location. Does not help.
How to run scomp?
On 10/27/20 5:36 PM, Rolf Schumacher wrote:
tried to use scomp.
xmlbeans-4.0.0\bin is on the path as well as jdk-11.0.8\bin.
when starting scomp from the commandline it cannot find javac:
C:\Users\rschumacher\eclipse-jee-workspace\manager>scomp -out
target\ManagerConfiguration.jar src\main\xsd\ManagerConfiguration.xsd
Time to build schema type system: 0.412 seconds
Time to generate code: 0.351 seconds
java.io.IOException: Cannot run program
"C:\Users\rschumacher\eclipse-jee-workspace\manager\javac":
CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the
file specified
java.io.IOException: Cannot run program
"C:\Users\rschumacher\eclipse-jee-workspace\manager\javac":
CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at
org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:195)
at
org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:93)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1000)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:333)
Caused by: java.io.IOException: CreateProcess error=2, The system
cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 7 more
BUILD FAILED
What may have cause this?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]