Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Monday, 4 March 2013

How to install Java 7 in Ubuntu


Java is a programming language and computing platform first released by Sun Microsystems in 1995. It is the underlying technology that powers state-of-the-art programs including utilities, games, and business applications. Java runs on more than 850 million personal computers worldwide, and on billions of devices worldwide, including mobile and TV devices.





Ubuntu is Fast, secure and stylishly simple, the Ubuntu operating system is used by 20 million people worldwide every day.









Prepare your Ubuntu

First you need to remove previous openjdk  version from your system, for this run the following command from your terminal

sudo apt-get purge openjdk*

If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update


Install java 7 in ubuntu 12.04

Open the terminal and run the following commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer 



Enjoy Coding ....... :)
Plz share your comments .....

Sunday, 3 March 2013

Getting Started and Installing Java.

How to Download and Install Java.

Your Boss gives you a call at the last moment - as usual. You have 20 minutes to write a new web page that gives users an overview of your company's products. Knowing how well java works in such situations, you can choose java as your language of choice to get the task done.

Of course, you've got to make sure you have it before you can use it. So, its time to download and install java.

Click Here to download Java.
Follow the instructions:

1. Click on Agree and Download java button to download java.
2. The file download dialog appears, Click on the save button.
3. Double-Click on the file downloaded.

4. Confirm and proceed with the installation.
5. Few dialogs confirm the last steps of the installation process.

6.  Click Close on the last dialog.

This will complete Java installation process.

Please Note: You need to restart your browser to complete the java installation process.

To verify your machine can find java tools, including the java compiler itself, you need to make sure bin directory is in your computer's path.


In Windows follow the steps to set PATH in system variables in java:

1. Open the start menu and select Settings| Control Panel. Double click the System icon. 

2. In the System Properties dialog box, click the Advanced tab followed by the Environment Variables button.

3. Click the PATH variable.

4. Edit the PATH setting the way you want it. modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.

To verify Whether java is successfully installed. 

1. To find out if the java executable is in your PATH, execute (In the command prompt)
:  
java -version


Hope you guys find this use full...(-: