You are on page 1of 33

DISTRIBUTED PROGRAMMING

(DSD117V)
DEV ENVIRONMENT SETUP

 Install Java Standard Edition (JDK 1.8)


 Install Wildfly 10
 Install NetBeans 8.2
 Install Maven build Management Tool
 Install ActiveMQ JMS engine
 Install Postgres Database
JDK 1.8 INSTALLATION
Download JDK 8 from the following site:
https://www.oracle.com/java/technologies/javase-downloads.html
If you do not know how to install it, please find the installation guide in the following url:
https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html
Once you have completed your installation, run the following command to verify that it is
was correctly installed. Here is the expected output from a Windows machine :
C:\> java –version
java version “1.8.0_11”
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
WILDFLY INSTALLATION
The JBoss WildFly application server can be downloaded for free from:
http://wildfly.org/downloads
Once the download has bee completed. To install WildFly is a piece of cake, it does not
require anything else besides unpacking the wildfly-10.0.0.Final.zip archive.
Windows users can simply use any uncompressing utility, such as built-in compressed
folders (in newer Windows releases), WinZip, WinRAR, or 7-Zip taking care to choose a
folder name that does not contain empty spaces and white spaces. Unix/Linux should
use the $ unzip wildfly-10.0.0.Final.zip unzip shell command to explode the archive.
Security warning Unix/Linux users should be aware that WildFly does not require root
privileges, as none of the default ports used by WildFly are below the privileged port
range of 1024. To reduce the risk of users gaining root privileges through WildFly, install
and run WildFly as a non-root user.
After you have installed WildFly, it is wise to perform a simple start up test to validate
that there are no major problems with your Java VM / operating system combination. To
test your installation, move to the bin directory of your JBOSS_HOME (the path to which
you have unzipped your application server) directory and issue the following command:
WILDFLY INSTALLATION
After you have installed WildFly, it is wise to perform a simple start up test to validate
that there are no major problems with your Java VM / operating system combination. To
test your installation, move to the bin directory of your JBOSS_HOME (the path to which
you have unzipped your application server) directory and issue the following command:
Standalone.bat #Windows users
$ ./standalone.sh #Linux/Unix users
WILDFLY INSTALLATION
The following is screenshot of a sample WildFly start-up console:
WILDFLY INSTALLATION
If you need to customize the start-up properties of your application server, open the
standalone.conf file (or standalone.conf.bat for Windows users), where the memory
requirements of WildFly have been declared. Here is the Linux core section of this file:
if [ “x$JAVA_OPTS” = “x” ]; then JAVA_OPTS=”-Xms64m -Xmx512m -
XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true” JAVA_OPTS=”$JAVA_OPTS
-Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -
Djava.awt.headless=true” else echo “JAVA_OPTS already set in environment; overriding
default settings with values: $JAVA_OPTS”

So, by default, the application server starts with a minimum memory requirement of 64
MB of heap space and a maximum of 512 MB. This will be just enough to get started;
however, if you need to run more robust Java EE applications on it, you will likely require
at least 1 GB of heap space or 2 GB or more, depending on your application type.
Generally speaking, 32-bit machines cannot execute a process whose space exceeds 2
GB; however, on 64-bit machines, there is essentially no limit to the process size.
WILDFLY INSTALLATION
To test if your server was started successfully, access the welcome page using the
following url:
http://localhost:8080

To stop WildFly send the interrupt signal with Crtl + C


NETBEANS INSTALLATION
The development IDE to be used in this course is NetBeans and this can be downloaded
from the following url :
https://netbeans.org/downloads/old/8.2/
NETBEANS INSTALLATION
Download the option highlighted in red.
To install netbeans follow the instructions provided below:
Run the installer file. For windows users the file has .exe and linux users it has .sh
extension. Please note that wizard used if for netbeans 8.0.2 and not for 8.2 you are
required to install.

Click the customize button


NETBEANS INSTALLATION

Uncheck all items highlighted in red and click ok button


NETBEANS INSTALLATION

Uncheck all items highlighted in red and click ok button


NETBEANS INSTALLATION

This screen shows how you customized selections of items should look like.
NETBEANS INSTALLATION

Accept the terms and conditions to proceed and click the next button
NETBEANS INSTALLATION

Accept the terms in the license agreement to install Junit and click the next button
NETBEANS INSTALLATION

You can customize the installation location if the defaults are not desirable and click the
next button.
NETBEANS INSTALLATION

Click install button to install NetBeans.


You can also use the following link below provided by netbeans to guide you with
installation: https://netbeans.org/community/releases/82/install.html
MAVEN INSTALLATION
Maven is a build management tool. Please learn more about it. Maven can be
downloaded from the following site:
http://maven.apache.org/download.html
Download apache-maven-3.6.3-bin.zip
Once download has been completed, unzip the distribution archive to the directory in
which you wish to install apache-maven-3.6.3
The next step is to add the M2_HOME environment variable to your system so that it will
point to the folder where Maven has been unpacked or unzip.
Once the environment variable has been created, update the your environment PATH by
adding the Maven binaries to your system path. For example, on Windows platform, you
should include %M2_HOME%/bin in order to make Maven available on the command
line.
MAVEN INSTALLATION
To test your installation, run mvn –version command. The ouput of this command should
be look like the following:
Apache Maven 3.6.3 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: C:\Programs\Dev\apache-maven-3.6.3 Java version: 1.8.0_11, vendor: Oracle
Corporation Java home: C:\Programs\Java\jdk1.8.0\jre Default locale: en_US, platform encoding:
Cp1250 OS name: “windows 8.1”, version: “6.3”, arch: “amd64”, family: “dos”
ACTIVEMQ INSTALLATION
To install ActiveMQ is very simple. Download the archive from the following url link:
http://activemq.apache.org/activemq-5131-release

Download apache-activemq-5.13.1-bin.zip and unzip or unpack it in the directory to which


you would like to install it.
Once you are done with installation, go to the following directory path to start up the ActiveMQ
engine :

D:\dev\apache-activemq-5.13.2\bin\win64>activemq.bat if your OS is 64 bit

D:\dev\apache-activemq-5.13.2\bin\win32>activemq.bat if your OS is 32 bit

Please note that this is my installation directory path. Yours might be different unless you create the
directory path like mine
ACTIVEMQ INSTALLATION
To check if ActiveMQ is up and running, access the admin console using the following
url:
http://localhost:8161/admin/
Default username : admin
Default password : admin
POSTGRES DB INSTALLATION
Download PostgresSQL installation from the following url link:
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
Download postgresql-10.15
Once the download has been completed, run the installer file.

Click next button


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Enter your admin password and click next


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Click next button


POSTGRES DB INSTALLATION

Wait until installation is completed.


POSTGRES DB INSTALLATION

Click finish because you have just finished installing Postgres Database
POSTGRES DB INSTALLATION

Click cancel to exit.


POSTGRES DB INSTALLATION
Now that you are done installing Postgres, windows users can go to the programs menu
and run pgAdmin. pgAdmin is the database client through which you will be able to
manage the database instances you are going to install.

To login into pgAdmin console, you will need that admin password you captured during
the installation of your prostgres DB. So always remember that password.

You might also like