Prerequisites
Getting started with webforJ is simple, because there are only a couple of prerequisites. Use this guide to set up your development environment with the essential tools you will need to get up and running with webforJ.
Java Development Kit (JDK) 17 or higher
A Java Development Kit (JDK) is the most important requirement for developing with webforJ, providing the necessary tools to compile, run, and manage Java apps. Java 17 or higher is required to ensure compatibility with webforJ and access to the latest features and security updates of the Java ecosystem. The webforJ framework is compatible with official Oracle JDKs and the open source Eclipse Temurin JDKs.
JDK installation links:
- Official Oracle JDKs can be found on Oracle's Java Downloads page.
- Select Java version 17 or higher.
- Click the tab for Linux, macOS, or Windows.
- Click the link that corresponds to your computer's architecture.
- See Oracle's JDK Installation Guide for complete information on installing an Oracle JDK.
- Open source JDKs can be found on Adoptium's Eclipse Temurin™ Latest Releases page.
- Use the dropdown menus to select the operating system, architecture, package type, and JDK version 17 or higher.
- Click the link in the table for the archive type you wish to download.
- See Adoptium's Installation Guide for complete information on installing an Eclipse Temurin JDK.
Verify your JDK installation
After installing the JDK, verify the installation by running the following command in your terminal or command prompt:
java -version
If your JDK is installed correctly, you will see output with your JDK version details, indicating version 17 or higher.
Apache Maven
Apache Maven is a build automation and dependency management tool that simplifies the process of including external libraries such as webforJ in your project. In addition to helping with dependency management, Maven can automate tasks like compiling code, running tests, and packaging applications.
Maven installation links
- To install the latest version of Maven, go to the Apache Maven Download Page.
- Maven's Installing Apache Maven page has an overview of the installation process.
- Baeldung's How to Install Maven on Windows, Linux, and Mac is a more in-depth installation guide for each operating system.
Verify your Maven installation
After installing Maven, verify the installation by running the following command in your terminal or command prompt:
mvn -v
If Maven is installed correctly, the output should show the Maven version, Java version, and operating system information.
Java IDE
A Java IDE provides a comprehensive environment for writing, testing, and debugging your code. There are many IDEs to choose from, so you can choose whichever one fits your workflow. Some popular choices for Java development include:
- Visual Studio Code: A lightweight, extensible code editor with Java support through plugins.
- IntelliJ IDEA: Known for its powerful Java support and rich plugin ecosystem.
- NetBeans: A free, open source IDE for Java and other languages, known for its ease of use and built-in project templates.