Sunday, December 19, 2010

What is Java Update? " by Oracle.com"

What is Java Update?


This article applies to:
  • Platform(s): All Platforms
  • Browser(s): All Browsers

This page describes the Java Update feature with these sections:
  1. What is Java Update?
  2. What does it do?
    1. Notification of a new update
    2. Install the new update
  3. Configure Java Update
    1. Automatic update feature
    2. Change the notification options
    3. Change the update schedule
    4. Manual update feature


I. What is Java Update?

The Java Update is a feature that keeps your computer up-to-date automatically with the latest Java releases. Installing the Java Runtime Environment automatically installs the Java Update feature.

The Java Update feature connects to java.com at a scheduled time and checks to see if there is an update available.

II. What does it do?
  1. Notification of a new update
    Whenever there is an update available, a tool tip balloon appears as below:
Balloon: New updates are ready to download

  1. Install the new update
    After the download is complete, a tooltip balloon notifies you that the update is ready for installation.
    1. Click on the balloon to start the installation process.
Balloon: New updates are ready to install

    1. To start the install, click Install. Otherwise, click Remind Me Later to install the update at a later time.
Ready to Install - Java Update

    1. If you click Install, an InstallShield wizard appears and the installation process begins.
Installation Progress

      When the installation is complete, a dialog box appears:
Installation Completed dialog box

    1. Click Finish to complete the installation.


III. Configure Java Updates
  1. Automatic Update Feature

  2. Note: This feature is available only on Windows XP, 2003, 2000 (SP2 or higher) and set by default for these operating systems.
    1. Click Start > Settings > Control Panel.
    2. Double-click Java icon. The Java Control Panel appears.
    3. Click the Update tab.
      Note: The Update tab may not be available if your network administrator has disabled the Java Update feature during installation.
    4. To enable Java Update to automatically check for updates, select the Check for Updates Automatically check box.
    5. To disable Java Update, un-select the Check for Updates Automatically check box.
  1. Change the notification options

  2. There are two notification options:
    1. Before installing: Use this option to download automatically and be notified before installing the Java update.
    2. Before downloading and before installing: This is the default option. Use this option to be notified before downloading and installing the Java update.
  1. Change the update schedule
    1. You can schedule checking for the Java updates at a desired frequency. To do this, click Advanced.
Scheduling Java update
    1. The Automatic Update Advanced Settings dialog box appears.
    2. Based on your preference, you can select the frequency to be daily, weekly, or monthly.
    3. You can choose the date and time for the Java Update.
    4. Click OK. The Java Update scheduler checks for newer Java updates at the scheduled frequency and notifies you.
Automatic update advance settings dialog box
  1. Manual Update Feature

  2. You can manually check for an update any time by clicking on Update Now.
Manual update feature

Java Current Timestamp

package utils;

import java.util.Calendar;

public class JavaCurrentTimestamp {

/**
* @param args
*/
public static void main(String[] args) {
// create a java calendar instance
Calendar calendar = Calendar.getInstance();

// get a java.util.Date from the calendar instance.
// this date will represent the current instant, or "now".
java.util.Date now = calendar.getTime();

// a java current time (now) instance
java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());

System.out.println("Current Timestamp :"+currentTimestamp);

}

}

/**

####### OUT PUT ###########
Current Timestamp :2010-12-20 12:13:24.164

*/