This guide is only for Windows. If you need macOS, go here.
Linux is not supported. If you needed Linux installation guide, please, contact us.
Follow the instructions even if you already have some of the software installed
(including C:\Java-Training
). You will not lose any previous Projects
because this folder is not being erased.
Although, you might want to backup C:\Java-Training\Projects
to e.g. Documents
folder temporarily.
All other files and subfolders of C:\Java-Training
will either stay intact or will be overwritten by a newer version of the software.
If you are an experienced user, you can skip to the short description, but we recommend to follow this version.
Download the installation archive for later Java-Training.7z
Install 7-Zip.
Watch out: 7-Zip is better than WinRAR or WinZip.
Install it even if you already have them.
Especially we noticed WinRAR being unable to extract .7z
correctly.
We recommend avoid WinRAR and WinZip altogether and use exclusively 7-Zip as it is free and open-source.
Run the downloaded installator for 7-Zip.
If you are asked by Windows to permit admin changes, go ahead. (Yes/Ano)
Run 7-Zip File Manager.
Open app settings.
Check whether you have 7-Zip associated with .7z a .zip. We recommend using it for all types of supported archives. (All types can be selected by the plus + button)
A couple of convenient settings. Confirm by clicking OK and close all settings dialogs.
Find the downloaded Java-Training.7z
(probably in
Downloads
), open using right click and choose 7-Zip -> Open archive
Extract the archive to C:\Java-Training\
. This path is mandatory.
It is necessary to have at least 3 GB free space on C:
drive.
If you don't have enough space, erase some redundant files.
Good candidates are in the Downloads
folder.
Close 7-Zip after extraction.
Check that you have extracted archive correctly:
You should have C:\Java-Training\Projects\DemoApplication
on the C:
drive after successful extraction.
There is a shortcut to IntelliJ IDEA editor in C:\Java-Training\IntelliJ-Community
. We recommend copying it to your desktop.
Run IntelliJ IDEA. (Be patient - the computer will look like it is "doing nothing" after double click, but the splash screen should appear shortly.) It is necessary to be connected to the internet at this point.
Open the demo project C:\Java-Training\Projects\DemoApplication
.
Watch out! Always expand the arrows in the open dialog using single click only to drill down to subfolder. Never click twice on the folder name. Sometimes it could be mistakenly understood by IntelliJ IDEA to import the entire double-clicked folder and not just expanding the folder.
Wait for IntelliJ IDEA to index the entire Java runtime. When first run, it can take several minutes. It is necessary to still be connected to the internet.
You should see Main.java
in the open project. If not, expand the folders in the left panel (clicking on the arrows again) and double-click on the Main.java
.
If IntelliJ IDEA is correctly set up, the source code in Main.java
should be blue-violet as on the picture:
If you had a problem with internet connection, it would happen that you would see errors like bellow. If not, skip the corrective steps.
Corrective steps: When finally on the internet, open "Maven" tab.
Click Reimport All Maven Projects
button.
Still not fixed? Open Maven Lifecycle
, choose clean
and run the action. Watch out! It is a different arrow then Run Main
!
It it went OK, you will see Process finished with exit code 0
Follow on with Package
goal.
Success:
Repeat Reimport All Maven Projects
.
Look for SwingExceptionHandler
not being red now.
Check the correct situation on 32. If it is OK, follow on.
If not, try more heavy duty steps:
C:\Java-Training\Env\RunCmd.bat
Enter
):cd ..\Projects\DemoApplication
mvn clean
mvn package
Reimport All Maven Projects
(as in step 28)Run the application
Everything should work now:
You can erase files from Downloads
(Java-Training.7z
and 7-Zipu
installer), to save some disk space.
This guide is only for experienced people who know what they are doing. We recommend going back up and follow the detailed guide.
The training course requires installation of Java (OpenJDK) and a programming editor IntelliJ IDEA (Community Edition).
Do not install it from the offcial distribution.
Use our preconfigured archive which you just extract to the fixed folder on the disk (C:\Java-Training\
) and you are good to go.
Note: In fact, there is no serious installation going on. Files are just extracted to the fixed folder. It is a kind of a portable distribution.
Note: If you already have our own JDK or other included software installed on your computer, it is not a problem but it will not be used for the training course. It is absolutely necessary to use the piece of software from our installation package as it is all preconfigured. Our examples would not work without the special configuration.
Download Java-Training.7z.
If you do not have 7-Zip, download and install it.
Warning! Do not use WinRAR or WinZip, because they cannot extract .7z
correctly.
In general we recommend to uninstall WinRAR and WinZip completely as you must pay for their license.
We consider it pointless when there is the free and open-source 7-Zip.
Run 7zFM.exe (7-Zip File Manager) and open Java-Training.7z
in it.
Extract the archive to C:\Java-Training
.
Check that you extracted it correctly:
You should have
C:\Java-Training\Projects\DemoApplication
folder on your C:
drive.
Copy IntelliJ-Community.lnk
from C:\Java-Training\IntelliJ-Community
to your desktop (C:\Users\YOUR_USERNAME\Desktop
) and possibly to your Start Menu
(C:\Users\YOUR_USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
)
Run IntelliJ-Community
using the shortcut from previous step
or run C:\Java-Training\IntelliJ-Community\startup.bat
.
Open the demo project selecting the folder
C:\Java-Training\Projects\DemoApplication
.
You must be connected to the internet.
When you open the project, IntelliJ IDEA will start indexing JDK and libraries. It will take a couple of minutes. Progress is displayed on the bottom editor line.
After the indexing finishes, Main.java
will become mainly violet-blue.
If it stayed mainly black-grey, you wouldn't have it extracted to the correct folder.
It must be in C:\Java-Training
. In such a case, close everything, move it to the correct location and run IntelliJ IDEA again.
If it was red, follow on to the troubleshooting section of the detailed guide
(point 33 in the detailed installation guide).
If everyhing is successful, you can run the project using the green arrow on the right top bar.
Project will open a window with It works!
label.