retitle 409302 update-java-alternatives: wrong syntax in README.alternatives clone 409302 -1 reassign 409302 sun-java5 reassign -1 sun-java6 thanks
On Tuesday 06 February 2007 15:43, Steve Langasek wrote: > On Thu, Feb 01, 2007 at 10:32:24PM +0100, Nicolas DEGAND wrote: > > After migrating from java 1.5 to java6, my jre was not > > working anymore in my browser, complaining it could not find the java > > binary. After following the symlinks, I found out that > > /etc/alternatives was still pointing to java 1.5. > > /usr/share/doc/sun-java6-bin/README.alternatives said that I should > > type (this should probably been done automagically during upgrade and I > > guess it has been designed to be this way, but it seems flawed) > > > > > > update-java-alternatives --jre java-6-sun > > > > But the script does not work (it only prints the help messages). > You're getting the help message because you're using an invalid syntax. The command shown in the documentation at /usr/share/doc/sun-java[56]-bin/README.alternatives is wrong. The correct command is update-java-alternatives --jre --set java-6-sun This works for me with java-1.5.0-sun, java-6-sun, and java-gcj (modulo bug #409901). See man update-java-alternatives for more detailed info. Matthias when you update README.alternatives, could you add a pointer to the man page? HTH Andrew V. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]