Starting People who belong to the world of programmers at some point we have had interest in programming in this language.
Knowing this high-level language today is indispensable, and it is required due to its good features and especially because it is cross platform (a program developed in Windows can be run on Linux).
To begin with the development of Java programs, we must have some software that allows us to:
1) Write code (known as source code)
2) Compile the source code (a code or bytecode bytes)
3) To interpret the bytecode (or run)
1) Write Code To write code in Java need a text editor such as Notepad (notepad).
2) Compile Code Compile Source the source code, we need to call the Java compiler: javac
.
This compiler will translate the code written in Java (source code) to a special kind of code known as bytecode
3) Interpret Bytecode To interpret the bytecode, we need the Java interpreter known the same name as the language: java
The interpreter will execute each command specified in the bytecode.
JDK (Java Development Kit) A program called JDK (Java Development Kit) which is an integrated program that includes the compiler and interpreter Java, plus other useful programs.
major programs included in the JDK are:
* Javac: the Java compiler.
* Java: JAVA is the interpreter.
* javadoc: generate the java class documentation for a program.
* Appletviewer: applet is a viewer to generate their previews, and an applet has no main method and can not run the java program.
* jar: to manipulate. Jar files (one file. Jar is a collection of Java classes and other files packaged into one).
* javah, that is a file header to write native methods.
* javap: To compile files compiled.
* Extcheck to check for conflicts jar.
To download and install the JDK, visit this post
JDK Installation on Windows An IDE for programming in Java: Netbeans After installing the JDK, we already have the software needed to program in Java ( have the compiler, interpreter and text editor), but writing the code in the editor,
compile the program from the command line , and then run it can be somewhat tedious.
To make things easier, there is a program called IDE (Integrated Development Environment) which is an integrated development environment which will allow you to write code , Compile and run, all in the same environment.
A well known and used IDE is Netbeans, which, particularly I usually use to date to develop my applications in Java.
To download and install Netbeans: check out this post
Installing Netbeans in Windows Now that you have installed the JDK and Netbeans can begin to develop Java programs.
I recommend reading the following post:
writing my first Java program