Hi You need to add camel-zipfile to the classpath
On Tue, Jun 11, 2013 at 6:24 AM, milan777 <milan79pa...@gmail.com> wrote: > Hello everyone, i am getting error like this in below code please help me to > resolve this error thanks in advance.... > > > > > package Zip; > > import org.apache.camel.CamelContext; > import org.apache.camel.builder.RouteBuilder; > import org.apache.camel.impl.DefaultCamelContext; > > public class ZipCreation { > > public static void main(String args[]) throws Exception { > CamelContext context = new DefaultCamelContext(); > > context.addRoutes(new RouteBuilder() { > public void configure() { > > from("file:input/directory?antInclude=*/comma.txt").marshal().zipFile().to("file:output/directory"); > > > } > }); > > } > } > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > SLF4J: Defaulting to no-operation (NOP) logger implementation > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further > details. > Exception in thread "main" java.lang.Error: Unresolved compilation problem: > The method zipFile() is undefined for the type > DataFormatClause<ProcessorDefinition<RouteDefinition>> > > at Zip.ZipCreation$1.configure(ZipCreation.java:14) > at > org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322) > at > org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:276) > at > org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:262) > at > org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:628) > at Zip.ZipCreation.main(ZipCreation.java:12) > > and here i have implemented all dependencies with mendatory classpaths still > i am getting error like zipfile cannot be resolve or field > > please help me out.....thnks again > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/file-zipping-tp5734077.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen