Power Developer
https://powerdeveloper.org/forums/

IBMJava on DebianPPC (Pegasos) how to install??
https://powerdeveloper.org/forums/viewtopic.php?f=7&t=459
Page 1 of 1

Author:  bazant [ Mon Dec 26, 2005 4:09 am ]
Post subject:  IBMJava on DebianPPC (Pegasos) how to install??

Hello,

Some time ago (rather long time :?) I came across a guide how to install IBM Java on Debian/Pegasos. Unfortunately I saved only URL to this guide which doesn't work anymore :( I downloaded necessary files from IBM but basically I have no idea what to do next. Can anyone help?

Author:  Robin [ Mon Dec 26, 2005 5:56 am ]
Post subject: 

I try to find Java PPC on ibm and sun websites but failed.
Can you post a direct link please ?

Author:  bazant [ Mon Dec 26, 2005 6:10 pm ]
Post subject:  You should try harder :)

Go to http://www-128.ibm.com/developerworks/j ... nload.html
click on J2SE 1.4.2 or 5.0 for 32-bit iSeries/pSeries
Sign in (you have to register if you don't have accout on IBM - it's free)
and download TGZ format of
"JRE" e.g ibm-java2-jre-50-linux-ppc.tgz (45.8MB)
and
"Java Communication API" e.g. ibm-java2-javacomm-50-linux-ppc.tgz (122KB)

If you know what to do next please let me know :wink:

Author:  Robin [ Tue Dec 27, 2005 6:32 am ]
Post subject: 

THANKS !!! I would have never looked closer to
something called i/pSeries ... now I have to wait
for some hours since my modem is a little slow @ downloading 63MB ;-)

When I have eclipse running I'll let you know :-)
Next step is to find how to setup Tomcat ...

Author:  Robin [ Tue Dec 27, 2005 10:52 am ]
Post subject:  Update

Installing worked.
Extracted the archive renamed it to java and moved it to /.
All I had to do was to install libstdc++5 and java worked.
I set the variables (in /etc/profile)
JAVA_HOME=/java/jre
CLASSPATH=/java
PATH="/java/bin:/java/jre/bin:$PATH)

But I totally fail to find why Eclipse does not work ...
so I have not tested further ...

Author:  bazant [ Tue Dec 27, 2005 7:28 pm ]
Post subject:  Hmm, doesn't work for me :(

How did you tested java?? I tried to test it with Konqueror but any WWW which requires JVM doesn't work at all. I mean java part is not working - try www.map24.com and tell me if it found JVM on your system.

Author:  Robin [ Wed Dec 28, 2005 10:09 am ]
Post subject: 

I use it with Eclipse and there it works now.

