[ 
https://issues.apache.org/jira/browse/CAMEL-20945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863459#comment-17863459
 ] 

Claus Ibsen commented on CAMEL-20945:
-------------------------------------

You need to use --code, such as 

camel run --code=hello.java

> camel-jbang - Run java route without need for class wrapper
> -----------------------------------------------------------
>
>                 Key: CAMEL-20945
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20945
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.8.0
>
>
> Lets make it possible to run java code without having to put public class 
> XXXX.
> This allows to quickly copy paste some sample java code route you find, and 
> try and edit it also. If you want real java development with IDE support then 
> of course it must be a public class.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to