Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Repositories & Backports
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Repositories & Backports
Need help with apt-get and updating Ubuntu? Post here..

 
Thread Tools Display Modes
Old December 11th, 2006   #1
rivasdiaz
5 Cups of Ubuntu
 
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
rivasdiaz is offline   Reply With Quote
Old December 12th, 2006   #2
samjh
Dark Roasted Ubuntu
 
samjh's Avatar
 
Join Date: Dec 2006
Location: Australia
Beans: 1,076
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.
samjh is online now   Reply With Quote
Old December 12th, 2006   #3
giorgosts
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 18
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 15th, 2006 at 07:20 PM..
giorgosts is offline   Reply With Quote
Old December 13th, 2006   #4
giorgosts
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 18
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.
giorgosts is offline   Reply With Quote
Old December 14th, 2006   #5
jan247
Just Give Me the Beans!
 
Join Date: Nov 2005
Beans: 51
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 8th, 2007 at 07:33 PM..
jan247 is offline   Reply With Quote
Old December 14th, 2006   #6
giorgosts
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 18
Re: Are we going to see Java SE 6?

Thanks ever so much
giorgosts is offline   Reply With Quote
Old December 17th, 2006   #7
ijanos
Just Give Me the Beans!
 
ijanos's Avatar
 
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
ijanos is offline   Reply With Quote
Old December 17th, 2006   #8
Hairy_Palms
Grande Half-n-Half Cinnamon Ubuntu
 
Hairy_Palms's Avatar
 
Join Date: Jul 2005
Location: London,England
Beans: 947
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
Hairy_Palms is offline   Reply With Quote
Old December 20th, 2006   #9
olaf-g
5 Cups of Ubuntu
 
olaf-g's Avatar
 
Join Date: Sep 2005
Location: Berlin, Germany
Beans: 16
Ubuntu 6.06
Send a message via ICQ to olaf-g
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
File Type: gz java-package-0.28ubuntu1.tar.gz (60.0 KB, 149 views)
__________________
lenovo thinkpad t61 6457CTO, 4GB, core2duo @2.4 GHz, hardy final 64 bit. Registered Linux User

Last edited by olaf-g; December 20th, 2006 at 07:16 AM.. Reason: attached java-package patched
olaf-g is offline   Reply With Quote
Old December 20th, 2006   #10
sabitha
Gee! These Aren't Roasted!
 
Join Date: Sep 2005
Location: indonesia
Beans: 197
Ubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to sabitha
Re: Self made package is very easy...

failed here :
after doing this
Quote:
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..!!
sabitha is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:18 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry