You are on page 1of 16

Local Environment Setup

If you are still willing to set up your environment for Java programming language, then this section guides you on how to download and set up Java on your machine. Following are the steps to set up the environment.

Java SE is freely available from the link Download Java. You can 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 set environment variables to point to correct installation directories −

Setting Up the Path for Windows

###pc:\Program Files\java\jdk directory −

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

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

Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program
Files\java\jdk\bin'.

Setting Up the Path for Linux, UNIX, Solaris, FreeBSD

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation, if you have trouble doing this.

Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH = /path/to/java:$PATH'

Popular Java Editors

To write your Java programs, you will need a text editor. There are even more sophisticated IDEs available in the market. But for now, you can consider one of the following −

Notepad − On Windows machine, you can use any simple text editor like Notepad, TextPad.

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

Eclipse − A Java IDE developed by the eclipse open-source community and can be downloaded from https://www.eclipse.org/.

Steps to Install Eclipse

We've recently introduced the Eclipse Installer, a new and more efficient way to install Eclipse. It is a proper installer (no zip files), with a self-extracting download that leads you through the installation process. For those who prefer not to use
the Installer, the packages and zip files are still available on our package download page.

1. Download the Eclipse Installer

Download Eclipse Installer from http://www.eclipse.org/downloads

Eclipse is hosted on many mirrors around the world. Please select the one closest to you and start to download the Installer

2. Start the Eclipse Installer executable

For Windows users, after the Eclipse Installer executable has finished downloading it should be available in your download directory. Start the Eclipse Installer executable. You may get a security warning to run this file. If the Eclipse
Foundation is the Publisher, you are good to select Run.

For Mac and Linux users, you will still need to unzip the download to create the Installer. Start the Installer once it is available.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
3. Select the package to install

The new Eclipse Installer shows the packages available to Eclipse users. You can search for the package you want to install or scroll through the list.

Select and click on the package you want to install.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
4. Select your installation folder

Specify the folder where you want Eclipse to be installed. The default folder will be in your User directory.

Select the ‘Install’ button to begin the installation.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
5. Launch Eclipse

Once the installation is complete you can now launch Eclipse. The Eclipse Installer has done it's work. Happy coding.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Required Software

The Java SE Development Kit (JDK) 8 is required to install NetBeans IDE. You can download the latest update of JDK 8 athttp://www.oracle.com/technetwork/java/javase/downloads.

The PHP and C/C++ NetBeans bundles only require the Java Runtime Environment (JRE) 8 to be installed and run. JDK 8 is required if you are planning to use any of the Java features.

JDK 8 is required to use JavaFX 8 features in NetBeans IDE 8.2.

Note:

JavaFX 8 is bundled with JDK 8 for Windows, Mac and Linux.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Unlike previous versions of NetBeans IDE, NetBeans IDE 8.2 does not require that you set up an "FX-enabled" Java platform in order to utilize JavaFX support in the IDE. You can develop JavaFX projects in the IDE if you install JDK
8.
To use JavaFX features in NetBeans IDE, we strongly recommend that you use JDK 8.

Installer Download Options

On the NetBeans IDE Download page, you can obtain one of several installers, each of which contains the base IDE and additional tools.

The following installers are available:

Java SE. Supports all standard Java SE development features as well as support for NetBeans Platform development and JavaFX 2.2 SDK (or newer) or JavaFX 8 SDK.
Java EE. Provides tools for developing Java SE and Java EE applications as well as support for NetBeans Platform development and JavaFX 2.2 SDK (or newer) or JavaFX 8 SDK. This download option also includes GlassFish Server
Open Source Edition 4.1.1, and Apache Tomcat 8.0.27 software.
HTML5/JavaScript. Provides tools for HTML5/Javascript development. Includes Java Runtime Environment and does not require a separate Java installation.
PHP. Provides tools for PHP 7 development, Zend and Symfony Framework support. Includes Java Runtime Environment and does not require a separate Java installation.
C/C++. Supports development in the C, C++, Qt, Fortran and Assembly languages. Includes Java Runtime Environment and does not require a separate Java installation.
###bThis is a full download option, which contains all the runtimes and technologies available for the NetBeans IDE.

###a href="https://netbeans.org/community/releases/82/install.html#top">top

Customizing Your Installation

If you download the download option, you can choose exactly what tools and runtimes to install. Click Customize at the Welcome page of the installer and select the features that you want to use. For more information,
see href="https://netbeans.org/community/releases/82/install.html Installing the Software.

If you want to add functionality to your NetBeans IDE configuration, use the NetBeans Plugin Manager. For example, assume that you start out by downloading and installing the PHP pack. You then decide that you want to try out the C/C++
functionality. To do this, go to the NetBeans Plugin Manager from the IDE (choose Tools > Plugins) and add the C/C++ pack to your existing installation.

There are several important notes about installation and configuration of some NetBeans IDE features:

