---
title: "Switching between JDKs in Windows"
url: https://daily.dev/posts/switching-between-jdks-in-windows-b107ytxxk
source_url: https://www.damirscorner.com/blog/posts/20251226-SwitchingBetweenJdksInWindows.html
type: article
source: "Damir's Corner"
published: 2026-05-31T07:46:36.311Z
updated: 2026-05-31T09:28:43.378Z
tags: ["devtools", "java", "powershell", "jdk"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Switching between JDKs in Windows

**[Damir's Corner](https://daily.dev/sources/damirscorner)** · 3 min read · 0 upvotes · 0 comments

## Summary

A practical guide to managing multiple JDK versions on Windows using PowerShell. After removing all non-IntelliJ-managed JDKs and clearing JAVA_HOME and PATH, the author sets a default JDK via user environment variables and creates a PowerShell script plus profile functions to switch between JDK versions per session. The approach leverages JDKs already installed by IntelliJ IDEA, avoiding third-party version managers like vfox.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.damirscorner.com/blog/posts/20251226-SwitchingBetweenJdksInWindows.html>

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#java](https://daily.dev/tags/java), [#powershell](https://daily.dev/tags/powershell), [#jdk](https://daily.dev/tags/jdk)

[View this post on daily.dev](https://daily.dev/posts/switching-between-jdks-in-windows-b107ytxxk)
