Page 1 of 1

Java

Posted: 18 Sep 2008, 17:21
by shocks
Hi

I'd like to install Java on Bubba II. I found this URL (
http://mediakey.dk/~cc/howto-install-su ... bian-etch/) but I'm getting the following error:

Reading package lists... Done
Building dependency tree... Done
Package sun-java5-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java5-jdk has no installation candidate

I'd ultimately like to try and run Tomcat. Not sure if this would even be possible on Bubba II.

Thanks
Ben

Posted: 19 Sep 2008, 16:41
by Cheeseboy
Hello,

I think java would be interesting too, but I don't know if Tomcat would be feasible.
I haven't got access to my bubba2 right now, it is in blinking mode...
Have you tried the following:

Code: Select all

apt-cache search java
At least it will tell you what is available in the standard repositories.
If you can't find what you are after, try adding the backports repository to your sources.list:
http://www.backports.org/dokuwiki/doku. ... structions

Please let me know how you get on.

Cheers,

Cheeseboy

Posted: 19 Sep 2008, 16:49
by carl
Default we have only activated the "main" section of the upstream debian, sun-java5-jdk is in the "non-free" branch, to add it, you must edit /etc/apt/sources and add "non-free" after "main".

/Carl

Missing sun-java5-bin

Posted: 21 Sep 2008, 16:39
by guslid
Hi,

I tried adding "non-free" but had the following message when trying to install:

Code: Select all

The following packages have unmet dependencies:
  sun-java5-jre: Depends: sun-java5-bin (= 1.5.0-14-1etch1) but it is not installable or
                          ia32-sun-java5-bin (= 1.5.0-14-1etch1) but it is not installable
E: Broken packages

This page says that there are only binary packages for amd64 and i386.

Did anyone try some other javavm solution on Bubba2?

/Gustav

Posted: 23 Sep 2008, 04:58
by lelle
I've downloaded and tried IBM java (versions 1.4, 5 and 6), but they're all linked to the older libstdc++.so.5 runtime library (libstdc++.so.6 is installled on bubba two).

Does anybody know if it's possible to install the older library together with the newer one, like the "compatlibs" package available on other linux distributions?

Posted: 26 Oct 2008, 14:22
by trencarbe
I tried to download Java directly from Sun's download site http://java.sun.com/j2se/1.5.0/jdk/download.jsp, tried both packages for Linux:

jdk-1_5_0_08-linux-i586-rpm.bin
jdk-1_5_0_08-linux-i586.bin

But installing as 'su', I get error message on Bubba:

Code: Select all

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
./desknow/jdk-1_5_0_08-linux-i586.bin: line 412: ./install.sfx.13882: cannot execute binary file
./desknow/jdk-1_5_0_08-linux-i586.bin: line 679: cd: jdk1.5.0_08: No such file or directory

Done.

Is it possible at all to install and use Java on BubbaTwo?

Posted: 26 Oct 2008, 16:29
by carl
It is not possible to use Sun JAVA on the bubba, as they don't ship version for the powerpc architecture directly. There is the new openjdk that is available in debian, and supported on powerpc, but as it is so new, it isn't directly available for etch (which the bubba is based on); We are investigating possible ways to port openjdk to the bubba, but we can't give you any time estimate yet.

/Carl

Posted: 05 Nov 2008, 16:16
by trencarbe
We are investigating possible ways to port openjdk to the bubba, but we can't give you any time estimate yet.
I am very interested in a port of openjdk to Bubba!

Posted: 21 Nov 2008, 05:00
by Kermit
I am very sad when I reallized that I can't run jalbum, that requires sun java on my new bubba :(

Re:

Posted: 21 Aug 2009, 13:52
by paulchany
Kermit wrote:I am very sad when I reallized that I can't run jalbum, that requires sun java on my new bubba :(
I'm trying to use tomcat5.5 on Bubba|Two too.
I have installed:
tomcat5.5
tomcat5.5-admin
tomcat5.5-webapps

and
ibm-java-sdk-6.0-5.0-linux-ppc.tgz
from here:
http://www.ibm.com/developerworks/java/ ... nload.html


I have setup
$PATH
~/JAVA/ibm-java-ppc-60/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
$JAVA_HOME
~/JAVA/ibm-java-ppc-60

Now, when I try to open with lynx
http://localhost:8180,
or with Firefox from Bubba's LAN on my Desktop machine
http://bubba:8180

the I get the error message:
The requested resource (/) is not available.

How can I solve this problem?

Re: Java

Posted: 24 Aug 2009, 16:56
by erl
I found a reference to a powerpc Java package in Ubuntu, I wonder if can be used to get Java working on the Bubba Two?

https://launchpad.net/ubuntu/intrepid/p ... -java6-jre

I don't have a Bubba myself yet, I was disappointed to see that Tomcat doesn't work as I wanted to replace my current Linux server with a Bubba. I hope someone gets it to work!