title: Java Error :" org.apache.camel.FailedToCreateRouteException: Failed to create route route1"
body: <p>I was looking for a script that will enable me to encrypt and decrypt a file using <em>PGP</em>. I stumble across this tutorial:</p>
  
  <p><a href="https://dzone.com/articles/pgp-encryption-and-decryption-with-apache-camel" rel="nofollow noreferrer">https://dzone.com/articles/pgp-encryption-and-decryption-with-apache-camel</a></p>
  
  <p>but whenever I run the code I get an <code>error</code> :</p>
  
  <blockquote>
    <p>Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Marshal[org.apache.camel.model.dataformat.PGPDataFormat@10e92f8f] &lt;&lt;&lt; in route: Route(route1)[[From[file:C:\Users\Regie\keys\IN?noop... because of Data format 'pgp' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath</p>
  </blockquote>
  
  <p>I'm not sure what jar file I missed. I just can't get solution on how to make the script run, the author does not reply on my question.</p>
  
  <p>PGP Questions : I'm required to follow the following requirements :</p>
  
  <ul>
  <li>Alogorithm : DSA and Elgamal
  -DSA keypair must have 1024 bits
  -ELG-E Keys 2048 bits</li>
  </ul>
  
  <p>I would really appreciate if you can give me additional information on the Algorithm and i'm keen to understand if it is already implemented in a <em>PGP</em> encryption of the script on the link above.</p>
  
  <p>By the way <strong>I'm new to Java.</strong></p>