JavaPPC

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

JavaPPC

#1

帖子 oneleaf » 2005-08-26 23:51

JavaPPC

Due to Non-Free status of most [Java] implementations, Ubuntu does not include Java support natively. See RestrictedFormats.

There are two places to get Java for Ubuntu PPC: IBM and Blackdown.
IBM

IBM produces a Java Development Kit (JDK) for its POWER computers, which happens to also work on PPC. They are the only place to make available recent versions of Java for PPC Linux.

The JDK is known to work on G3, G4, and G5 Macs, as well as older 604e and 603e Macs. It is not yet known whether it works on non-Mac PowerPCs. Please update the Wiki if you have more information!

To get the IBM JDK, go to [WWW] https://www6.software.ibm.com/dl/lxdk/lxdk-p, and choose the topmost (most recent) SDK for 32-bit iSeries/pSeries. Be sure to get the 32-bit version even if you have a G5. You will have to register before being allowed to download anything. When you reach the download page, download the RPM version of the SDK.

To use an RPM with Ubuntu, you have to convert it to a DEB. Make sure you have the tools fakeroot and alien installed:

sudo apt-get install fakeroot alien

Now convert the RPM and install the resulting DEB:

fakeroot alien -d IBMJava2-SDK-ppc-1.4.2-0.0.ppc.rpm
sudo dpkg -i ibmjava2-sdk-ppc_1.4.2-1_powerpc.deb

To use Java, you'll have to make sure the java binaries are in your path. Add to your .bashrc:

export PATH="$PATH:/opt/IBMJava2-ppc-142/bin"

Now test that everything's working. Open a new terminal, and try this:

cd /opt/IBMJava2-ppc-142/demo/applets/TicTacToe
appletviewer example1.html

If you see a Tic Tac Toe game, it worked!

Is Java crashing when you try this example? It may be because of a fixable bug in the IBM JDK. Try running "JITC_PROCESSOR_TYPE=6 appletviewer example1.html" (use 5 instead of 6 on a pre-G3), or as a last resort "JAVA_COMPILER=NONE appletviewer example1.html". If one of these works, edit your .bashrc to export the environment variable, eg: add the line 'export JITC_PROCESSOR_TYPE=6'.

You should let Ubuntu know that you've installed Java, so it will allow you to install Java-based packages. Install the java-virtual-machine-dummy package from [WWW] http://packages.debian.org/stable/misc/ ... hine-dummy. Then edit /etc/java-vm so that it reads:

/opt/IBMJava2-ppc-142/bin/java

Plugin:

Unfortunately, there's no Mozilla plug-in for IBM's Java on PPC. If you need to view applets, you'll have to install Konqueror from the Debian repository. See AddingRepositoriesHowto.
Blackdown

Blackdown has been porting Java to various platforms for the past few years. However, their most recent effort for PPC is Java 1.3.1, and their browser plugin does not work with recent versions of Mozilla or Mozilla-based browsers.

You can download Blackdown Java from [WWW] ftp://ftp.tux.org/pub/java/JDK-1.3.1/pp ... ux-ppc.bin


https://wiki.ubuntu.com/JavaPPC
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海
送出感谢: 0
接收感谢: 1 次

#2

帖子 catinsnow » 2005-09-03 1:48

JavaPPC
PowerPC上使用JAVA


由于大部分JAVA实现都是Non-Free的,Ubuntu没有包含Java原始支持。参见RestrictedFormats。

有两个地方可以得到可用于Ubuntu PPC的JAVA:IBM和Blackdown.

IBM

IBM为它的POWER计算机开发了一套Java Development Kit(JDK,JAVA开发工具集),碰巧它也可以工作在PPC上。这是唯一提供可用在PPC Linux上的最新版JAVA的地方。

这个JDK工具集已知可以工作在G3,G4,G5苹果机上,在更老的604e和603e也同样可以。在非苹果PowerPc上能否使用还不知道。如果你有更多信息请更新这个Wiki。

要得到IBM JDK,可以去[WWW] https://www6.software.ibm.com/dl/lxdk/lxdk-p ,下载最上面的(最新的)用于32-bit iSeries/pSeries的JDK。如果你用的G5,确认你得到是32-bit版本。你在被允许下载任何东西之前不得不先注册一下。到达下载页面后,下载SDK的RPM包。

在Ubuntu下使用RPM,要先转为DEB包。确认你已经安装了fakeroot和alien工具。

代码: 全选

sudo apt-get install fakeroot alien


现在转换RPM成DEB包并安装它:

代码: 全选

fakeroot alien -d IBMJava2-SDK-ppc-1.4.2-0.0.ppc.rpm

sudo dpkg -i ibmjava2-sdk-ppc_1.4.2-1_powerpc.deb


要使用JAVA,你还要确保Java二进制文件在你的检索路径。在你的.bashrc文件里加入:

代码: 全选

export PATH="$PATH:/opt/IBMJava2-ppc-142/bin"


现在试试是不是一切正常。打开一个新的终端,试试执行:

代码: 全选

cd /opt/IBMJava2-ppc-142/demo/applets/TicTacToe
appletviewer example1.html

如果你看到一个Tic Tac Toe游戏,证明它可以工作了!

这个试验中Java崩溃了?这可能是因为IBM JDK中一个可修复的BUG。试试运行

代码: 全选

"JITC_PROCESSOR_TYPE=6 appletviewer example1.html"(在pre-G3系统里用5代替6)

或者最后试一下

代码: 全选

"JAVA_COMPILER=NONE appletviewer example1.html"

如果其中一个可以工作的话,编辑你的.bashrc以导入这个环境变量,比如:加入这一行

代码: 全选

'export JITC_PROCESSOR_TYPE=6'


你应该让Ubuntu知道你已经安装了Java,使得它允许你安装以Java为基础的软件包。从
安装java-virtual-machine-dummy包。然后编辑/etc/java-vm使它含有

代码: 全选

/opt/IBMJava2-ppc-142/bin/java


Plugin插件:

很不幸,没有用于PPC上IBM JAVA的Mozilla插件。如果你需要使用applets,不得不从Debian软件库中安装Konqueror。参见AddingRepositoriesHowto。

Blackdown

过去几年Blackdown曾把JAVA移植到多个平台。但是,他们最近的可用于PPC的版本是JAVA1.3.1,并且他们的浏览器插件在新版本mozilla或基于Mozilla的浏览器中已经不能工作。
你可以从这里下载Blackdown Java:


https://wiki.ubuntu.com/JavaPPC
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

#3

帖子 leal » 2005-09-03 13:40

great!
用心×恒 | 豆瓣 | 门户 | Blog
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

#4

帖子 oneleaf » 2005-09-07 19:49

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4160
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
送出感谢: 43 次
接收感谢: 9 次
联系:

#5

帖子 millenniumdark » 2006-07-30 18:35

文档变化太大了,看了一下,好像只有两句话可用啊
新的原文在这里
http://wiki.ubuntu.org.cn/Java
回复

回到 “软件和文档翻译”