How to change the java version in codespaces? #47246
-
Select Topic AreaProduct Feedback BodyI want use other java version to develop on codespaces. Such as 8, 16, 17. But there is only java 11. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 16 replies
-
|
Hi @lijinhong11 ! Thanks for reaching out! To use other versions of java on your codespace, I recommend configuring your devcontainer to point to a specific version. We have a great guide here on how to do that specifically for java projects! https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/setting-up-your-java-project-for-codespaces. Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
-
|
Use SDKMAN! (already installed in codespaces). |
Beta Was this translation helpful? Give feedback.
-
|
To change the Java version in Codespaces, you can follow these steps:
Remember to restart any running Java applications for the changes to take effect. |
Beta Was this translation helpful? Give feedback.
-
|
DONT NO HOW TO DO IT |
Beta Was this translation helpful? Give feedback.
-
|
Java 17 |
Beta Was this translation helpful? Give feedback.
-
|
thanks |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
#182301 |
Beta Was this translation helpful? Give feedback.
-
|
#181947 my name is berize |
Beta Was this translation helpful? Give feedback.

Use SDKMAN! (already installed in codespaces).