Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
4.4.1
-
None
-
None
-
Unknown
Description
camel run is working as expected but camel debug is failing to run the process with an exception.
I tried with simple route (timer->log) both as yaml and java code in a windows 11 machine.
java.io.IOException: Cannot run program "camel": CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at org.apache.camel.dsl.jbang.core.commands.Debug.runDebug(Debug.java:259)
at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:788)
at org.apache.camel.dsl.jbang.core.commands.Run.runDebug(Run.java:338)
at org.apache.camel.dsl.jbang.core.commands.Debug.doCall(Debug.java:135)
at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:159)
at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:58)
at main.CamelJBang.main(CamelJBang.java:36)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:494)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 18 more
Attachments
Issue Links
- is duplicated by
-
CAMEL-20512 camel-jbang - camel debug may not work on windows
- Resolved