简体   繁体   English

Jetty8 FileNotFoundException:没有XML配置

[英]Jetty8 FileNotFoundException: No XML configuration

When I want to start my Jetty8 Server on Windows XP I get an Error: 当我想在Windows XP上启动Jetty8服务器时,出现错误消息:

java.io.FileNotFoundException: No XML configuration files specified in start.con fig or command line. java.io.FileNotFoundException:在start.con图或命令行中未指定XML配置文件。 at org.eclipse.jetty.start.Main.start(Main.java:502) at org.eclipse.jetty.start.Main.main(Main.java:96) 在org.eclipse.jetty.start.Main.start(Main.java:502)在org.eclipse.jetty.start.Main.main(Main.java:96)

Usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # for more information 用法:java -jar start.jar [选项] [属性] [配置] java -jar start.jar --help#了解更多信息

I start my Jetty Server like this: java -jar path/to/jetty/start.jar 我像这样启动我的Jetty服务器:java -jar path / to / jetty / start.jar

I read that I have to specify my Jetty Home somewhere, is this the problem? 我读到我必须在某个地方指定我的码头之家,这是问题吗?

I found it out by myself, you have to start the jetty server with 我自己发现的,您必须使用以下命令启动码头服务器

shell> start java -jar start.jar

to load all environment variables correctly. 正确加载所有环境变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM