请问Intellij IDEA里面怎么用jetty呢?

moonlight21cn2001 2004-12-28 05:10:50
请问高手:Intellij IDEA里面怎么用jetty?

另外,Intellij IDEA里面怎么把jsp文件编译成java文件?

谢谢!
...全文
698 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
bbscbb 2005-01-15
  • 打赏
  • 举报
回复
jetty自己带的class :main class: org.mortbay.jetty.Server可以 启动jetty。当作普通应用程序运行

btw:什么年头了还搞jsp。。
guojiafuzhuxi 2005-01-14
  • 打赏
  • 举报
回复
哥们,快结贴
moonlight21cn2001 2005-01-12
  • 打赏
  • 举报
回复
to:FGhost33(^用实力证明自己的存在!^)

你讲的我看不明白,能否说详细点呢?
eiffelqiu 2005-01-10
  • 打赏
  • 举报
回复
打开 Run 菜单的 edit configuration

Application 标签中新增加一个配置,起名 jetty

name: jetty (自己随便取)
main class: org.mortbay.jetty.Server

vm parameters:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -classpath .\tools\jetty\lib\jetty-4.2.19.jar;.\tools\jetty\lib\servlet-2.3.jar;.\tools\jetty\lib\jasper-runtime.jar;.\tools\jetty\lib\jasper-compiler.jar;.\tools\lib\ant.jar;.\lib\endorsed\xercesImpl-2.6.2.jar;.\lib\endorsed\xml-apis.jar;.\lib\endorsed\xalan-2.6.0.jar -Dwebapp=.\build\webapp -Dhome=. -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=6666 -Djetty.admin.port=6667


program parameters:
.\tools\jetty\conf\main.xml

working directory:选择自己的项目目录

以上假设项目目录中有对应的 build/webapps tools/jetty/


这样就可以了
FGhost33 2005-01-07
  • 打赏
  • 举报
回复
try { com.incors.plaf.alloy.AlloyTheme theme = new com.incors.plaf.alloy.themes.bedouin.BedouinTheme();
// The lines below can be used for setting the other themes.
// com.incors.plaf.alloy.AlloyTheme theme = new .incors.plaf.alloy.themes.glass.GlassTheme();
// com.incors.plaf.alloy.AlloyTheme theme = new com.incors.plaf.alloy.themes.acid.AcidTheme(); javax.swing.LookAndFeel alloyLnF = new com.incors.plaf.alloy.AlloyLookAndFeel(theme); javax.swing.UIManager.setLookAndFeel(alloyLnF);} catch (javax.swing.UnsupportedLookAndFeelException ex) {
// You may handle the exception here}

在它的DOC里有说。。效果很不错。 只可惜只能用30天

50,523

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