Search code examples
javajspwebserverlauncherusb-flash-drive

How Can I Start Jetty and open a Browser In Platform Independent Way


I have a simple JSP web-page/site. I have installed Jetty on a Flash-Drive, and put the Jsp/Site into the root context. I have a batch file and when I click it, it starts jetty and then launches IE and the webpage starts up. I even have a JRE installed on the flash-drive in case it's not installed locally. 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. 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.

I looked a little at Java Web Start, but it does not seem to be a good fit. Any ideas?


Solution

  • If you use ant as build system you can use solutions prosposed by this post