简体   繁体   English

如何启动Jetty并以平台无关的方式打开浏览器

[英]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.

相关问题 在 PATH 上启动程序的独立于平台的方式? - Platform-independent way to start program on PATH? 如何使用Java以独立于平台的方式从Windows共享驱动器中读取数据? - How can I read from a Windows shared drive in a platform independent way using Java? 如何在Android设备上执行独立于平台的Java代码? - How can I execute a platform independent Java code on an Android device? 如何以平台无关的方式选择无限值 - How to select a infinite value in platform independent way 独立于平台的方式在默认文本编辑器中打开任意文件 - Platform independent way to open arbitrary files in the default text editor 如何以编程方式启动具有多个配置文件的码头服务器? - How can I programmatically start a jetty server with multiple configuration files? 如何以独立于平台的方式获得Java中的电池功率水平%? - How to get the battery power level in % in Java in a platform independent way? 如何以独立于平台的方式杀死由ant exec启动的java进程? - How to kill a java process started by ant exec in a platform independent way? 如何以独立于平台的方式为Java应用程序选择日志文件的位置? - How to choose the location of a log file for a Java application in a platform independent way? 我如何在onPostExecute中打开浏览器 - How i can open browser onPostExecute
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM