I'm sure the experienced guys will step in right away if my suggestion is
wrong...

Since you're running on Windows, try using a backslash instead of a forward
slash. I.e.:

$ merlin -execute target\hello-1.1.jar


Judging by the error, it looks like CLI is interpreting your arg as an
option, which on Windows is signalled by using a forward slash.

Just a thought. May be wrong.


Cheers




> -----Original Message-----
> From: Harvinder Singh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 17, 2004 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: Error while running the merlin command with any option
>
>
> All,
>
> I am new to Merlin and have installed Merlin 3.3 with Maven 1.0
> Now am trying to run the Hello tutorial as specified in the
> instruction but
> am getting the below error when I use the option '-execute'
> If I run the same command without the execute option, it goes thru fine.
> Infact if I use any option like -info ,etc alognwith the command "merlin
> target/hello-1.1.jar", then also I get the same error.
> It seems that there is some jar not present at the correct
> location?? Is it
> so??
>
> $ merlin -execute target/hello-1.1.jar
> Starting Merlin 3.3.0.
> ====================
>              Platform: CYGWIN_NT-5.0
>             Java Home: d:\j2sdk1.4.2_04
>           Merlin Home: d:\merlin
>       Security policy: d:\merlin/bin/security.policy
>           JVM Options:
>         Bootstrap JAR: D:\merlin\system\merlin\jars\merlin-cli-3.3.0.jar
>      Merlin Arguments:  -execute target/hello-1.1.jar
>
> ---- exception report
> ----------------------------------------------------------
> Exception: org.apache.commons.cli.UnrecognizedOptionException
> Message: Unrecognized option: -execute target/hello-1.1.jar
> ---- stack trace
> ---------------------------------------------------------------
> org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option:
> -execute target/hello-1.1.jar
> org.apache.commons.cli.Parser.processOption(Parser.java:421)
> org.apache.commons.cli.Parser.parse(Parser.java:230)
> org.apache.commons.cli.Parser.parse(Parser.java:115)
> org.apache.avalon.merlin.cli.Main.main(Main.java:208)
> ------------------------------------------------------------------
> ----------
> ----
>
> Has anyone faced the same knid of problem ? Any pointer will be greatly
> appreciated.
>
> Regards,
> Harvinder
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to