Is there a mechanism to distribute an app with its own JRE?

前端 未结 4 794
攒了一身酷
攒了一身酷 2020-12-16 03:33

These fine folks are my users: http://www.youtube.com/watch?v=o4MwTvtyrUQ

If you don\'t want to enjoy the video here is the gist: my users can\'t tell between a file

4条回答
  •  醉梦人生
    2020-12-16 04:25

        To run your application, a user needs the J2SE Runtime Environment,
        which is freely available from Sun. Or, You can redistribute the 
        J2SE Runtime Environment for free with your application, according 
        to the terms of the Runtime Environment's license.
    

    From http://java.sun.com/j2se/1.5.0/jre/README

    I haven't read the fine print, it seems that Sun intends for people to redistribute the JRE. Also, there are many products (e.g. install4j) that make it easy for you to redistribute the JRE, so it seems to be legal.

    As to the rest of it, you could then also bundle tomcat, with the built in Service so your app is automatically started, and create a shortcut on the desktop to your local webapp, so users are freed from typing ht tp://localhost:8080/webapp. There are plenty of FOSS installers (e.g. izpack) that will allow your users to install the package, and manage creation of desktop shortcuts. You mentioned preferring not using an installer, but even unzipping is kind of installing - your users have to choose a directory that they have write access to, and this is no different with a fully fledged installer.

    But, given the capabilities of your users, is a locally installed solution the most suited to them? An online solution might offer simpler deployment (e.g. Java web start, or even as an applet.)

提交回复
热议问题