Introduction
Before starting with Maven or Spring Boot, we need to set up the basic development environment. This includes installing Java (JDK) and Apache Maven.
Canonical Link
☕ Step 1: Install Java (JDK)
Java is required to compile and run Java applications.
Download Java
Install Java 17 (LTS) (recommended). You can choose OpenJDK / Temurin or Oracle JDK.
Java JDK 17 download link: Sign in to Oracle India and download it.
Windows Installation
- Download the
.exeinstaller - Run the installer and follow the steps
- Note the installation path (example):
Set JAVA_HOME
Windows:
- Create a system variable:
JAVA_HOME = C:\Program Files\Java\jdk-17
- Add to Path:
%JAVA_HOME%\bin
Verify Java Installation
java -version
javac -version
📦 Step 2: Install Apache Maven
Download Apache Maven 3.9.x (Binary zip) from official site
Apache Maven Download Link
Windows Installation
1 Extract the zip file Example:
C:\Program Files\Apache\maven
2 Folder structure should include:
bin
conf
lib
Set MAVEN_HOME
Windows
- Create system variable:
MAVEN_HOME = C:\Program Files\Apache\maven
- Add to Path:
%MAVEN_HOME%\bin
Verify Maven Installation
mvn -version
Expected output:
Apache Maven 3.9.x
Java version: 17
⚠️ Common Installation Issues
| Issue | Fix |
|---|---|
java not recognized |
Check JAVA_HOME |
mvn not recognized |
Check MAVEN_HOME |
| Wrong Java version | Restart terminal / IDE |
✅ Conclusion
After completing these installation steps:
-Java is ready to compile code
-Maven is ready to build projects
-You can now create and run Maven-based Java applications
🚀 What’s Next?
Now that the development environment is ready with Java and Maven, the next steps focus on building a strong foundation before moving into Spring Boot.
Let’s Connect!
If you have any recommended resources, better approaches to my challenges, or insights, I’d love to hear them! Drop your thoughts in the comments.




Top comments (0)