There are two errors in your command.

If you are in the target folder and your class is in package camelinaction then your command should look like:

java -cp dependency/*;chapter1-file-copy-1.0.jar 
camelinaction.FileCopierWithCamel


Christian



Am 09.10.2011 17:37, schrieb newbiee:
Thank you for the reply.

I tried it but I'm getting " java.lang.NoClassDefFoundError:
FileCopierWithCamel"

I have tried HelloWorld example and it runs successfully (just to make sure
all environment varialbes are set properly).

I have both "dependency" folder and "chapter1-file-copy-1.0.jar" in the
"target" folder. I changed the directory to the "target" folder and applied
the following command at the command prompt:

java -cp target/dependency/*;target/chapter1-file-copy-1.0.jar
FileCopierWithCamel

Note: I have windows XP machine and "FileCopierWithCamel.class" is in
"chapter1-file-copy-1.0.jar" under a subsolder "camelinaction"

Please let me know how can I fix the issue.

--
View this message in context: 
http://camel.465427.n5.nabble.com/running-a-CAMEL-exmple-tp4881222p4885518.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to