se-edu / guides

Style guides and tutorials for SE student projects
MIT License
7 stars 25 forks source link

Add Java installation guide for Windows #64

Open damithc opened 2 months ago

damithc commented 2 months ago

The page can be structured similar to https://se-education.org/guides/tutorials/javaInstallationMac.html While installation itself is rather easy, some students might not know how to configure their system to be able to run java and javac commands, how to switch between Java versions etc. Note that this guide is used by students of different courses, some of whom could be first-time Java users.

mfjkri commented 6 days ago

Hi Prof!

I noticed the newly updated page here: https://se-education.org/guides/tutorials/javaInstallationWindows.html. The guide looks great!

I just wanted to check if this task still requires further input or if the page is considered complete?

One potential suggestion could be adding a section for WSL users on Windows. WSL users might find it more useful to follow the macOS installation guide, using SDKMAN for Java version management.

Additionally, another option to consider is introducing a Java Version Manager like Jabba. While I believe the original version is no longer actively maintained, there is a community-maintained fork available here, which might be worth exploring as an alternative.

Let me know if any of suggestions are worth exploring or adding!

damithc commented 6 days ago

One potential suggestion could be adding a section for WSL users on Windows. WSL users might find it more useful to follow the macOS installation guide, using SDKMAN for Java version management.

@mfjkri Can WSL run java GUI programs?

Additionally, another option to consider is introducing a Java Version Manager like Jabba. While I believe the original version is no longer actively maintained, there is a community-maintained fork available here, which might be worth exploring as an alternative.

If it is not widely used, best not to.

mfjkri commented 6 days ago

@mfjkri Can WSL run java GUI programs?

Hm I tried it myself and encountered this error:

java.lang.UnsupportedOperationException: Unable to load glass GTK library.

I tested this on Windows 11 with WSL2 (v2.2.4.0).

Maybe it would be best to avoid mentioning WSL then 👍🏻

drustanyjt commented 4 days ago

Since we have a installation guide for Windows and Mac, would it be helpful to have one for Linux as well? I can help make one using Ubuntu 22 desktop and OpenJDK 17.

damithc commented 4 days ago

Since we have a installation guide for Windows and Mac, would it be helpful to have one for Linux as well? I can help make one using Ubuntu 22 desktop and OpenJDK 17.

@drustanyjt For completeness sake, yes let's add one.