PDA

View Full Version : Java Runtime Environment (JRE) 6



yopnono
December 11th, 2006, 10:19 PM
It's out now:
Java Runtime Environment (JRE) 6

http://java.sun.com/javase/downloads/index.jsp

K.Mandla
December 11th, 2006, 10:48 PM
I wonder if -- or when -- it will hit the repositories?

hanzomon4
December 12th, 2006, 01:48 AM
How do you install with out the .deb, Also will this java make java apps "faster" the current one drags *** with apps like azureus

kuja
December 12th, 2006, 04:27 AM
hanzomon4:

Download the .bin file to your home folder, then, pull up the ever-handy shell:



chmod +x j??-6-linux-*.bin
sudo ./j??-6-linux-*.bin
sudo cp j??1.6.0 /usr/lib/jvm/java-1.6.0-sun
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-1.6.0-sun/jre/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/java-1.6.0-sun/jre/bin/java


I'd think that would be copy and pastable. I'd think, what a silly thing to do.

Polygon
December 12th, 2006, 04:32 AM
i cant wait until java comes preinstalled in ubuntu and other distros now that it is open sourced

but this will hold me over for now

Boris2
December 12th, 2006, 09:50 AM
i cant wait until java comes preinstalled in ubuntu and other distros now that it is open sourced
AFAIK java 6 isn't open sourced, the opened the java 7 tree.

Anyway, as long as some important parts are missing (I'm thinking of the whole classpath) it would be senseless to include the opened java.

So I think it'll take a long time for open source java to hit the repos.

Edit: I used this (http://ubuntuforums.org/showpost.php?p=1307829&postcount=14) to install it. Worked great with the correct filename.

GarethMB
December 13th, 2006, 07:21 PM
It'd be nice if someone who's done this can write a shell script :)

Kimm
December 13th, 2006, 07:46 PM
Does anyone experiance any performance gain using Java 6?

Boris2
December 14th, 2006, 10:20 AM
Does anyone experiance any performance gain using Java 6?
I havenät tested, but there should be, because HotSpot was signifantly improved:
http://weblogs.java.net/blog/opinali/archive/2005/11/mustangs_hotspo_1.html


It'd be nice if someone who's done this can write a shell script :)
Download this (http://ubuntuforums.org/attachment.php?attachmentid=21024&stc=1&d=1166087751) patch. (No guarantee for this to work, use at your own risk)

cd /usr/share/java-package/
sudo patch -p 1 </path/to/java-package_mustang.txt
cd
fakeroot make-jpkg jdk-6-linux-i586.bin
sudo dpkg -i sun-j2sdk6.0_6.0.0_i386.deb
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar
# etc

fede
December 14th, 2006, 02:32 PM
Following Kuja's procedure, I did some minor changes to the steps in his code that didn't work for me. This is the code that I used:



chmod +x j??-6-linux-*.bin
sudo ./j??-6-linux-*.bin
sudo mkdir /usr/lib/jvm
sudo mkdir /usr/lib/jvm/java-1.6.0-sun
sudo cp j??1.6.0 /usr/lib/jvm/java-1.6.0-sun/jre -r
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-1.6.0-sun/jre/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/java-1.6.0-sun/jre/bin/java
java -version


You will have to accept sun's license.
This worked fine in a clean Edgy install. Thanks Kuja for your help!

sabitha
December 22nd, 2006, 07:03 AM
Following Kuja's procedure, I did some minor changes to the steps in his code that didn't work for me. This is the code that I used:



chmod +x j??-6-linux-*.bin
sudo ./j??-6-linux-*.bin
sudo mkdir /usr/lib/jvm
sudo mkdir /usr/lib/jvm/java-1.6.0-sun
sudo cp j??1.6.0 /usr/lib/jvm/java-1.6.0-sun/jre -r
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-1.6.0-sun/jre/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/java-1.6.0-sun/jre/bin/java
java -version


You will have to accept sun's license.
This worked fine in a clean Edgy install. Thanks Kuja for your help!
didnt work :(
admini@ubuntu:~$ java -version
bash: java: command not found

foureight84
December 22nd, 2006, 08:12 AM
does this new version fix that blank app screen in java apps that uses swing when running beryl?