No JDK in vertx/vertx3-exec docker image?

55 views
Skip to first unread message

Lin Gao

unread,
May 22, 2019, 4:10:17 AM5/22/19
to vert.x
Hi,

   I just tried to run a plan Server.java file using the latest vertx/vertx3-exec docker image, and it failed with exception:

java.lang.RuntimeException: Compilation failed
at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:110)
at io.vertx.core.impl.JavaVerticleFactory.createVerticle(JavaVerticleFactory.java:33)
at io.vertx.core.impl.DeploymentManager.createVerticles(DeploymentManager.java:242)
at io.vertx.core.impl.DeploymentManager.lambda$doDeployVerticle$2(DeploymentManager.java:215)
at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:79)
at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:182)
at io.vertx.core.impl.DeploymentManager.doDeployVerticle(DeploymentManager.java:155)
at io.vertx.core.impl.DeploymentManager.deployVerticle(DeploymentManager.java:144)
at io.vertx.core.impl.VertxImpl.deployVerticle(VertxImpl.java:677)
at io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer.deploy(VertxIsolatedDeployer.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.vertx.core.impl.launcher.commands.ClasspathHandler.deploy(ClasspathHandler.java:159)
at io.vertx.core.impl.launcher.commands.RunCommand.deploy(RunCommand.java:403)
at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:270)
at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:226)
at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:361)
at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:324)
at io.vertx.core.Launcher.main(Launcher.java:45)
Caused by: java.lang.RuntimeException: Unable to detect java compiler, make sure you're using a JDK not a JRE!
at io.vertx.core.impl.verticle.CompilingClassLoader.<init>(CompilingClassLoader.java:82)
... 20 more

Apparently, there is no JDK installed, should we install one in the official docker image? or it is intended to not have one? Thanks 

FYI:
 [🎩 lgao@lgao vertx-intro]$ docker run -it --rm vertx/vertx3-exec version
3.7.0





Best Regards

Lin Gao

Thomas SEGISMONT

unread,
May 22, 2019, 5:01:37 AM5/22/19
to ve...@googlegroups.com
Hi,

Indeed the Vert.x images only have a JRE.

I will check with the maintainer but I assume the rationale was to keep image size to a minimum (given very few Vert.x Java users use the command line compared to JS/Ruby users)

Regards,
Thomas

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/4cddb623-1761-45f9-9891-8c31dc8ecd1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lin Gao

unread,
May 22, 2019, 5:59:55 AM5/22/19
to vert.x
Thanks Thomas :)

I am gonna give a presentation to the team about Vert.x, and want to give them a plain Java file to run using the Vert.x docker image to experience easily.

But I think indeed the use cases should be quite small, and I think I can survive without JDK installed(build a local docker image with JDK installed is good to me too.).

BTW, where the Dockerfile is maintained? Looks like I did not find it :)

Best Regards
To unsubscribe from this group and stop receiving emails from it, send an email to ve...@googlegroups.com.

Lin Gao

unread,
May 22, 2019, 6:22:10 AM5/22/19
to vert.x

Thomas SEGISMONT

unread,
May 22, 2019, 6:27:27 AM5/22/19
to ve...@googlegroups.com
Exactly!

To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages