Showing posts with label JAVA. Show all posts
Showing posts with label JAVA. Show all posts

Java - Environment Setup

{Regional|Localized|Native} Environment Setup
If you are still willing to set up your environment for Java programming {vocabulary|terminology|dialect}, then this section {courses|books|leads} you {how} to down load {and place|make} up Java on your machine. Following are the procedure for {arranged|established|placed} up the environment.

Java SE is freely available from the link Down load Java. {You are able to|You may} download a version based on your operating system.

Follow the instructions to download Java and run the. exe to install Java on your machine. Once you installed Java on your machine, you will need {to create|to put|setting} environment variables to {point out|indicate} correct installation {web directories|internet directories|sites} -

Setting Up the Path for {Home windows|House windows|Glass windows}
{Presuming|Supposing|If, perhaps} you have installed Java in c: \Program Files\java\jdk directory -

Right-click on 'My Computer' and choose 'Properties'.

Click on the 'Environment variables' button under the 'Advanced' tab.

{Right now|Today|At this point}, alter the 'Path' {adjustable|varying|changing} in order that it also contains the {route|way|course} to the Java exe. Example, if the {route is|way is|course is} currently set to 'C: \WINDOWS\SYSTEM32', then change your way to read 'C: \WINDOWS\SYSTEM32; c: \Program Files\java\jdk\bin'.

Setting Up {the road|the way} for Linux, UNIX, Solaris, FreeBSD
Environment variable {ROUTE|WAY|COURSE} should be set to {point out|indicate} where the Java binaries have been installed. Refer to your {covering|cover|layer} documentation, if you have trouble doing this.

{Case in point|Case|Model}, if you use {party|gathering} as your shell, then you would add {the next|the subsequent|this} line to the end of your '. bashrc: export PATH = /path/to/java: $PATH'

Popular Java {Publishers|Writers}
{To create|To publish|To write down} your Java programs, you will {desire a textual content|desire a text message} editor. There are even more {superior|complex} IDEs available in the market. {Yet|Nevertheless|Although} for now, you can consider one of the following -

Notepad - On Windows machine, you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.

Netbeans - A Java IDE that is open-source and free {which is often|that can be} downloaded from https://www.netbeans.org/index.html.

{Over shadow|New moon|Oscurecimiento} - A Java GAGASAN developed by the {over shadow|new moon|oscurecimiento} open-source community and is downloaded from https://www.eclipse.org/.

{Exactly|Specifically|Accurately} what is Next?
{Following|Subsequent|Up coming} chapter {will give you|provides you with} how to write and run your first Java program and some of the important basic syntaxes in Java {required for|necessary for|essential for} developing applications.

JAVA-Overview

Java programming language was {formerly|at first} developed by Sun Microsystems {that was|that has been|which has been} initiated by {Wayne|Adam|David} Gosling and released in 1995 as core {element|part|aspect} of Sun Microsystems' Java platform (Java 1 ) 0 [J2SE]).

The latest release of the Java Standard {Release is|Model is|Copy is} Java SE {eight|almost eight|almost 8}. {With all the|Together with the|While using} advancement of Java {as well as|as well as its|and its particular} widespread popularity, multiple configurations were built to suit {various kinds|different kinds} of {systems|programs|websites}. For example: J2EE for Enterprise Applications, J2ME for Mobile Applications.

{The brand new|The newest|The modern} J2 versions were renamed as Java SE, Java EE, and Java ME correspondingly. Java is {going to|sure to} be Write Once, Run Everywhere.

Java is -{Thing|Subject|Target} Oriented - In Java, everything is an {Thing|Subject|Target}. Java can be easily extended since it is based on the {Thing|Subject|Target} model.

Platform Independent - Unlike many other {development|encoding|coding} languages including C and C++, when Java is compiled, {it is far from|it is not necessarily|not necessarily} compiled into platform specific machine, {somewhat|alternatively} into platform independent octet code. This byte code is distributed over the web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on.

Simple - Java is designed to be easy to learn. If you be familiar with basic concept of OOP Java, it would be easy to master.

Secure - With Java's secure feature it {allows|permits} {to build up|to produce|to formulate} virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.

Architecture-neutral - Java compiler generates an architecture-neutral object file format, which makes the compiled code executable on many cpus, with the {existence|occurrence} of Java runtime system.

