Wednesday Nov 26, 2008

Plug-in 2 - New/Old Plug-in's

With Plug-in 2(Java 6u10), a whole new experience comes into Java Plug-in. I have mentioned the new features of Plugin2 in some of my presentations of 6u10.

For detail, please visit this link :

Switching between old/new plugin:

Java Control Panel - Advanced - Java Plug-in - Enable the next gen plug-in.

(Check this link :

By default, it will take new plugin, but untick it for old plugin.

Tuesday Jul 01, 2008

BOJUG meet at Sun Campus

Here is my last week BOJUG meet slides. I have talked on Java SE6u10 features. Thanks to all the participants and organizers. Nice to see lot of Non-Sun people in Sun Campus to attend the meet.

Thursday Jun 19, 2008

6u10 features - Presentation

Here is the presentation I made for the BOJUG meeting. It's not the final presentation. Please provide suggestions. I have tried to cover some of the important features of 6u10.

Wednesday Jun 18, 2008

Java Deployment Toolkit - 6u10

Java Deployment Toolkit, yes again I am talking of 6u10. It deploy applets and applications to a large variety of clients with JS. I have written some one liner which has some great capability to do:

<script src="">

It looks small code but it can install the latest JRE on your machine. Just copy paste the code in a HTML page and run it. And here is the second one:

<script src=""></script>
    var list = deployJava.getJREs();
        var result = "";
           result = list[0];
        for (var i=1; i<list.length; i++) {
                result += ", " + list[i];
            alert("You have the following Java Platform(s) installed: \\n" + result);

This code will tell you the installed JRE's on your machine.  In all this game, the important thing is deployJava.js which has lot of other cool method. Check the link in the code for details :-). We just need to use those functions for our need. There are some better example is on sun site.

Saturday Jun 14, 2008

Add JRE/ Run Old JRE - 6u10 :)

Yesterday, I have started making a presentation on J2SE 6u10. And I will be like delighted again seeing the new features of Plug-in which we called Next Generation Plug-in. Some of the common problems I used to face while doing my job :

Installation and Un-Installation of JRE's - This was a region of major concern. Most of the time I never install JDK or JRE, I love to untar or unzip it, so that it will not play with my registry. But the problem with those when I run Applet. Untar JDK/JRE not used to be a suitable candidate for applet because it takes only the installed JRE. But now, we can point our applet to the untared/unziped JRE and it will all work. Uncheck all the other JRE's which is not required, run the applet. It will all rock :)

I have clicked on the Find button and added the JRE 1.7. Now, I unchecked all the other JRE and ran my applet. It will run on JRE 1.7 (Remember IE6+ and FF3 or + only)

Here is the snap shot of old Java Control Panel:

And now we will also get rid of running applet on older installed JDK/JRE. Initially it used to be if I have to check one applet on 2 different JRE, I have to install and uninstall it again. But now it all work with one checkBox option :)

Tuesday Jun 03, 2008

Draggable Applets - 6u10

JDK 6u10 is one of the major attractions in JavaOne 2008. 6u10 came with tons of features like:

1. Kernel JRE download

2. Draggable Applet

3. Improving JS support

4. Better Vista Support 

... and many more

I am here writing the MOST simple example for draggable applet. Off course, Hello World :-).  Here is the code:

import java.awt.\*;
import java.applet.Applet;

public class HelloWorld extends Applet {
    public void paint(Graphics g) {
        g.drawString("Hello World",50,50);
    } // end of paint
} // end of applet

One line code change in the HTML file:

<APPLET CODE="HelloWorld.class" WIDTH=200 HEIGHT=100>
<PARAM NAME="draggable" value="true"/>

And now you can see how applet will come out of the browser and runs as a different process. Closing browser will not going to make any effect on applet life cycle.

You can clearly see the MS Windows in background :) and a very cute close button with the applet, independent applet. And off course a different process in task bar.   


Vaibhav Hi, I am Vaibhav Choudhary working in Oracle with JDK team. This blog is all about simple concept of Java, JVM and JavaFX.


« November 2015