Various useful tools for Java and Java EE developers.
-
Java 9 (or ulterior)
-
Important advice. Uninstall every version of Java you have, keep only one: the latest JDK (which includes a JRE). This prevents problems with tools selecting the wrong JDK or JRE.
-
On Debian: openjdk-11-jdk (install openjdk-11-source to have the Javadoc accessible even when coding offline).
-
On Windows: install the JDK (which itself comes with a private JRE). Do not install the public JRE (uncheck the box). Set the environment variables: JAVA_HOME to where you installed the JDK and PATH to "%JAVA_HOME%\bin" (for details, see Maven and Eclipse.
-
For Java SE, add:
-
Eclipse IDE “for Java Developers”
For Java EE, add:
-
Eclipse IDE “for Java EE Developers”
-
Download and install (deflate) WildFly (14.0.1.Final or more recent, Java EE Full & Web Distribution)
-
JBoss Tools, a plug-in for easy deployment to Wildfly. Install only JBoss AS, WildFly & EAP Server Tools. (Rationale: I have had stability issues in Eclipse after installing the whole of JBoss Tools.) Or automate it.
-
Git client (I recommend the command line for learning; I’ve been told GitKraken is a great GUI complement)
-
Configure your git identity:
user.nameanduser.email. (Specific for GitHub: user.name, user.email.)
You should know how to execute command-line operations (thus, how to open a “terminal”). In Windows, use PowerShell.
For Eclipse users, I strongly recommend reading the following, for a great increase to your productivity and pleasure of coding.
-
Workbench User Guide, Basic tutorial
-
Workbench User Guide, Tips and Tricks
-
Java development user guide, Basic tutorial
-
Java development user guide, Tips and Tricks (JDT) (bit by bit!)
I recommend configuring Eclipse to show more errors and warnings in order to help spot mistakes and code smells early.
-
From Eclipse, import my sample epf (Eclipse preference) file.
-
You can read the file contents to see what this changes to your Eclipse configuration.
-
Check in
Windows / Preferenceswhether the changes were applied. For example, check inJava / Code Style / Code Templatesthat theCatch block bodycontainsthrow new IllegalStateException(e);. -
Check in your project properties,
Java Compiler / Errors/Warningsthat the project uses your global Eclipse compiler settings. -
Clean and recompile your project to see the effect.
Here is a Virtual Machine (VM) file that contains (almost) all the tools above. It features Debian stretch (9.2), a GNU/Linux system. The VM file is in a standard format (OVA). You can import it in Virtual Box for example. Tell me if you are interested, I will then update it.
The file is in beta version, please report any issues here.
Note that you will get (much?) better performance by installing the tools directly on your machine rather than using them through a VM.