Linux上的可移植JRE-可能吗? [英] Portable JRE on Linux - possible?

查看:90
本文介绍了Linux上的可移植JRE-可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个重新制作的发行版,该发行版最初与Sun Java一起打包,但是我决定让Java代替我的应用程序从硬盘驱动器上的文件夹中运行.我看到有一种适用于Windows的可移植Java-如何使用Linux做到这一点?我还没有尝试过将整个文件夹放在其中,但这看起来很丑陋,而且我不确定Java安装中是否还有其他文件需要放在系统目录中.

I am making a remastered distribution that was at first packed with Sun Java, however I decided I would like Java to run from a folder on the hard drive with my application instead. I see there's a portable Java for Windows - how can I do this with Linux? I haven't tried simply putting the whole folder in there but that seems like an ugly hack, and I'm not sure if there are other files in the Java install that need to be put in system directories.

推荐答案

在Linux上,您从oracle站点下载jre-6u21-linux-i586.bin,然后执行它,并将所有jre放在一个目录中.

On Linux you download jre-6u21-linux-i586.bin from oracle site, you exec it, and you get all jre in one directory.

您可以更改此目录名称,将其复制到另一台Linux PC,将其压缩并在其他位置解压缩,依此类推.然后,将子目录 bin 放在PATH上.

You can change this directory name, copy it an another Linux PC, tar it and untar it elsewhere, and so on. Then put the subdir bin on the PATH, that's all.

这篇关于Linux上的可移植JRE-可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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