Glassfish is provided with NetBeans IDE as a reference implementation of Java Enterprise Edition (EE). It is not intended for use in production environments. Application developers should ensure that any applications developed using
Glassfish as a reference version use up-to-date, secure cryptographic protocols and algorithms, and are tested accordingly, before deploying those applications in production. Note that the version of Glassfish provided with NetBeans
IDE is not up to date with security fixes and is provided as a convenience. As a consequence, NetBeans users should upgrade to the most recent version of Glassfish when deploying NetBeans IDE and should upgrade to new versions of
Glassfish whenever Glassfish distributions include new security fixes. Glassfish upgrade instructions are provided at My Oracle Support (MOS) note 2073920.1. GlassFish Server Open Source Edition 4.1.1 is included in the Java
EE and ###b download options but it is not installed by default from either of these options. To install GlassFish Server Open Source Edition 4.1.1, select the appropriate option below:
from the Java EE download, launch the installer and select the GlassFish Server Open Source Edition 4.1.1 checkbox at the Welcome page;
from the All download, launch the installer and select GlassFish Server Open Source Edition 4.1.1 in the Customize Installation dialog box.
You should change the default administrator password after you install the GlassFish server, To install Apache Tomcat, select the appropriate option below:
from the Java EE download, launch the installer and select the Apache Tomcat 8.0.27 checkbox at the Welcome page;
from the All download, launch the installer and select Apache Tomcat 8.0.27 in the Customize Installation dialog box.
For C/C++ development (applicable for the C/C++ and All downloads), you need to additionally install compilers and tools.
For HTML5 and JavaScript development for mobile devices (Android and iOS), you need to additionally install SDKs and other development tools for the target development platform. For more information,Mobile Browsers wiki page.
For OS X, you can customize the NetBeans IDE installation from the and Java EE downloads. The IDE installation from Java SE, HTML5/JavaScript, PHP, and C/C++downloads cannot be customized.
You can also download a platform-independent zip file and run the NetBeans IDE executable file. Note that the GlassFish Server Open Source Edition and Apache Tomcat are only available with platform-specific installers.
To make sample project templates unreachable in the NetBeans IDE installation, see the Hide Sample Projects FAQ page.

Starting the Download

1. Go to https://netbeans.org/downloads/.
2. In the upper right area of the page, select the language and platform from the drop-down list. You can also choose to download and use the platform-independent zip file.
3. Click the Download button for the download option that you want to install.
4. Save the installer file to your system.

Installing the Software

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Follow the instructions in this section to install the IDE on your system. These installation instructions apply to all supported platforms. For the list of supported platforms and system requirements, see the release notes.

Microsoft Windows and Linux

To install the software:

1. After the download completes, run the installer.


For Windows, the installer executable file has the .exe extension. Double-click the installer file to run it.
For Linux platforms, the installer file has the .sh extension. For these platforms, you need to make the installer files executable by using the following command: chmod +x <installer-file-name>. Type ./<installer-file-name> to run
the installer.
2. If you downloaded the All or Java EE bundle, you can customize your installation. Perform the following steps at the Welcome page of the installation wizard:
1. Click Customize.
2. In the Customize Installation dialog box, make your selections.
3. Click OK.
3. At the Welcome page of the installation wizard, click Next.
4. At the License agreement page, review the license agreement, click the acceptance check box, and click Next.
5. At the NetBeans IDE installation page, do the following:
1. Accept the default installation directory for the NetBeans IDE or specify another directory.

Note: The installation directory must be empty and the user profile you are using to run the installer must have read/write permissions for this directory.

2. (Applicable only to All or Java EE bundle.) Accept the default JDK installation to use with the NetBeans IDE or select a different installation from the drop-down list. If the installation wizard did not find a compatible JDK
installation to use with the NetBeans IDE, your JDK is not installed in the default location. In this case, specify the path to an installed JDK and click Next, or cancel the current installation. After installing the required JDK
version you can restart the installation.

Note: If the JDK version is older than the recommended JDK 8, download and install the latest JDK update from OS X

To install the software:

1. After the download completes, run the installer. The installer file has the .dmg extension.
2. On the panel that opens double-click the package icon. The package has the .pkg extension. The installation wizard starts.
3. Click Continue when the "This package will run a program to determine if the software can be installed." dialog box is displayed.
4. At the Introduction page of the installation wizard, click Continue.

Note: If the JDK version is older than the recommended JDK 8, download and install the latest JDK update from Platform-Independent Package

To run the software:

1. After the download of the platform-independent ZIP file completes, extract it to any folder on your system.
2. Run the executable file located in the netbeans/bin directory.
3. Accept the License Agreement.
4. Click Next. The NetBeans IDE installation starts.

Note: If a compatible JDK installation cannot be found, you might need to manually add a path to the JDK installation directory by doing the following:

1. Open the netbeans.conf file located in the netbeans/etc directory in a text editor.
2. Enter the location of a compatible JDK installation for the netbeans_jdkhome option. The default location in Windows is C:\Program Files\Java\jdk1.8.0 or similar.
3. Save the netbeans.conf file and run the executable file in the netbeans/bin directory.

Note: The GlassFish Server Open Source Edition and Apache Tomcat are available only with platform-specific installers.

Note: To use the GlassFish Server Open Source Edition and/or Apache Tomcat that are already installed on your machine, in the NetBeans IDE, click Servers on theTools menu. This displays the Add Server Instance Wizard
which helps to register an instance of the required web server with the NetBeans IDE.

Java Windows 10

Setting up java on Windows 10 is really easy, just follow the steps as follows:

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
1. Java download for windows 10

First step is to download java installation files from Oracle’s website. Java 9 is the latest version, so go to this link and accept the license agreement. Then click on the download link for windows as shown in below image and save the
file.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Note: If you are trying to install Java 8 or earlier, then you need to know whether your Windows 10 is 32-bit or 64-bit. It’s because there are two different installers for Windows as seen in this link for java 8 binaries.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
If your Windows 10 is 32-bit OS then download Windows x86 exe file, else download Windows x64 exe file.

If you are not sure of your Windows version, you can easily check it in Settings > System Settings > About.

1. Java Windows 10 installation steps

Next step is to run the downloaded java installer exe file. Just double click on it and follow the steps. Most of the time you don’t need to check anything and go with default selection, below are images from my installation screens. They
might differ little bit based on your java version installation but mostly it’s same as usual.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD

You might also like