Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] solution for JAVA support in Opera on PPC, please?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Tue Oct 14, 2008 4:11 pm    Post subject: [SOLVED] solution for JAVA support in Opera on PPC, please? Reply with quote

Hello there!

As reported many times, Opera (9.60 in my case) tends to simply crash with a huge memory dump (>300MB!) with the latest ibm-jdk or imb-jre as JVMs.
Some users reported that ibm-jdk-1.4.2.x seems to work with Opera, but...
1)IBM has ibm-jdk-1.4.2.12 in theit download page (this package needs manual fetching...go figure)
2)There's no ebuild for 1.4.2.12 in the actual portage three!! Synced days ago.

AND

1)There is ebuild for 1.4.11 in the portage three
2)There is NO 1.4.11 download in the IBM page! (1.4.12 pseries, only)

HOW am I supposed to use JAVA JVM with OPERA now? It looks like a dead end. Every version I tried (1.5, 1.6, etc...) just CRASH Opera...
And Firefox is not an option on this light system of mine :D
I am on Opera 9.60, and gentoo-sources 2.26-r1 as kernel.

If it wasn't enough, this is what I get trying to emerge the blackdown jre:


>>> Emerging (1 of 1) dev-java/blackdown-jre-1.4.2.03-r14 to /
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
* Failed to get offset of tarball!
*
* ERROR: dev-java/blackdown-jre-1.4.2.03-r14 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 2606: Called die
* The specific snippet of code:
* die "Failed to get offset of tarball!";
* The die message:
* Failed to get offset of tarball!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-java/blackdown-jre-1.4.2.03-r14/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/blackdown-jre-1.4.2.03-r14/temp/environment'.
*



Thanks!


Last edited by VanFanel on Fri Nov 07, 2008 1:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Oct 15, 2008 11:31 am    Post subject: Re: updated solution for JAVA support in Opera on PPC, pleas Reply with quote

VanFanel wrote:
Hello there!

As reported many times, Opera (9.60 in my case) tends to simply crash with a huge memory dump (>300MB!) with the latest ibm-jdk or imb-jre as JVMs.
Some users reported that ibm-jdk-1.4.2.x seems to work with Opera, but...
1)IBM has ibm-jdk-1.4.2.12 in theit download page (this package needs manual fetching...go figure)
2)There's no ebuild for 1.4.2.12 in the actual portage three!! Synced days ago.

AND

1)There is ebuild for 1.4.11 in the portage three
2)There is NO 1.4.11 download in the IBM page! (1.4.12 pseries, only)

1.4.2.12 was marked stable today. Please sync and try again.
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Wed Oct 15, 2008 3:01 pm    Post subject: Reply with quote

Still NOT working...

Tried ibm-jdk-1.42.11, ibm-jre-1.42.11, ibm-jdk-1.42.12 and ibm-jre-1.42.12. No problems emerging them after downloading the corresponding tgzs, etc.. but OPERA 9.60 keeps crashing on JAVA tests and any java applet.
Have you JAVA working in OPERA on PowerPC? Or any other browser not being the heavy Firefox 2.x-3-x??

Thanks
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Sun Oct 19, 2008 9:28 am    Post subject: Reply with quote

it seems this gentoo ppc forum is not very active... is gentoo on ppc being halted or something?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Oct 19, 2008 5:01 pm    Post subject: Reply with quote

No, it seems nobody is very interested with Java and Opera though, sorry. The PowerPC team has historically never been very active with Java related topics.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Mon Oct 20, 2008 2:12 pm    Post subject: Reply with quote

OK, Jose... I'm developing with Java on Linux so I need a Java-capable browser: can you give me any ideas, please?
I am starting to consider Firefox, but before I face several compilation hours in my (nice) G4, I'd like to know if that browser allows java on powerpc.

Thanks!
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Oct 21, 2008 6:14 pm    Post subject: Reply with quote

VanFanel wrote:
OK, Jose... I'm developing with Java on Linux so I need a Java-capable browser: can you give me any ideas, please?
I am starting to consider Firefox, but before I face several compilation hours in my (nice) G4, I'd like to know if that browser allows java on powerpc.

Just emerge mozilla-firefox with the java USE flag enabled and you should be fine.
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Tue Oct 21, 2008 10:18 pm    Post subject: Reply with quote

well, I'll try that! It will take a day to compile it in the G4, but oh well... thanks anyway! :D
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Oct 22, 2008 10:23 pm    Post subject: Reply with quote

VanFanel wrote:
well, I'll try that! It will take a day to compile it in the G4, but oh well... thanks anyway! :D

Between one hour and a half and two hours. It shouldn't take longer than that.
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Sat Oct 25, 2008 3:03 pm    Post subject: Re: updated solution for JAVA support in Opera on PPC, pleas Reply with quote

VanFanel wrote:
HOW am I supposed to use JAVA JVM with OPERA now? It looks like a dead end. Every version I tried (1.5, 1.6, etc...) just CRASH Opera...

Allright, I have an update on this issue and a fix/workaround.

