Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Apple PPC Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

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
Prev Previous Post   Next Post Next
Old September 17th, 2005   #1
lol
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.
lol is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:05 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry