简体   繁体   English

在Ubuntu服务器上运行Java应用程序

[英]Running Java application on Ubuntu server

How can I successfully deploy a Java application (with Wicket FW and embedded Jetty) that I am currently developing on Eclipse-Windows to an Ubuntu 12.04 server and run it there? 如何将当前正在Eclipse-Windows上开发的Java应用程序(带有Wicket FW和嵌入式Jetty)成功部署到Ubuntu 12.04服务器并在其中运行? I couldn't export a .war file for running it under Jetty since the project is not seen as a web application (it says "Module name is invalid" when I try). 我无法导出.war文件以在Jetty下运行该文件,因为该项目没有被视为Web应用程序(尝试时显示“模块名称无效”)。

If I manage to do so, I also want to access and manipulate source code on that server with Eclipse. 如果可以的话,我也想使用Eclipse访问和操作该服务器上的源代码。 Is that possible? 那可能吗?

If you're using embedded Jetty, then you can't export a WAR -- the whole point is that Jetty will be launched within your app, so you should export a JAR. 如果您使用的是嵌入式Jetty,则无法导出WAR,其关键在于,Jetty将在您的应用程序中启动,因此您应该导出JAR。

As far as editing code on the server, that doesn't sound like it would be possible, since you'll be running the compiled JAR. 至于在服务器上编辑代码,这听起来不可能,因为您将运行已编译的JAR。

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

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