title: Vertx.io start JS Verticle from Java server
body: <p>Working with vertx.io 3.0.0 and Java 1.8.0_60</p>
  <p>I'm trying to start a javascript verticle from JAVA. I found the following documentation <a href="http://vertx.io/docs/vertx-core/java/#_deploying_verticles_programmatically" rel="nofollow noreferrer">here</a> that shows how to do it. But it actually goes not work in my current context.</p>
  <pre><code>//main class
  vertx.deployVerticle(&quot;com.mycompany.services.DiscountServices&quot;);
  vertx.deployVerticle(&quot;com.mycompanyservices.SupplierServices&quot;);
  vertx.deployVerticle(&quot;com.mycompany.services.ReportTypeServices&quot;);
  vertx.deployVerticle(&quot;RELATIVE_PATH_TO_FILE/verticle.js&quot;);
  
  //verticle.js
  // from the example: http://vertx.io/docs/vertx-core/js/#_writing_verticles
  declare var vertx;    
  var eb = new vertx.EventBus()
  eb.consumer(&quot;cbweb.validation&quot;, (message:any) =&gt; {
      console.log(message);
  });
  console.log(&quot;Validation.js ready&quot;)
  </code></pre>
  <p>In this context the java vertical (first three) are started correctly, when the JS verticle is call I have the following error <code>java.lang.ClassNotFoundException</code></p>
  <ul>
  <li>The path to the file is correct.</li>
  <li>Tried prefixing the path with <code>js:</code> to call the correct loader without any chances.</li>
  </ul>
  <p>Any ideas on how to do that?</p>