“I find Debian an outstanding distro for server needs with its latest version Etch nearly been released as of the day I’m writing this. Java 6 isn’t available from its repositories and I doubt it would for Etch. So it’s time to grab the situation into your hands and install it manually.”
You’ll find it in java-package and it is included in Etch.
AFAIK the current java-package does not support Java6 versions yet. Not the Sun version and not the IBM version.
As far as installing the Sun version goes, it is included in the official Debian non-free repositories, both for i386 and amd64. Testing only has Sun Java 5, while unstable also has Sun Java 6.
The article is actually giving bad advice. You can just install it from the repositories and configure the active java version with “update-alternatives”.
ruben@beast ~ $ apt-cache search sun-java
sun-java5-bin – Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture dependent files)
sun-java5-demo – Sun Java(TM) Development Kit (JDK) 5.0 demos and examples
sun-java5-doc – Sun JDK(TM) Documention — integration installer
sun-java5-fonts – Lucida TrueType fonts (from the Sun JRE)
sun-java5-jdk – Sun Java(TM) Development Kit (JDK) 5.0
sun-java5-jre – Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files)
sun-java5-plugin – The Java(TM) Plug-in, Java SE 5.0
sun-java5-source – Sun Java(TM) Development Kit (JDK) 5.0 source files
sun-java6-bin – Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-demo – Sun Java(TM) Development Kit (JDK) 6 demos and examples
sun-java6-doc – Sun JDK(TM) Documention — integration installer
sun-java6-fonts – Lucida TrueType fonts (from the Sun JRE)
sun-java6-jdk – Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre – Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)
sun-java6-plugin – The Java(TM) Plug-in, Java SE 6
sun-java6-source – Sun Java(TM) Development Kit (JDK) 6 source files
snowbender: AFAIK the current java-package does not support Java6 versions yet. Not the Sun version and not the IBM version.
I thought so, but don’t know. So, let’s try what worked previously with 1.5.0+ releases. Edit your /usr/share/java-package/sun-j2sdk.sh to include the following:
(“jdk-6-linux-amd64.bin”)
j2se_version=1.6.0
j2se_expected_min_size=45 # Size in MB of .bin
found=true
;;
Obviously this is untested. Anyway, it should give you a .deb-package you can install with dpkg -i and satisfy all depends.
EDIT: added “Size in MB”
Edited 2007-02-02 13:37
You’ll find it in java-package and it is included in Etch.
Sure, it’s there. Debian has everything and the kitchen sink but finding something is like an expedition to Mars in search of intelligent life.
Took me a while to find out how to install Java on Debian and I’m not exactly new to Linux.
Honestly, I don’t understand Debian at all.
Why have all these fancy scripts (more like a spagetti soup of scripts) when in the end they’re so complicated to use that it would be easier to do it manualy through the basic Linux features.
Update-alternatives is one good example of insane complexity and spagetti soup of scripts.
And with all these built-in scripts, Debian doesn’t even have a basic utility to choose which services to run at startup. You have to go find one, and install it from the repos. (at least that’s my experience after doing the install from the net-install cd.
I don’t understand this kind of news.Install jdk ? Just go to java site, download and run the script, or install from apt-get.How follows ? install photoshop cs2 on windows XP ?
Edited 2007-02-02 13:02
or otherwise you simply extract the dir, smash it into /opt, and set the apropriate environment variables.. will work for all dists, and isnt really a problem. except that it leaves deps unsolved. now i dont know how to work around that in debian, but any package manager should easily have an option to inject a package as installed.
Come on, you’re not going to convince me that you even bothered to try.
A very simple command installs it:
“sudo apt-get install sun-java6-jre”
Congratulations. Please switch to Ubuntu, they are more idiot-proof.
right, ubuntu is meant for those who can’t tell the difference between jdk and jre .
I doubt people who can’t even manage to install the damn thing could be people who need a jdk.