Konqueror and Firefox dont look for the jvm.
They need a plugin in certain directories.
There are some plugins located in the jre/bin directory
and after adding the path to the Konqueror Plugin-Preferences
it finds the plugin, but it does not work :-(

Dont know why ,,, but in the Firefox Faq it seems the plugin
has to be compiled with the same compiler as the browser.
I'll try to download and compile Firefox with gcc 3.2 ... perhaps
that helps (Ubuntu's Firefox is compiled with gcc 4.0).

Author:  Robin [ Wed Dec 28, 2005 10:56 am ]
Post subject: 

This website shows that Konqueror finds and uses
the plugin ...

http://www.java.com/en/download/help/testvm.xml

... Firefox finds the plugin, too (It's listed in about:plugins)
but this test fails :-(

Author:  Robin [ Wed Dec 28, 2005 4:20 pm ]
Post subject: 

Hours later ...

I got Firefox to use Java after I totally failed to compile it myself ;-)
Code:
robin@Pegasos:/usr/lib/mozilla-firefox/plugins$ ls -la
insgesamt 4
drwxr-xr-x 2 root root 81 2005-12-28 23:11 .
drwxr-xr-x 11 root root 4096 2005-12-26 21:37 ..
lrwxrwxrwx 1 root root 27 2005-12-28 23:10 javaplugin.so -> /java/jre/bin/javaplugin.so
lrwxrwxrwx 1 root root 35 2005-12-28 23:11 libjavaplugin_nscp.so -> /java/jre/bin/libjavaplugin_nscp.so
lrwxrwxrwx 1 root root 34 2005-12-28 23:11 libjavaplugin_oji.so -> /java/jre/bin/libjavaplugin_oji.so
I've linked these three files into the plugin directory. (Copy does not work)
This shows on map24 at least a "Java loading ..." and then it crashes ;-)
I dont understand this ...
Code:
robin@Pegasos:/usr/lib/mozilla-firefox/plugins$ firefox
Unhandled exception
Type=Segmentation error vmState=0x00000000
Target=2_30_20051027_03723_bHdSMR (Linux 2.6.12-9-powerpc)
CPU=ppc (1 logical CPUs) (0x1f74d000 RAM)
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0FB18100 Handler2=0FA7B7E0
R0=4021A00C R1=415B96E8 R2=415C1950 R3=00000004
R4=00000004 R5=0F84F024 R6=10A12401 R7=10A12378
R8=0FF7DEDC R9=415C1958 R10=415BA554 R11=10A11D10
R12=4021A584 R13=10843300 R14=10A1238C R15=301DE050
R16=41DB0540 R17=10A5A1E8 R18=0FB724D0 R19=00000013
R20=10A5A1D8 R21=10A12424 R22=00000000 R23=00000000
R24=415B9CD4 R25=4169A5F0 R26=100291E0 R27=30401498
R28=301DE050 R29=30401578 R30=30401578 R31=00000000
NIP=4021A628 MSR=0200D032 ORIG_GPR3=0000002D CTR=4021A584
LINK=4021A00C XER=2000000C CCR=44042428 MQ=00000000
TRAP=00000300 DAR=00000004 dsisr=40000000 RESULT=00000000

Compiled_method=d.a()I
JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using '/usr/lib/mozilla-firefox/plugins/core.20051228.231310.17164.dmp'
JVMDUMP010I System Dump written to /tmp/core.20051228.231310.17164.dmp
JVMDUMP007I JVM Requesting Snap Dump using '/usr/lib/mozilla-firefox/plugins/Snap0001.20051228.231310.17164.trc'
JVMDUMP010I Snap Dump written to /tmp/Snap0001.20051228.231310.17164.trc
JVMDUMP007I JVM Requesting Java Dump using '/tmp/javacore.20051228.231310.17164.txt'
JVMDUMP010I Java Dump written to /tmp/javacore.20051228.231310.17164.txt
JVMDUMP013I Processed Dump Event "gpf", detail "".
INTERNAL ERROR on Browser End: Pipe closed during read? State may be corrupt
System error?:: Erfolg

Author:  bazant [ Sat Dec 31, 2005 7:15 am ]
Post subject:  Solution found!!

Hi!

I posted my problem to debian-ppc ml and thanks to people from the list and after some googling I have the solution :)

To install IBM JVM go like this:
apt-get install java-package
download java-package.patch to /usr/share (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338569)
cd /usr/share
patch -p0 <java-package.patch
cd /home/bla/ibmjava (where ibm tgz file is downloaded)
(as user)
fakeroot make-jpkg ibm-java2-jre-50-linux-ppc.tgz
(as root)
dpkg -i ibm-j2re1.5_1.5.0_powerpc.deb
put path to Java in Konqueror (/usr/bin/java)
logout, login
and JavaJVM works fine!!

I still can't get JVM plugin to work with Mozilla/Firefox - if someone will be able to use JVM with Mozilla/Firefox please let me know!

Author:  AKiLL [ Mon Feb 06, 2006 4:08 pm ]
Post subject:  Re: Update

[quote="Robin"]Installing worked.
Extracted the archive renamed it to java and moved it to /.
All I had to do was to install libstdc++5 and java worked.
I set the variables (in /etc/profile)
JAVA_HOME=/java/jre
CLASSPATH=/java
PATH="/java/bin:/java/jre/bin:$PATH)


I didn't manage that way ...

Can U give me more details about libstdc++5 installation ???

Tnx in advance from a new pegasos II G4 user...

Author:  lugduweb [ Wed Feb 08, 2006 3:07 pm ]
Post subject: 

@KiLL :

Hi !

Here is how to install libstdc++5.

I did that on Ubuntu which is based on Debian :
(see Ubuntu + enlightenment e17 window manager for details).
It also fixes problems like "undefined reference to `memcpy@@GLIBC_2.0'".

1) Remove gcc-4.0 if it's installed :
apt-get remove gcc-4.0
(It will also remove g++, g++-4.0, gcc, gcc-4.0, libstdc++-6-4.0-dev)

2) Install gcc-3.3 :
apt-get install libstdc++5-3.3-dev
(It will also installs cpp-3.3, g++-3.3, gcc-3.3, libstdc++5)

Then do a few links by yourself :
cd /usr/bin
ln -s cpp-3.3 cpp
ln -s g++-3.3 g++
ln -s gcc-3.3 gcc

cd /usr/lib
ln -s /usr/bin/cpp-3.3 cpp

Now you will use the right stdlib ;-)
Hope that helps.

Author:  AKiLL [ Sun Feb 12, 2006 8:08 am ]
Post subject:  Re: Solution found!!

[quote="bazant"]Hi!

I still can't get java plugin to work with Mozilla/Firefox and Konqueror under my debian/GNU Linux installed on my pegasos II G4.

Can anyone let me know how to correctly install java (and other web browser plugins such as PDF, swf, Real Player, plugins ???

Tnx in advance

Author:  AKiLL [ Fri Sep 22, 2006 4:15 pm ]
Post subject:  IBMJava on DebianPPC (Pegasos) how to install??

Finally I managed to successfully install and use both java and flash plugins.
Probably, the java plugin is still partially usable since some applets just don't start...
Much more probable that I missed something during pkgs installation :-)

Also the test Robin suggested connecting http://www.java.com/en/download/help/testvm.xml didn't return me nicer results...

Any suggest ???

BTW! Tnx. to Bazant and mcgreg for great help with installing JVM pkgs!

Author:  bbAdmin [ Sat Sep 23, 2006 7:10 am ]
Post subject: 

@AKILL

Erm, I think I told you something wrong :)
As I did the same error for me too.. wrong path is set in /home/user/.bashrc.

export PATH=/opt/ibm/ibm-java2-ppc-50/jre/bin:$PATH

it should be.

If it is correct:

After opening new console,. by typing export, you should get:
declare -x PATH="/opt/ibm/ibm-java2-ppc-50/jre/bin:...

and by typing "which java"

the result should be:
mcgreg@pegasos2:~$ which java
/opt/ibm/ibm-java2-ppc-50/jre/bin/java

Then it should work ok.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/