#StoneProfitsSystem


Java Environment Setup

What is Java ?
  • Java is a programming language and a platform.
  • Java is a high level, robust, secured and object-oriented programming language.
  • Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform.

Types of Java Applications :

1) Standalone Application:
It is also known as desktop application or window-based application. An application that we need to install on every machine such as media player, antivirus etc. AWT and Swing are used in java for creating standalone applications.

2) Web Application:
An application that runs on the server side and creates dynamic page, is called web application. Currently, servlet, jsp, struts, jsf etc. technologies are used for creating web applications in java.

3) Enterprise Application:
An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing and clustering. In java, EJB is used for creating enterprise applications.

4) Mobile Application:An application that is created for mobile devices. Currently Android and Java ME are used for creating mobile applications.


Tools:
1. Java Software Development Kit:
  • SDK (formerly known as the JDK - Java Development Kit) is the most commonly used tool to compile and run Java programs. 
  • Download the SDK from the Oracle website. < http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html >
  • After downloading, Now begin the installation process.
  • Now we need to set the environment path in the machine, by looking into system properties.
After setting up with the path, Check java is installed in a right way or not, As shown in the below figure.

Text Editors:
  • Text editors are used to write the source programs. Some of them link directly to a compiler, but often you will run the compiler as a separate step to compile the source program.
Examples: Notepad, Notepad++, EditPlus...and many more.



How to Run Java Program:


Step 1: Save the program, with ".java" extension .

Step 2: Load the Program in command prompt as shown in below steps.




 

No comments:

Post a Comment