开发者

Running a web server in eclipse

开发者 https://www.devze.com 2022-12-30 03:47 出处:网络
I know it might sound weird, but I wrote a web server without knowing how to deploy it and run it, so how do I do it in eclipse? (and please specify the eclipse versi开发者_JAVA百科on)

I know it might sound weird, but I wrote a web server without knowing how to deploy it and run it, so how do I do it in eclipse? (and please specify the eclipse versi开发者_JAVA百科on) thanks


The webserver is implemented in java? Then to run it just launch it as any other java program (right click on main class, 'Run As'->'Java Application').

You can deploy it as runnable jar. Right click on the project, 'Export As...'. Choose 'Java'->'Runnable JAR file'. Follow the wizard instructions. If you have exported properly everyone can launch your webserver by an double click on the jar (as long as java is installed).

My Eclipse-Version is 3.5, but that should not matter. This functionality is implemented since ... don't know. Long ;).


You need to write an Eclipse plugin as well. Some of them are open source, you may want to take a look.

0

精彩评论

暂无评论...
验证码 换一张
取 消