Lightweight - Being architecture-neutral and having no implementation {reliant|based mostly|centered} aspects of the {standards|specs|requirements} makes Java portable. Compiler in Java is written in ANSI C with a clean portability border, which is a POSIX subset.

Robust - Java makes an attempt to eliminate error prone situations by emphasizing mainly on compile time error {looking at|examining|checking out} and runtime checking.

Multithreaded - With Java's multithreaded feature it is possible to write programs that can perform many {jobs|duties|responsibilities} simultaneously. This design feature allows the developers {to create|to set up} interactive applications that can run smoothly.

Interpreted - Java byte code is translated on the {travel|take flight|soar} to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the {connecting is|relating is|backlinks is} an incremental and light-weight process.

{Top rated|High end|Powerful} - With the use of Just-In-Time compilers, Java {allows|permits} high performance.

Distributed - Java is {created for|made for|suitable for} the distributed environment of the internet.

Dynamic - Java is considered to be more dynamic than C or C++ since it is designed to {change|modify|adapt} to an evolving environment. Java programs can {bring|hold|take} {considerable|substantial|intensive} amount of run-time information {which you can use|you can use|which can be used} to {confirm|validate|check} and resolve accesses to objects on run-time.

{Background|Record} of Java
James Ryan gosling initiated Java language {task|job} in June 1991 for use in one of his many set-top {package|container|field} projects. The language, {at first|in the beginning|primarily} called 'Oak' after an oak tree that {was|was standing|endured} outside Gosling's office, also went by the name 'Green' and {wound up|finished up|ended up being} later being renamed as Java, from {a listing of|a set of} random words.

Sun released the first public implementation as Java 1. 0 in 95. It promised Write When, Run Anywhere (WORA), providing no-cost run-times on popular platforms.

On 13 {Nov|The fall of|Late}, 2006, Sun released much of Java as free and open source software under the {conditions|phrases|words} of the GNU General {General public|Open public|Community} License (GPL).

On {eight|almost eight|almost 8} May, 2007, Sun {completed|done} the process, making {all|most of|every one of} Java's core code free and open-source, aside from {a little|a tiny} portion of code {that|where} Sun did not hold the copyright.

Equipment You Will Need
{Intended for|To get|Pertaining to} performing the examples {talked about|mentioned|reviewed} in this tutorial, you will {require a|have to have a|desire a} Pentium 200-MHz computer with {a minimum amount|a least|a nominal} of 64 MB of RAM (128 MB of RAM recommended).

 {Additionally, you will|You will additionally|You will probably} need the following softwares -

Linux 7. 1 or Windows xp/7/8 operating system
Java JDK 8
{Ms|Microsoft company} Notepad or any other text {publisher|manager}
This {guide|training|article} will provide {the required|the essential|the mandatory} skills to create GUI, {social networking|network|marketing}, and web applications using Java.
so we have skipped those examples.
public class MyFirstJavaProgram {

   public static void main(String []args) {
      System.out.println("Hello World");
   }
}


There may be a case that you do not {view the|start to see the|begin to see the} result of the compiled/executed code. Found in such case, you can re-try to compile and execute the code using execute button available in the compilation pop-up {windows|windowpane|home window}.

What is Next?
{An additional|One more|One other} chapter will guide you to how you can obtain Java {as well as|as well as its|and its particular} {paperwork|documents|records}. Finally, it instructs you {about how|how} to install Java and prepare an environment {to build up|to produce|to formulate} Java applications.

JAVA-Home

Java Tutorial

Java is a high-level {development|encoding|coding} language {formerly|at first} developed by Sun Microsystems and released in 1995. Java {operates|works} on a variety of platforms, such as {Home windows|House windows|Glass windows}, Mac OS, and the various versions of UNIX. This tutorial gives a complete understanding of Java.

This reference will take you through simple and practical approaches while learning Java Programming language.

Audience

This tutorial has been prepared for the beginners to help them understand the basic to advanced concepts related to Java Programming language.

Prerequisites

Before you start practicing various types of examples given in this reference, we assume that you are already aware about computer programs and computer programming languages.
Try following the example of sample code box −
public class MyFirstJavaProgram {

   public static void main(String []args) {
      System.out.println("Hello World");
   } }