Opera crashes with the following error:

getBootClasspath failed to open file /opt/ibm-jdk-bin-1.6.0.2/jre/lib/lib/jars.cfg - No such file or directory
Unhandled exception
Type=Segmentation error vmState=0xffffffff
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0E7DA600 Handler2=0E70FB40
R0=0EFDA3F4 R1=BFF3FA80 R2=4802CC10 R3=00000000
R4=00000000 R5=28244822 R6=0000006F R7=0F1C1614
R8=0000F932 R9=00000000 R10=BFF3C738 R11=BFF3EDB0
R12=28244884 R13=10C6A830 R14=00000000 R15=11AA6590
R16=11408920 R17=0000653D R18=6563744D R19=656D6F72
R20=FFFFFFF8 R21=0000002C R22=00000028 R23=0E8D20E0
R24=FFFFFFFF R25=11A5DA20 R26=11A5DA20 R27=FFFFFFFF
R28=0E8D20E0 R29=0DCD3DE0 R30=11408F38 R31=0DCF5A0C
NIP=0DCBDC98 MSR=0200F932 ORIG_GPR3=00000002 CTR=0F4EC7D8
LINK=0DCBDC98 XER=20000000 CCR=28244822 MQ=00000000
TRAP=00000300 DAR=00000000 dsisr=40000000 RESULT=00000000
Module=/opt/ibm-jdk-bin-1.6.0.2/jre/lib/ppc/libjclscar_24.so
Module_base_address=0DC4C000
Target=2_40_20080816_022093_bHdSMr (Linux 2.6.27-gentoo)
CPU=ppc (1 logical CPUs) (0x2f1c5000 RAM)
JVMDUMP006I Processing dump event "gpf", detail "" - please wait.
JVMDUMP007I JVM Requesting System dump using '/home/hmtr/core.20081025.114622.26203.0001.dmp'
JVMDUMP010I System dump written to /home/hmtr/core.20081025.114622.26203.0001.dmp
JVMDUMP007I JVM Requesting Snap dump using '/home/hmtr/Snap.20081025.114622.26203.0002.trc'
JVMDUMP012E Error in Snap dump: {no trace engine}
JVMDUMP013I Processed dump event "gpf", detail "".


It seems to me that Opera can't find the real Java path. Check the path in the error log:

/opt/ibm-jdk-bin-1.6.0.2/jre/lib/lib/jars.cfg

The real path should be:

/opt/ibm-jdk-bin-1.6.0.2/jre/lib/jars.cfg

It seems to me that Opera is trying to find the file in "$JAVA_PATH_PROVIDED_BY_THE_USER/../lib". Since my Java path contains the "ppc" at the end, it doesn't work and duplicates "lib".

If I create a symlink "lib" in "/opt/ibm-jdk-bin-1.6.0.2/jre/lib", Java applets work fine in Opera because the path "/opt/ibm-jdk-bin-1.6.0.2/jre/lib/lib/" is now valid.

None the less, Opera should not crash when the Java path is not valid. I submitted a bug report to the Opera guys.
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Sat Nov 01, 2008 12:48 am    Post subject: Reply with quote

This seems to be fixed in Opera 9.62, now in Portage. Can anyone confirm this?
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Fri Nov 07, 2008 1:31 pm    Post subject: Reply with quote

It does NOT work here: with opera 9.62, after pointing Opera to /opt/ibm-jdk-bin-1.6.0.2/jre/lib/ppc/ , opera still CRASHES miserably on any page containing java applets.

Emerging firefox with the USE="java" flag did NOT work, either: it emerges ibm-jdk-bin-1.6.0.2 along with Firefox, but it doesn't create the symlink in /usr/lib/mozilla/plugins, so I went and did:

ln -s /opt/ibm-jdk-bin-1.6.0.2/jre/plugin/ppc/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
ln -s /opt/ibm-jdk-bin-1.6.0.2/jre/plugin/ppc/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/


NOW Firefox supports java applets! WELL, SOLVED (partially) since Opera wob't work but firefox does!!
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Fri Nov 07, 2008 1:58 pm    Post subject: Reply with quote

VanFanel wrote:
It does NOT work here: with opera 9.62, after pointing Opera to /opt/ibm-jdk-bin-1.6.0.2/jre/lib/ppc/ , opera still CRASHES miserably on any page containing java applets.

Have you tried the solution I posted here?


Quote:
Emerging firefox with the USE="java" flag did NOT work, either: it emerges ibm-jdk-bin-1.6.0.2 along with Firefox, but it doesn't create the symlink in /usr/lib/mozilla/plugins, so I went and did:

ln -s /opt/ibm-jdk-bin-1.6.0.2/jre/plugin/ppc/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
ln -s /opt/ibm-jdk-bin-1.6.0.2/jre/plugin/ppc/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/


NOW Firefox supports java applets!

My /usr/lib/mozilla/plugins is empty too and I have Java support in Firefox. I believe the correct folder is /usr/lib/nsbrowser/plugins. Please check if you have that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum