Page 1 of 5 123 ... LastLast
Results 1 to 10 of 45

Thread: Are we going to see Java SE 6?

  1. #1
    Join Date
    Jan 2005
    Beans
    19

    Question Are we going to see Java SE 6?

    Java SE 6 is released and came with lots of new features and a big speed boost. The Distributors License for Java SE 6 is ready so we could expect a version packaged for Ubuntu.

    Java SE 5 was released for Dapper after Dapper was released, so I hope we can install some sun-java6 packages (hopefully along with the sun-java5 packages). Are we going to see sun-java6 packages for Edgy??

    Another question. Why sun-java5 packages are not updated when a new version is released? I installed sun-java5 v1.5.0-06 on Dapper and v1.5.0-08 on Edgy, and now I see v1.5.0-10 on Fiesty. Why v1.5.0-10 is not available for Edgy if it is a bug fix release?

    Anyone has comments?

    Thanks,
    rivas

  2. #2
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Are we going to see Java SE 6?

    I very much hope that Fiesty will have JRE6 and JDK6 in its package repositories.

    But realistically speaking, an upgrade to Java 6 is really not that much of a priority at the moment. Most enterprises will not be adapting Java 6 so soon after its release. Therefore, most professional Java programmers will not be working with Java 6 either, unless it is purely for private or non-business use.

    If I had my way, I'd like to see Java 6 JRE and SDK on Feisty. Feisty's release is still some months away, so surely a very significant piece of software like Sun's Java could be packaged for it.

  3. #3
    Join Date
    Dec 2006
    Beans
    19

    Re: Are we going to see Java SE 6?

    You can always install jre-6 manually, by:
    1. uninstalling any previous versions
    2. downloading the new jre-6 from sun http://java.sun.com/javase/downloads/index.jsp
    3. reading the instructions http://java.sun.com/javase/6/webnote...elf-extracting
    4. moving it under /usr/lib/jvm/
    5. chmoding +x the binary (you can't build debs with fakeroot and java-package at the moment)
    6. executing the self-extracting file
    7.(not necessary after post #5) (updating the links of /usr/bin/java and /usr/bin/java_vm to the new java location, since the update-alternatives --config java mechanism for selecting java doesn't work anymore)
    8. updating the mozilla, firefox, swiftfox, opera java plugin links.
    see also the notes from sun about the java plugin http://java.sun.com/javase/6/webnote...ux.html#plugin

    It's better to wait for debian and/or ubuntu to include the new jre-6 in the java-package tool for building the relevant debs, cause then you can use the alternatives mechanism cleanly to select the java you want to work with, and not break your system.
    Last edited by giorgosts; December 16th, 2006 at 12:20 AM.

  4. #4
    Join Date
    Dec 2006
    Beans
    19

    Re: Are we going to see Java SE 6?

    Quote Originally Posted by rivasdiaz View Post
    Another question. Why sun-java5 packages are not updated when a new version is released? I installed sun-java5 v1.5.0-06 on Dapper and v1.5.0-08 on Edgy, and now I see v1.5.0-10 on Fiesty. Why v1.5.0-10 is not available for Edgy if it is a bug fix release?

    Anyone has comments?

    Thanks,
    rivas
    see http://www.azureuswiki.com/index.php/Java a how-to update to a newer java. Be carefull though to select up to 1.5.0-10 because the tools to build the debs don't work with jre-6.

  5. #5
    Join Date
    Nov 2005
    Beans
    51
    Distro
    Ubuntu 6.10 Edgy

    Re: Are we going to see Java SE 6?

    You can add java 6 to update-alternatives:

    Code:
    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0/bin/javac 30
    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0/bin/java 30
    
    sudo update-alternatives --config javac #then choose javac6 
    sudo update-alternatives --config java #choose java6
    Last edited by jan247; September 9th, 2007 at 12:33 AM.

  6. #6
    Join Date
    Dec 2006
    Beans
    19

    Re: Are we going to see Java SE 6?

    Thanks ever so much

  7. #7
    Join Date
    Nov 2005
    Location
    Hungary
    Beans
    49

    Re: Are we going to see Java SE 6?

    I recommend to add this too:
    Code:
    sudo update-alternatives --install /usr/lib/firefox/plugins/libjavaplugin.so firefox-javaplugin.so /usr/lib/jvm/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so 30
    and then:
    Code:
    sudo update-alternatives --config firefox-javaplugin.so
    and choose a 1.6.
    In Flames We Trust

  8. #8
    Join Date
    Jul 2005
    Location
    London,England
    Beans
    1,022
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Are we going to see Java SE 6?

    it works perfectly if you just run the setup file in /usr/lib/jvm then change the link
    java-1.5.0-sun
    to point to the new 1.6 folder
    Jeremy Clarkson - "A Dazzling Hero of Political Incorrectness"
    My LastFM profile
    want to Give each GTK program its own theme? well look Here

  9. #9
    Join Date
    Sep 2005
    Location
    Berlin, Germany
    Beans
    20
    Distro
    Ubuntu Development Release

    Self made package is very easy...

    As I am a java developer I need the sdk. So here is my howto for installing the j2sdk. The jre has got less tools to update in the alternatives.

    Repository packages you'll need
    • build-essential
    • fakeroot
    • java-common


    Install the patched java-package
    Download the patched java-package from this post or my attachment below. Untar it
    Code:
    tar xvfz java-package-0.28ubuntu1.tar.gz
    Install it
    Code:
    sudo dpkg -i java-package_0.28ubuntu1_all.deb
    Create the package
    Download Java 6 from sun and cd into the same directory. Now issue
    Code:
    fakeroot make-jpkg jdk-6-linux-i586.bin
    Finally install it
    Code:
    sudo dpkg -i sun-j2sdk1.6_1.6.0_i386.deb
    Update the alternatives
    general for jre
    Code:
    sudo update-alternatives --config java
    sudo update-alternatives --config javaws
    sudo update-alternatives --config firefox-javaplugin.so
    sdk alternatives
    Code:
    sudo update-alternatives --config javac
    sudo update-alternatives --config rmiregistry
    sudo update-alternatives --config rmic
    sudo update-alternatives --config rmid
    Better check all your alternatives. I prefer to leave the jar tool with gcj as this native and has no new features.
    for sun java
    Code:
    ls -la /etc/alternatives/ | grep j2
    and for gij stuff
    Code:
    ls -la /etc/alternatives/ | grep java
    Have fun with mustang
    Attached Files Attached Files
    Last edited by olaf-g; December 20th, 2006 at 12:16 PM. Reason: attached java-package patched

  10. #10
    Join Date
    Sep 2005
    Location
    indonesia
    Beans
    200
    Distro
    Ubuntu

    Re: Self made package is very easy...

    failed here :
    after doing this
    fakeroot make-jpkg jre-6-linux-i586.bin
    .....
    .....
    Done.

    Testing extracted archive... okay.

    cat: /usr/share/java-package/sun-j2re1.6/install: No such file or directory

    Aborted (/usr/share/java-package/sun-j2re1.6/install).

    Removing temporary directory: done
    whatś wrong. help please..!!

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •