The following instructions are for the Technologies of Internet applications course of DIT (ΤΕΔ). The instructions could be used by those who will follow either the JSLT/JSP/Servlet/MySQL path or the JSF/JEE/MySQL path (with or without JPA).
For Angular/REST/MySQL or React/REST/MySQL more steps are needed.
Summary of what you are going to install:
- Oracle Java JDK
- Java IDE (preferably Netbeans or IDEA)
- MySQL workbench
- double commander
- git (optional, install only if you already know how to use it)
- skype (optional)
Although you may use Windows or MAC OS as an operating system for your development computer, as a beginner it is recommended that you use a Linux-based distribution.
If you haven’t installed the OS yet read this article.
Here are the steps:
0) Prepare the operating system itself
If you already have an operating system installed do the necessary upgrades! If it is more than 3 major distributions behind, it is better to uninstall it completely and upgrade to the latest version.
If you don’t have an Operating System install the latest version of Ubuntu or Mint.
In both cases, backup all important files from your computer to external storage.
1) Set a root password that is easy to type and remember
Ok, some people may claim this is risky but remember that we are setting up a development computer for novices and for assisted coding. You shouldn’t have important/sensitive data placed on the computer we are going to use. If you have, you should backup them and if possible remove them from the laptop.
Here is a sample code that will change the root password (you will be prompt for the new one):
sudo passwd root
You will be asked for your password. Type it two times.
2) Install Oracle Java JDK (?)
You should install the latest Oracle JDK. Some linux distributions automatically install Open JDK which is not what we want. Read this article in order to uninstall Open JDK and install Oracle JDK 8.
You don’t have to install Java JDK 9 since we are not going to use any of it’s features anyway.
This is a quick summary of the commands you need:
$ sudo apt-get purge openjdk* $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get -q -y install oracle-java8-installer $ sudo apt-get -q -y install oracle-java8-set-default
3) Install the desired IDE (?)
The recommended IDE for Java is netbeans. Another great option is IntelliJ IDEA. You could use eclipse too, but I don’t think it is a good choice.
At this point we are going to install netbeans since IDEA is not free. However Netbeans has some installation weaknesses these days: During installation you will be asked for the path of the JDK, Unfortunately, occasionally the default path proposed by the installer is invalid. So you will have to manually fix it during installation. Before running the netbeans installer, you need to note down the path of the SDK by running the following command:
$ update-java-alternatives -l
If you are given multiple choices, select the one with Oracle Java 8. Now you are ready to download netbeans. However, note that we do NOT want the netbeans version of the repositories. We want the latest one. So you will have to download it manually:
Download netbeans from the official site and store it to ~/Downloads. Now you have to make it executable and execute it:
$ cd ~/Downloads $ chmod a+x netbeans-....sh $ ./netbeans-....sh
Once asked, fill in the path of the JDK found via update-java-alternatives.
If you don’t set it up properly you will get an error later on: when creating a new project error “not all requested modules can be enabled” will occur. You can fix this error via the following links:
- not all requested modules can be enabled (memext)
- not all requested modules can be enabled (askubuntu.com)
4) Install MySQL and MySQL workbench
I suggest you install the MySQL and MySQL workbench from the software manager of the distribution you use (do NOT use apt directly). Once you have them installed you should verify that you can connect to MySQL from MySQL workbench. If you cannot connect you could read these articles:
5) Prepare your taskbar / desktop
Pin the following to your taskbar (or desktop):
- a web browser of your choice
- the IDE you have installed
- optionally a file manager
Unpin any items you don’t need like libreoffice links or amazon related trash. You will work more efficiently if you keep the desktop clean and tidy.
6) Prepare your workspace for the project
Complete the following steps:
- create a folder on your desktop and name it “ted”.
- copy to that folder the assignment PDF, any slides and additional resources you were given by the instructors.
7) Install optional software
- Install double commander (apt link):
sudo apt-get install doublecmd-qt
- Install git (apt link) if the team can use it. If you don’t know how to use git, do not install it:
sudo apt-get install git
You can optionally install skype if the team can use it.
8) What else?
Check that your Wifi is working !
Once you have setup the IDE, you could install additional software: