Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 5.67 KB

File metadata and controls

57 lines (39 loc) · 5.67 KB

Various tools

Various useful tools for Java and Java EE developers.

Java

  • 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.

  • Maven

For Java SE, add:

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

Command line

You should know how to execute command-line operations (thus, how to open a “terminal”). In Windows, use PowerShell.

Eclipse

For Eclipse users, I strongly recommend reading the following, for a great increase to your productivity and pleasure of coding.

Configuration

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 / Preferences whether the changes were applied. For example, check in Java / Code Style / Code Templates that the Catch block body contains throw new IllegalStateException(e);.

  • Check in your project properties, Java Compiler / Errors/Warnings that the project uses your global Eclipse compiler settings.

  • Clean and recompile your project to see the effect.

VM (beta)

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.