Java 7

YDL running on the Sony Playstation 3

Moderator: billb

Java 7

Postby ratatosk » 19 Jul 2010, 23:50

Has anyone managed to install & run Java 7 downloaded from

http://www.ibm.com/developerworks/java/ ... .html#main
ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Re: Java 7

Postby billb » 20 Jul 2010, 00:26

Downloading now... If you're trying it on YDL / PS3 you'll need this version:

"IBM 32-bit SDK for Linux on iSeries and pSeries architecture, Java Technology Edition"

I just got the runtime and not the SDK.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Java 7

Postby ppietro » 20 Jul 2010, 01:14

Just be aware that Java 7 is slightly dangerous surf. It's still in Beta - an official release is still forthcoming.

According to this:
http://openjdk.java.net/projects/jdk7/

the milestones will continue until at least Sept. 2010. I wouldn't expect a shipping version until then.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Java 7

Postby billb » 21 Jul 2010, 01:29

Didn't have any trouble installing on YDL 6.2 ...

Install (as root):
Code: Select all
rpm -ivh ibm-java-ppc-jre-7.0-0.0.ppc.rpm


Set path:
Code: Select all
export PATH=/opt/ibm/java-ppc-70/bin:/opt/ibm/java-ppc-70/jre/bin:$PATH


Check version:
Code: Select all
java -version

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build pxp3270-20100531_04)
IBM J9 VM (build 2.6, JRE 1.7.0 IBM J9 2.6 Linux ppc-32 jvmxp3270-20100522_58582 (JIT enabled, AOT enabled)
J9VM - R26_head_20100521_1457_B58494
JIT - dev_20100507_15747
GC - R26_head_20100521_1652_B58499
J9CL - 20100522_58582)
JCL - 20100514_02 based on Sun 7b76


Install Firefox plugin:

Code: Select all
cd /usr/lib/mozilla/plugins

Code: Select all
ln -s /opt/ibm/java-ppc-70/jre/plugin/ppc/ns7/libjavaplugin_oji.so


Plugin shows as installed in Firefox with about:plugins
Java(TM) Plug-in 1.7.0-internal-foreman_2010_05_14_08_56-b00

File name: libjavaplugin_oji.so
Java(TM) Plug-in 1.7.0


However, anything I normally check out like time.gov or flyordie.com games appear to lock up Firefox.

Anyway... was just curious. :mrgreen:
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Java 7

Postby ratatosk » 21 Jul 2010, 12:48

I've experienced the same... However, I need Java version 1.6.1 or higher.
Do I have to wait untill IBM makes a shipping version of Java 7 or are there any other possibilities?
ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Re: Java 7

Postby ppietro » 21 Jul 2010, 17:35

ratatosk wrote:I've experienced the same... However, I need Java version 1.6.1 or higher.
Do I have to wait untill IBM makes a shipping version of Java 7 or are there any other possibilities?


Hmmm. From what I can tell, the latest version of Java that's been released is Java 1.6.0_21. IBM is currently hosting 6.0 update 8.0 - that should correspond to 1.6.0_8.

Can you post a link to the reference that specifically called out 1.6.1? It might be a different version of Java - like Java mobile or something.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Java 7

Postby ratatosk » 21 Jul 2010, 21:39

Can you post a link to the reference that specifically called out 1.6.1? It might be a different version of Java - like Java mobile or something.


I doubt the relevance, but here it is:

https://www1.portalbank.no/1286/Sider/k ... tbank.aspx
ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Re: Java 7

Postby ppietro » 22 Jul 2010, 05:30

ratatosk wrote:
Can you post a link to the reference that specifically called out 1.6.1? It might be a different version of Java - like Java mobile or something.


I doubt the relevance, but here it is:

https://www1.portalbank.no/1286/Sider/k ... tbank.aspx


Yeah - that's what I thought. You don't need Java 1.6.1.

BankID krever Java versjon 1.6 update 1 eller nyere. Vi anbefaler Java 1.6 update 13 for nettleseren Firefox.


This means you need 1.6.0_1 (Java 6 update 1) or 1.6.0_13 (Java 6 update 13) for Firefox browser.

You should be able to use the latest IBM Java 6.0 - SR8 - with YDL's default Firefox. According to this webpage, IBM's Java 6 SR 8 is roughly equivalent to 1.6.0_19: http://www.ibm.com/developerworks/java/jdk/alerts/

I'd try it, but I don't have an account there. :D

You'll have to use one of the Firefox 3.0.x browsers - not the 3.6 I built. Firefox 3.6 requires a more modern Java. You can get my build of 3.0.14 from billb's ps3bodega repositories.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Java 7

Postby billb » 22 Jul 2010, 15:05

ppietro wrote:You'll have to use one of the Firefox 3.0.x browsers - not the 3.6 I built. Firefox 3.6 requires a more modern Java. You can get my build of 3.0.14 from billb's ps3bodega repositories.


The last set of updates for YDL 6.2 added Firefox 3.0.16 (see here).
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Java 7

Postby ratatosk » 22 Jul 2010, 22:27

Thanks for all the advises. I'm running firefox-3.0.12-1.ydl6.2 and ibm-java-ppc-sdk-6.0-8.0
on YDL 6.1 without any success when it comes to administrating the bank account.
The clock on http://www.time.gov is ticking as it should.
ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Re: Java 7

