Ubuntu 10.04 (Lucid Lynx) and Java
Summary: I just made a mildly unpleasant discovery about Ubuntu Lucid Beta 2. It's late (or early, depending on how you look at it), I'm tired, and I'm not sure that this actually affects many people.
I just made a mildly unpleasant discovery about Ubuntu Lucid Beta 2. It's late (or early, depending on how you look at it), I'm tired, and I'm not sure that this actually affects many people. So I am going to make a very brief mention of the problem here. If you are affected by this, and need more information that I am giving, feel free to ask.
sun-java6 is no longer in the standard repositories. Installing ubuntu-restricted-extras will get you openjdk6 and icedtea, NOT Sun java6. There are still some significant applications, especially at the corporate security level, which do not work with openjdk and/or icedtea. To get around this problem, you have to remove openjdk and icedtea, and install sun-java6 from the "partner" repository.
jw
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.
Talkback
OpenJDK is in a mostly useable state, exposing it to a wider audience to get some final bugs fixed is sensible. At least Canonical is wise enough to not push it for ideological reasons and didn't do it too prematurely. Remember, Lucid is an LTS, so going with OpenJDK might make long term support easier than with a proprietary Sun Java.
@inetken: one of the reasons I tend to install and use Linux Mint more often than Ubuntu is that not only is Sun Java the default in the repository, it is pre-installed in the base system. I hope it stays that way with the Mint 9 distribution that will be based on Ubuntu 10.04.
@GhostRaven: I don't recall for sure if openjdk/icedtea was installed by default, of if it came in when I installed "ubuntu-restricted-extras", which I always do as one of the first steps after completing a fresh installation. From what you say, perhaps it was the latter.
@makitso: I didn't have any problem with the ATI driver on my HP dv2-1010ez, which has an ATI Mobility Radeon 3410. It sounds like other ATI adapters might not be so fortunate.
@1000030281: I don't agree, particularly in the case of Ubuntu. You state the reason in your comment - "OpenJDK is in a mostly useable state". Mostly useable is simply not good enough. Particularly in this case, because the "problem" with the very commonly used Juniper Networks client has been known for quite a long time, and this client is very commonly used in corporate environments. The result will give Ubuntu an unnecessary black eye. I hope that they reconsider before the final 10.04 release, but I suspect that it is too late in the development cycle for that. The fact that it is an LTS release makes it even worse, in my opinion.
@ChiefH: Make sure that openjdk is not installed - you probably know this, but just in case you can try about:plugins in FF3.6 to see what version, if any, is installed. If openjdk is installed, you have to either remove it or change the "alternatives" to set Sun Java as the default.
jw
sun-java6-bin
sun-java6-jre
sun-java6-plugin
Once these are installed, open terminal and paste the following command (without quotes):
"sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50"
Hit Enter and you should be good to go now. Java should show up under "Plugins" in Firefox's "Add-on Manager" (restart Firefox if it happened to be up).
Get the latest version of JDK from http://sun.com
I took from JDK bundled with Netbeans
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u20-nb-6_8-linux-ml.sh?BundledLineItemUUID=COuJ_hCyMXEAAAEoLyVwTbz.&OrderID=5HaJ_hCywVUAAAEoJCVwTbz.&ProductID=tXFIBe.nY_cAAAEoMrdvkQJ.&FileName=/jdk-6u20-nb-6_8-linux-ml.sh
Save the file at a known place.
After that select the permissions tab and make sure that the check box is marked selected for "Allow executing file as program".
press close and now double click it and you will see a dialog box, select the first option of run in terminal.
After the installation if you want to run netbeans then open the terminal client
go the directory where netbeans is installed.
in my case it was installed in /home/kalyan/netbeans6.8
now go to bin directory.
so now I am in the following directory
$home/kalyan/netbeans6.8/bin
type sudo apt-get install netbeans
type the password when asked.
Now after this process netbeans must be in Applications->Programming->Netbeans 6.8
Enjoy...:)
Hope this may help few.
Kalyan