Sunday, May 15, 2016

How to Install Apache Tomcat 8 and Get Started with Java Servlet Programming

This practical can be completed in a 3-hour session.
This installation and configuration guide is applicable to Tomcat 7 and 8, and possibly the earlier versions.
Take note that Tomcat 8 requires JDK 1.7. It will NOT work with JDK 1.6. If your JDK is below 1.7, upgrade it (See JDK How-To). You can check your JDK version via command "javac -version".


Writing your First Java Program in Eclipse

Step 0: Launch Eclipse
  1. Start Eclipse by running "eclipse.exe" in the Eclipse installed directory.
  2. Choose an appropriate directory for your workspace (i.e., where you would like to save your files).
  3. If the "Welcome" screen shows up, close it by clicking the "close" button.
Step 1: Create a new Java Project

How to Install NetBeans on Mac

To use NetBeans for Java programming, you need to first install JDK.
To install NetBeans:
  1. Download NetBeans from http://netbeans.org/downloads/. Choose platform "Mac OS X" ⇒ "Java SE" (e.g., "netbeans-7.x-ml-javase-macosx.dmg").
  2. Double-click the download Disk Image (DMG) file.
  3. Double-click the "NetBeans 7.x.mpkg", and follow the instructions to install NetBeans. NetBeans will be installed under "/Applications/NetBeans".
  4. Eject the Disk Image (".dmg").
You can launch NetBeans from the "Applications".
Notes: To uninstall NetBeans, drag the "/Applications/NetBeans" folder to trash.

How to Install Eclipse on Mac

To use Eclipse for Java programming, you need to first install JDK.
To install Eclipse:
  1. Download Eclipse from http://www.eclipse.org/downloads/. Choose "Mac OS X" ⇒ "Eclipse IDE for Java Developers" (or "Eclipse Classic"). You will receive a TAR file (e.g., "eclipse-java-juno-SR1-macosx-cocoa-x86_64.tar.gz") in "~/Downloads" folder.
  2. Double-click the downloaded TAR file to expand it into an folder called "eclipse".
  3. Drag the expanded "eclipse" folder to the "Applications" folder.
To start Eclipse, open the "eclipse" folder and click on the "Eclipse" icon. You may drag the "Eclipse" icon to the dock.
Notes: To uninstall Eclipse, drag the "/Applications/eclipse" folder to trash.

How to Install Eclipse 4.5 (Mars) for Java

1.1  For Windows

Step 0: Install JDK
To use Eclipse for Java programming, you need to first install Java Development Kit (JDK).
Step 1: Download
Download Eclipse from http://www.eclipse.org/downloads. For beginners, choose "Eclipse IDE for Java Developers" (32-bit or 64-bit) (e.g., "eclipse-java-luna-SR1a-win32-x86_64.zip").
Step 2: Unzip
To install Eclipse, simply unzip the downloaded file into a directory of your choice (e.g., "d:\myproject").
There is no need to run any installer. Moreover, you can simply delete the entire Eclipse directory when it is no longer needed (without running any un-installer). You are free to move or rename the directory. You can install (unzip) multiple copies of Eclipse in the same machine.

How to Install JDK 8 on Ubuntu

There are several JDK implementations available for Linux, such as Oracle JDK, OpenJDK, Sun JDK, IBM JDK and GNU Java Compiler. We shall choose the Oracle JDK 8. Ubuntu chooses OpenJDK as its default JDK, which is not 100% compatible with Oracle JDK.

How to Install JDK 8 and Get Started with Java Programming

Java Development Kit (JDK), officially named "Java Platform Standard Edition (Java SE)", which is freely available from Sun Microsystems (now part of Oracle), is needed for writing Java programs. The mother site for JDK (Java SE) is http://www.oracle.com/technetwork/java/index.html.
"JDK" or "JRE"?
JRE (Java Runtime) is needed for running Java programs. JDK (Java Development Kit), which includes JRE plus the development tools (such as compiler and debugger), is need for writing as well as running Java programs. Since you are supposed to write Java Programs, you should install JDK, which includes JRE.

The top 11 Free IDE for Java Coding, Development & Programming

At IDR Solutions we spend a lot of our time working with Java as our Java PDF Library, Java Image Library and PDF to HTML5 Converter are written in Java.
Our developers spend alot of time buried in java code and we use a a variety of different IDE’s (Intergrated Development Environment) to develop Java Code, so I thought it would be good to compile a list of the best free IDEs out there for Java Programmers, developers and coders.
In this article I will be taking a look at 11 different IDE’s, some are used by us at IDR Solutions and others that should be worth considering if you like to experiment with alternative Java IDEs. Everyone has different requirements and we feel one of the strengths of the Java world is the choice available.
These IDEs offer a variety of features, like: building Java applications, TestNG, debugging, code inspections, code assistance, JUNIT testing, multiple refactoring, visual GUI builder and code editor, Java, Maven build tools, ant, do data modelling and build queries, and more.

What is Java technology and why do I need it?


Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
Is Java free to download?
Yes, Java is free to download. Get the latest version at java.com.
If you are building an embedded or consumer device and would like to include Java, please contact Oracle for more information on including Java in your device.
Why should I upgrade to the latest Java version?
The latest Java version contains important enhancements to improve performance, stability and security of the Java applications that run on your machine. Installing this free update will ensure that your Java applications continue to run safely and efficiently.


MORE TECHNICAL INFORMATION

What will I get when I download Java software?
The Java Runtime Environment (JRE) is what you get when you download Java software. The JRE consists of the Java Virtual Machine (JVM), Java platform core classes, and supporting Java platform libraries. The JRE is the runtime portion of Java software, which is all you need to run it in your Web browser.
What is Java Plug-in software?
The Java Plug-in software is a component of the Java Runtime Environment (JRE). The JRE allows applets written in the Java programming language to run inside various browsers. The Java Plug-in software is not a standalone program and cannot be installed separately.
I have heard the terms Java Virtual Machine and JVM. Is this Java software?
The Java Virtual Machine is only one aspect of Java software that is involved in web interaction. The Java Virtual Machine is built right into your Java software download, and helps run Java applications.

                                                         Source : https://java.com/en/download/faq/whatis_java.xml