New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Java

Got problems with your B2 or B3? Share and get helped!
Post Reply
shocks
Posts: 18
Joined: 29 Apr 2008, 05:24

Java

Post 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
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Post 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
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post 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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
guslid
Posts: 3
Joined: 21 Sep 2008, 16:30

Missing sun-java5-bin

Post 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
lelle
Posts: 69
Joined: 02 Jan 2007, 20:25
Location: Stockholm, Sweden

Post 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?
trencarbe
Posts: 103
Joined: 11 Aug 2008, 16:02

Post 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?
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post 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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
trencarbe
Posts: 103
Joined: 11 Aug 2008, 16:02

Post 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!
Kermit
Posts: 8
Joined: 10 Mar 2007, 06:00
Location: Sweden

Post by Kermit »

I am very sad when I reallized that I can't run jalbum, that requires sun java on my new bubba :(
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re:

Post 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?
erl
Posts: 2
Joined: 24 Aug 2009, 16:52

Re: Java

Post 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!
Post Reply