[英]How Can I Start Jetty and open a Browser In Platform Independent Way
I have a simple JSP web-page/site. 我有一个简单的JSP网页/站点。 I have installed Jetty on a Flash-Drive, and put the Jsp/Site into the root context.
我已经将Jetty安装在闪存驱动器上,并将Jsp / Site放入根上下文中。 I have a batch file and when I click it, it starts jetty and then launches IE and the webpage starts up.
我有一个批处理文件,当我单击它时,它会启动码头,然后启动IE,然后启动网页。 I even have a JRE installed on the flash-drive in case it's not installed locally.
如果没有在本地安装,我什至在闪存驱动器上安装了JRE。 Works great, less filling, eventually directs the user to the real website to do some real work.
效果很好,填充较少,最终将用户引导到真实的网站上进行实际的工作。
What I'd like to do it make the flash-drive app more platform independent/compatible. 我想要做的是使闪存驱动器应用程序更独立于平台/兼容于平台。 I'd like to have an icon or icons for either a mac or unix or windows users to click on to start the web-server and then launch a browser.
我想为Mac或Unix或Windows用户提供一个或多个图标,以单击以启动Web服务器,然后启动浏览器。 It would be nice to have different versions of the JVM installed so the program(s) could pick the right one for the machine their on.
最好安装不同版本的JVM,这样程序可以为自己的机器选择合适的版本。
I looked a little at Java Web Start, but it does not seem to be a good fit. 我稍微看了一下Java Web Start,但这似乎不合适。 Any ideas?
有任何想法吗?
如果您使用ant
作为构建系统,您可以使用prosposed解决这个职位
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.