How to install java in order to create programs
WHAT IS JAVA? Java is a widely used language, including by a large number of professional programmers, making it a must-language now.
THE CHARACTERISTICS OF JAVA: The characteristics of Java are the following
– One of his greatest strengths is its excellent portability: Once you have created your program, it will work automatically with Windows, Mac, Linux, etc.
You can do many kinds of programs with Java: applications for your computer, applets, which are Java programs embedded in web pages and even applications for mobile devices with J2ME, and many others! As you can see, Java allows a large amount of different applications!
One of the leading principles of Java is its virtual machine: it ensures developers that all Java programs created will be used with all operating systems on which is installed a Java virtual machine. During the compilation phase of the source code, it takes an intermediate form called bytecode: the famous unintelligible code for your machine, but interpreted by the Java virtual machine. The machine has a name: it is more commonly referred to JRE (Java Runtime Environment). This tutorial will use a development tool or IDE (Integrated Development Environment).
HOW TO INSTALL THE JAVA TOOLS ON YOUR COMPUTER: First start by downloading the Java environment on the Oracle site. Choose the latest stable version.
CHOOSE JRE or JDK? You will now be offered to download either the JRE (Java Runtime Environement) or the JDK (Java Development Kit). The JRE contains everything needed to make your Java programs that can be executed on your computer; JDK, in addition to containing the JRE, contains everything needed to develop, compile … The Integrated Development Environement (IDE) already contains everything needed for the development and compilation, so you only need the JRE.
Check the box: “Accept License Agreement” and click the link for your operating system. A download popup should appear. It will offer you the following choices:
– J2SE (Java 2 Standard Edition): to develop applications such as Word, Excel, the suite OpenOffice.org, and so on
– J2EE (Java 2 Enterprise Edition): to develop Java web applications.
– J2ME (Java 2 Micro Edition) which enables the development of applications for mobile devices, such as smartphones, pads and so on.
ECLIPSE INTEGRATES DEVELOPMENT ENVIRONMENT: “Eclipse IDE” is a free development environment which allows to create programs in many programming languages (Java, C ++, PHP …). Eclipse IDE itself is mainly written in Java. It is recommended to download Eclipse IDE.
DOWNLOAD ECLIPSE IDE: Once the download page choose Eclipse IDE for Java Developers, choosing the Eclipse version for your OS (Operating System). Select the mirror you want to use for Eclipse. Now you just have to wait for the download.
Eclipse is the small software that will allow you to develop your applications or your applets, and also one that will compile all that. Your software will let your future translating Java programs byte code language, comprehensible only by your JRE, freshly installed. The specificity of Eclipse IDE is that its architecture is fully developed around the notion of plugin. This means that all the features are developed as plugins. If you want to add functionality to Eclipse, you must: download the corresponding plugin, copy the files specified in the specified directories and start Eclipse.
When you download a new plugin for Eclipse, it often appears as a folder containing generally two subfolders: folder “plugins” and “features” folder. These files exist in the Eclipse directory. So you have to copy the contents of your plugin files to the corresponding folder in Eclipse (plugins in plugins and features in features).
You should now have an archive containing Eclipse. Unzip it anywhere you want, enter this folder and run Eclipse. At startup, Eclipse will ask you which folder you want to save your projects; know that nothing prevents you to specify a folder other than the one proposed by default. Once that’s done, you arrive on the Eclipse home page.