我在写Eclipse plug-in for Vert.x。使用命令行启动hello-vorld.js
时:
D:\Progs\vertx\vert.x-2.1M5\bin\vertx.bat run 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');
答案 0 :(得分:1)
Vert.x将D:
作为语言运行时限定符。
使用:
D:\Progs\vertx\vert.x-2.1M5\bin\vertx.bat run rhino:D:/Workspaces/runtime-EclipseApplication/Vertx2\hello-vorld.js