Advanced Java Programming

Image
                          Advanced Java Programming Advanced Java Programming :-   Introduction to advance java   As most of us already know that if we want to make normal applications it  can be easily built using core Java concepts. But, when it we need to develop web applications, advanced Java fundamentals, like JSP, Servlets, JDBC etc. needed, so to add capabilities and features of the application advance java is essential for developers. Through the motive of this blog is to explain about Advanced Java, I will be giving you a complete insight into the fundamental concepts of Advance Java. Figure - 1.2 If you want to see complete video on this please  have a look the video below.                              Learn with Resh u Advanced Java Programming Course ...

Install Java on Computer from the beginning!...



Install Java on Computer from beginning!...

     
First of all, you need to know which Operating system you need to install JAVA. There are 2 types of operating system I am discussing here given below.

1)    Windows
2)    MAC

Windows: -
Downloading and installing Java in windows is very easy and its does not costs anything. There are many ways to download Java for Windows
Online download: -
By this way you can use many online links or oracle website for downloading jdk of any version which you would like to download to your local system. But you need to have
Administrative permission to install Java on Microsoft Windows.


go to this link 




click on the jdk version you need to install. 



The File Download dialog box appears prompting you to run or save the download file 


To run the installer, click Run.
To save the file for later installation, click Save As. 

Choose the folder location and save the file to your local system. 

Note: Save the file to a known location on your computer, for example, to your desktop.

Double-click on the saved file to start the installation process.


The installation process starts. Click the Install button to accept the license terms and to continue with the installation. 






A few brief dialogs confirm the last steps of the installation process; click Close on the last dialog. This will complete Java installation process. 



By this way you will going to have jdk install In your local system. But you need to fix many things before using java in your system.
1.       Create JAVA_HOME environment variable.
2.       Add path variable.
Lets learn how to create JAVA_HOME variable.
First type env variable in search tab in start menu. You will find the environment variable window to open.
Click on the window and it will look like this see picture
                                                                           



Then click on Environment Variable button the a new window will open like below image.
                                                   
Click on new button and create JAVA_HOME variable like shown in the picture by entering these info
Given bellow.
                                                                                                            


Please write variable name as JAVA_HOME and variable value as Path to jdk folder and then click ok
By this way you will create JAVA_HOME variable.
Next step is to create path variable.
                                          

Ckick on path variable in the list and click edit and add JAVA_HOME AS shown in picture and click ok.
By this way you java will be install in the system properly.
For checking it please open command prompt and run command java -version  and you will get the java version installed in your system.
And for confirmation 







Mac:-

Java can be installed on from Mac versions 10.7.3 or later. A 64-bit browser for example Safari is required to run Oracle Java on Mac.

Install Java on Mac

Download the jre from 


Review and agree to the terms of the license agreement before downloading the file.

The Install Wizard displays the Welcome to Java installation screen. Click Next






Double-click the .pkg file to launch it


Double-click on the package icon to launch install Wizard



After the installation has completed, a confirmation screen appears. Click Close to finish the installation process.



Set JAVA_HOME environment variable on Mac OS X java_home mac os x

Here, we show you how to set $JAVA_HOME environment variable on latest Mac OSX.

Mac OSX 10.5 or later
In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/.

bash_profile or ~/.profile.
$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ source .bash_profile
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

And to confirm if java installed in Mac or not run this command

/usr/libexec/java_home -V

Matching Java Virtual Machines (3):

    1.7.0_05, x86_64:                "Java SE 7"                          

/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

    How to Install Java on You tube



                                           




Comments

Popular posts from this blog

Learn Complete OOPS Concepts in one Project

Spring Core