是否有一种机制来分发具有自己的JRE的应用程序? [英] Is there a mechanism to distribute an app with its own JRE?

查看:127
本文介绍了是否有一种机制来分发具有自己的JRE的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些好人是我的用户: http://www.youtube.com/watch?v = o4MwTvtyrUQ



如果你不想在这里享受视频,那就是要点:我的用户无法分辨文件和文件夹之间,浏览器和网站。



我需要创建一个Java Web应用程序(Tomcat或Jetty)并将其部署在尽可能多的计算机,Windows和Mac中。 / p>

问题是:是否存在使用自己的JRE分发应用程序的机制? (在Tcl世界中有starpacks和starkits,在Python世界中有py2exe和其他,这就是这个想法)。而且,它合法吗?我知道虚拟机是开源的,但我不清楚这些库,我知道GNU Classpath,但我不知道是否所有的软件包都存在。



我不想依赖已安装的JRE或具有足够权限的用户来安装JRE。在Mac上我不想依赖Apple(我不得不从Tiger切换到Snow Leopard只是为了拥有Java 1.6,我不能让我的用户处于那个位置)



任何信息非常感谢。
谢谢!
jb



编辑我想知道我是否可以将JRE文件夹粘贴到我的app文件夹下。这是允许的吗?

解决方案

 
要运行您的应用程序,用户需要J2SE Runtime Environment,
,可从Sun免费获得。或者,您可以使用您的应用程序免费重新分发
J2SE运行时环境,根据运行时环境许可证的条款

来自 http://java.sun.com/j2se/1.5.0/jre/README



我还没读过罚款打印,似乎Sun打算让人们重新分配JRE。此外,有许多产品(例如install4j)使您可以轻松地重新分发JRE,因此它似乎是合法的。



至于其余部分,然后你可以使用内置的服务捆绑tomcat,这样你的应用程序就会自动启动,并在桌面上创建一个快捷方式到你的本地webapp,这样用户就可以免于键入ht tp:// localhost:8080 / webapp。有很多FOSS安装程序(例如izpack)允许用户安装软件包,并管理桌面快捷方式的创建。您提到不喜欢使用安装程序,但即使解压缩也是一种安装方式 - 您的用户必须选择一个他们具有写入权限的目录,这与完全成熟的安装程序没有什么区别。



但是,鉴于您的用户的能力,本地安装的解决方案是否最适合他们?在线解决方案可能提供更简单的部署(例如Java Web启动,甚至可以作为applet。)


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 and a folder, between a browser and a web site.

I need to create a Java web app (Tomcat or Jetty) and deploy it in as many of their computers, Windows and Mac.

The question is: Is there a mechanism to distribute an app with its own JRE? (in the Tcl world there are starpacks and starkits, in the Python world there's py2exe and others, that's the idea). And also, is it legal? I know the VM is open source but I'm not clear about the libraries, and I know about GNU Classpath but I don't know if all the packages are there.

I don't want to depend on the installed JRE or on the user having enough privileges to install one. On the Mac I don't want to depend on Apple (I had to switch from Tiger to Snow Leopard just to have Java 1.6, I can't put my users in that position)

Any info greatly appreciated. Thanks! jb

edit: I'm wondering if I can just paste the JRE folder under my app folder. Is that allowed?

解决方案

    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.)

这篇关于是否有一种机制来分发具有自己的JRE的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