我可以用我的应用程序分发JDK吗? [英] Can I distribute a JDK with my application?

查看:166
本文介绍了我可以用我的应用程序分发JDK吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发名为附魔的应用程序。该应用程序基于 Scratch ,发出Java源代码并编译,以便上传到LEGO Mindstorms NXT机器人。

I am working on an application called Enchanting. The application, based on Scratch, emits Java source code and compiles it for uploading onto LEGO Mindstorms NXT Robots.

虽然应用程序很早,但用户很难安装它。

While the application is very early, users have a hard time installing it.

现在Windows用户必须:

Right now Windows users have to:


  • 下载并安装Java Developer Kit

  • 下载并安装LeJOS(一个用于NXT)

  • 可能调整环境变量

  • 然后他们可以下载,安装和运行附魔本身

  • download and install a Java Developer Kit
  • download and install LeJOS (a java library for the NXT)
  • possibly tweak environment variables
  • then they can download, install, and run Enchanting itself

如果我能提供包含JDK和LeJOS的安装程序,我可以在运行时找出环境变量,并且过程变为:

If I could provide an installer that would include the JDK, and LeJOS, I could figure out the environment variables at run time, and the process becomes:


  • 下载,安装和运行附魔

有没有办法重新分配JDK?

Is there a way to redistribute a JDK?

(顺便提一下,处理(简化的基于文本的编程环境)似乎提供了JDK附带的版本,所以看来有合法的方法可以这样做。)

(Incidentally, Processing (a simplified text-based programming environment) seems to offer a version that comes with the JDK, so it appears that there is a legitimate way to do so).

附录:我希望没有安装java的Windows用户能够运行单个.exe文件来安装JDK,LeJOS和Enchanting。

Addendum: I would like a Windows user who does not have java installed to be able to run a single .exe file to install the JDK, LeJOS, and Enchanting.

推荐答案

有关重新分发的信息是这里是Java 10 JDK 这里 for Java 8 JDK。目前Java 8比Java 10更详细。

The information regarding redistribution is here for Java 10 JDK and here for Java 8 JDK. Currently Java 8's is substantially more detailed than Java 10's.

你可以使用 PackJacket ,打包您需要的所有文件并创建安装程序。

and you can use PackJacket, to package all the files you need and create an installer.

这篇关于我可以用我的应用程序分发JDK吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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