gpt4 book ai didi

java - Vert.x - java.lang.IllegalStateException : No language implementation known for prefix D

转载 作者:太空宇宙 更新时间:2023-11-04 07:03:55 25 4
gpt4 key购买 nike

我正在写Eclipse plug-in for Vert.x 。当使用如下命令行启动 hello-vorld.js 时:

D:\Progs\vertx\vert.x-2.1M5\bin\vertx.bat 运行 D:\Workspaces\runtime-EclipseApplication\Vertx2\hello-vorld.js

我两次遇到同样的错误:

Failed in deploying verticle 
java.lang.IllegalStateException: No language implementation known for prefix D
at org.vertx.java.platform.impl.DefaultPlatformManager.doDeploy(DefaultPlatformManager.java:1614)
at org.vertx.java.platform.impl.DefaultPlatformManager.doDeployVerticle(DefaultPlatformManager.java:876)
at org.vertx.java.platform.impl.DefaultPlatformManager.access$1500(DefaultPlatformManager.java:56)
at org.vertx.java.platform.impl.DefaultPlatformManager$15.run(DefaultPlatformManager.java:502)
at org.vertx.java.platform.impl.DefaultPlatformManager$14.run(DefaultPlatformManager.java:469)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Failed in deploying verticle
java.lang.IllegalStateException: No language implementation known for prefix D
at org.vertx.java.platform.impl.DefaultPlatformManager.doDeploy(DefaultPlatformManager.java:1614)
at org.vertx.java.platform.impl.DefaultPlatformManager.doDeployVerticle(DefaultPlatformManager.java:876)
at org.vertx.java.platform.impl.DefaultPlatformManager.access$1500(DefaultPlatformManager.java:56)
at org.vertx.java.platform.impl.DefaultPlatformManager$15.run(DefaultPlatformManager.java:502)
at org.vertx.java.platform.impl.DefaultPlatformManager$14.run(DefaultPlatformManager.java:469)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

hello-vorld.js 包含

var vertx = require('vertx');

vertx.createHttpServer().requestHandler(function(req) {
req.response.end("Hello World!");
}).listen(8080, 'localhost');

最佳答案

Vert.x 将 D: 作为语言运行时限定符。

用途:

D:\Progs\vertx\vert.x-2.1M5\bin\vertx.bat run rhino:D:/Workspaces/runtime-EclipseApplication/Vertx2\hello-vorld.js

关于java - Vert.x - java.lang.IllegalStateException : No language implementation known for prefix D,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21700219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com