Postby ppietro » 22 Jul 2010, 22:47

ratatosk wrote:Thanks for all the advises. I'm running firefox-3.0.12-1.ydl6.2 and ibm-java-ppc-sdk-6.0-8.0
on YDL 6.1 without any success when it comes to administrating the bank account.
The clock on http://www.time.gov is ticking as it should.


So - you might be running into an issue with a missing Java library.

Sun (Oracle) includes some additional Java libraries beyond the default "Java" set. IBM's Java - licensed from Sun - don't include these JAR files.

Good Java programming isn't supposed to assume that these libraries are present - but most folks only run Sun's Java and just assume they're there.

The good news is that you can use the Sun JAR files with an IBM Java installation.

You might try opening a Java console and see if you can capture the error message that's being generated. If it's a missing library, I might be able to tell you which Sun JAR file you need to copy to your IBM installation to get it to work.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Java 7

Postby ratatosk » 22 Jul 2010, 23:16

I'm not that familiar with Java, but Sun is mentioned
several times in the exceptions.


Code: Select all
java.lang.NoClassDefFoundError: com.sun.net.ssl.HostnameVerifier
        at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69
)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:529)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:440)
        at java.net.URLClassLoader.access$300(URLClassLoader.java:68)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1027)
        at java.security.AccessController.doPrivileged(AccessController.java:284
)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:418)
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:172)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        at no.bbs.bankid.client.gui.dh.open(Unknown Source)
        at no.bbs.bankid.client.gui.cv.c(Unknown Source)
        at no.bbs.bankid.client.gui.en.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.HostnameVerifier
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        ... 16 more
java.lang.NullPointerException
        at no.bbs.bankid.client.gui.bu.Z(Unknown Source)
        at no.bbs.bankid.client.gui.ev.Z(Unknown Source)
        at no.bbs.bankid.client.gui.jl.Z(Unknown Source)
        at no.bbs.bankid.client.gui.jl.a(Unknown Source)
        at no.bbs.bankid.client.gui.ap.a(Unknown Source)
        at no.bbs.bankid.client.gui.fc.a(Unknown Source)
        at no.bbs.bankid.client.gui.f.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:736)

ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Re: Java 7

Postby ppietro » 23 Jul 2010, 00:45

ratatosk wrote:I'm not that familiar with Java, but Sun is mentioned
several times in the exceptions.


Code: Select all
java.lang.NoClassDefFoundError: com.sun.net.ssl.HostnameVerifier
        at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69
)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:529)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:440)
        at java.net.URLClassLoader.access$300(URLClassLoader.java:68)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1027)
        at java.security.AccessController.doPrivileged(AccessController.java:284
)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:418)
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:172)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        at no.bbs.bankid.client.gui.dh.open(Unknown Source)
        at no.bbs.bankid.client.gui.cv.c(Unknown Source)
        at no.bbs.bankid.client.gui.en.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.HostnameVerifier
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        ... 16 more
java.lang.NullPointerException
        at no.bbs.bankid.client.gui.bu.Z(Unknown Source)
        at no.bbs.bankid.client.gui.ev.Z(Unknown Source)
        at no.bbs.bankid.client.gui.jl.Z(Unknown Source)
        at no.bbs.bankid.client.gui.jl.a(Unknown Source)
        at no.bbs.bankid.client.gui.ap.a(Unknown Source)
        at no.bbs.bankid.client.gui.fc.a(Unknown Source)
        at no.bbs.bankid.client.gui.f.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:736)



Perfect - that's the output I was looking for.

So - in Java-speak - the package is com.sun.net.ssl and the class object/function is HostnameVerifier. A package name indicates where it's from - in reverse order. So - you'd read this as the ssl library from the net archive from sun.com. Looking stuff up on Google, I think you might need to add jsse.jar from a Sun Java installation to your IBM installation. Usually these jar files can go in a ../jre/lib directory.

I'll have more time to troubleshoot this when I get home, but that might be enough to get you started.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Java 7

Postby billb » 24 Jul 2010, 17:00

I just tried the browser plugin for Java 7 on the latest Opera release (10.60 internal, Centos PPC version on YDL 6.2) and it seems to be working OK.

Installation on Opera:

1. Menu -> Settings -> Preferences (or press Ctrl + F12)

2. Select "Content"

3. Click on "Plug-in Options"

4. Click on "Change path"

5. Click on "Add"

6. Add this path:

Code: Select all
/opt/ibm/java-ppc-70/jre/lib/ppc/


Click OK

That should be it -- tested OK on time.gov

EDIT: does not seem to work OK with flyordie.com games.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Java 7

Postby ratatosk » 27 Jul 2010, 10:49

I think you might need to add jsse.jar from a Sun Java installation to your IBM installation. Usually these jar files can go in a ../jre/lib directory.

The self-extracting file for Sun's Java SE fails on PS3, I think it's
executing some x86 binary. Can I unpack the jars on another Linux
platform and just copy the files to my PS3?
ratatosk
ydl newbie
ydl newbie
 
Posts: 9
Joined: 19 Jul 2010, 23:35
Location: Norway

Next

Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 62 guests

cron