![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Apple PPC Users The place to discuss your Ubuntu Macintosh/Apple/PPC questions (including the Ibook, PowerBook). |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jul 2005
Beans: 146
|
HOWTO: Installing Java (IBM SDK) and Web browsers
I wasn't able to find this anywhere else, and therefore decided to make a small HOWTO so that others will avoid loosing as much time as I did.
By the way, this method to install Java is much better than the one described in the Ubuntu guide or Wiki (IMHO). If possible, I would like to update the guide, so if somebody knows how to do so, please tell me. Unless you want do it yourself, of course ________________________________ INSTALLING JAVA - IBM SDK 1.4.2 1 - Go to: https://www6.software.ibm.com/dl/lxdk/lxdk-p Download the JRE 1.4.2 for PPC. Registration Required. The one you want is the most recent version of "IBM SDK for 32-bit iSeries/pSeries" in tgz format. At the time of writing, you should get a file 'IBMJava2-SDK-142.ppc.tgz'. 2 - Make sure 'fakeroot' and 'make-jpkg' are installed: > apt-get install java-package fakeroot 3 - do the following: > export DEB_BUILD_GNU_TYPE=powerpc-linux > fakeroot make-jpkg IBMJava2-SDK-142.ppc.tgz > sudo dpkg -i ibm-j2sdk1.4_1.4.2_powerpc.deb 4 - That's all folk No need to specify the PATH, everything is taken care of. You can also install packages depending on java, there is no need for the java-virtual-machine-dummy (this way to install Java is much better than creating a DEB package from a RPM one). _______________________________ USING JAVA IN WEB BROWSERS Well, as you probably already know, there is no way to use Java with Firefox or Mozilla (at least not with recent versions). But it can be done with Opera or Konqueror. Here, I will simply explain how to set up Java for Opera, which can be downloaded from www.opera.com 1 - Select Tools -> Preferences -> Advanced. Go in 'Content', check 'Enable Java' and click on 'Java options...' 2 - Here, select or enter the path to the JRE. It should be /usr/lib/j2sdk1.4-ibm/jre/bin if you followed this HOWTO. Validate. 3 - Just in case, close and restart Opera (should not be needed though) and try to load an applet. Just be aware that not 100% of the applets work in Opera... BE CAREFULL NOT TO ADD A TRAILING / AT THE END OF THE PATH!!!!!! This is probably the main point of this HOWTO, since I lost dozens of hours because of this simple mistake! Opera will crash with the following error if you don't remove the trailing /: Code:
Can't find class java.lang.NoClassDefFoundError. Invalid class path ?
JVMDG218: JVM is not fully initialized - will not do dump processing.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|