Hello everybody,
I want to use the method deployVerticle of the class Vertx.
Thus, I saw the example there:
https://github.com/vert-x3/vertx-examples/tree/master/core-examples/src/main/java/io/vertx/example/core/verticle/deployBut even with this example, when I use
vertx run DeployVerticle, I always receive the following error message:
java.lang.ClassNotFoundException: io.vertx.example.core.verticle.deploy.OtherVerticle
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:42)
at io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$163(DeploymentManager.java:142)
at io.vertx.core.impl.DeploymentManager$$Lambda$5/817348612.handle(Unknown Source)
at io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:135)
at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100)
at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:131)
at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:103)
at io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:91)
at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:534)
at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:506)
at DeployExample.start(DeployExample.java:30)
at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:111)
at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$169(DeploymentManager.java:407)
at io.vertx.core.impl.DeploymentManager$$Lambda$6/308433917.handle(Unknown Source)
at io.vertx.core.impl.ContextImpl.lambda$wrapTask$15(ContextImpl.java:314)
at io.vertx.core.impl.ContextImpl$$Lambda$7/1383519982.run(Unknown Source)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
at java.lang.Thread.run(Thread.java:745)
I didn't change anything in the two files DeployVerticle.java and OtherVerticle.java except the package line.
Can you see the problem?
Thank you for your help.