title: What's the correct class to run Apache Camel 3.14.0 from command line?
body: <p>I set the following pom.xml to use Camel 3.14.0:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
  
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.apps&lt;/groupId&gt;
     &lt;artifactId&gt;MyApp&lt;/artifactId&gt;
     &lt;version&gt;1.0.0&lt;/version&gt;
     &lt;name&gt;MyApp Camel component&lt;/name&gt;
  
     &lt;dependencyManagement&gt;
       &lt;dependencies&gt;
         &lt;dependency&gt;
           &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
           &lt;artifactId&gt;camel-bom&lt;/artifactId&gt;
           &lt;version&gt;3.14.0&lt;/version&gt;
           &lt;type&gt;pom&lt;/type&gt;
           &lt;scope&gt;import&lt;/scope&gt;
         &lt;/dependency&gt;
       &lt;/dependencies&gt;
     &lt;/dependencyManagement&gt;
     
     
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
           &lt;artifactId&gt;camel-core&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
           &lt;artifactId&gt;camel-csv&lt;/artifactId&gt;
        &lt;/dependency&gt;
     
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
           &lt;artifactId&gt;camel-sql&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
           &lt;artifactId&gt;camel-spring&lt;/artifactId&gt;
        &lt;/dependency&gt;
        
     
        &lt;!-- DB dependencies --&gt;  
        &lt;dependency&gt;
            &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
            &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
            &lt;version&gt;2.6.1&lt;/version&gt;
            &lt;scope&gt;system&lt;/scope&gt;
            &lt;systemPath&gt;D:\Drivers\hsqldb-2.6.1-jdk8.jar&lt;/systemPath&gt; 
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  <p>Then I have this command line in Windows to collect dependencies:</p>
  <pre><code>C:\Users\Public\apache-maven-3.2.5\bin\mvn -f pom.xml dependency:copy-dependencies
  </code></pre>
  <p>When I run it I get all jars in the destination folder (../build/target/dependency).</p>
  <p>And then I get other <em>run.bat</em> file with following:</p>
  <pre><code>set CLASSPATH=../build/target/dependency/*;../config/    
  
  java -classpath &quot;%CLASSPATH%&quot; org.apache.camel.spring.Main
  </code></pre>
  <p>But when I run it, I get an error saying it can't find Main class. That class is the one used in previous use cases (Camel 2.10.6) and it worked fine. Would you please advise on what's the right class to reference here?</p>
  <p><strong>EDIT 1:</strong> I found in documentation that Main is now in org.apache.camel.main, so I configured that in run.bat and it's seems to be running. But now it shows the following and the odd thing about this is that it ceased picking the file from the path configured in context.xml. Any ideas?</p>
  <pre><code>SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;.
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  </code></pre>
  <p><strong>EDIT 2:</strong> I looked on the error and found I needed to include dependency</p>
  <pre><code>  &lt;dependency&gt;
        &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
        &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
    &lt;/dependency&gt;
  </code></pre>
  <p>It still seems to work (message regarding slf4 is gone) but still won't pick file from path.</p>
  <p>Now, reason I decided to move to last LTS version was because I needed to use a component property only available in newer version of Camel than the one I've been using. So I decided to give a shot to latest version, but now I'm stuck with error saying it can't find the class.</p>
  <p>I've somewhat used Camel in the past but only based on examples provided by someone else, never from scratch so I'm no expert at all and unfortunately I need to solve this in a hurry. I guess the easiest would be to use a java bean but I'm no java developer so I thought it might be ok using Spring XML DSL. I'm using java 1.8.0_92.</p>
  <p>Camel documentation doesn't seem to provide so many details as per spring xml, so any help will be greatly appreciated.</p>