From ee5776ca11a3bfc075053cf3976b4ca04dc95e63 Mon Sep 17 00:00:00 2001 From: Tako Schotanus Date: Tue, 28 May 2024 21:49:44 +0200 Subject: [PATCH] docs: refined special Windows setup instructions --- docs/modules/ROOT/pages/javaversions.adoc | 4 ---- docs/modules/ROOT/pages/usage.adoc | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/modules/ROOT/pages/javaversions.adoc b/docs/modules/ROOT/pages/javaversions.adoc index 4d58be002..93ba6a591 100644 --- a/docs/modules/ROOT/pages/javaversions.adoc +++ b/docs/modules/ROOT/pages/javaversions.adoc @@ -55,10 +55,6 @@ You can change the default JDK by running: Running it without an argument will return the version of the JDK that is currently set as the default. -NOTE: On Windows you might need elevated privileges to create symbolic links. If you don't have permissions then -running the above command will result in an error. To use it https://stackoverflow.com/a/24353758[enable symbolic links] -for your user or run your shell/terminal as administrator to have this feature working. - When you `uninstall` a JDK by running: jbang jdk uninstall 12 diff --git a/docs/modules/ROOT/pages/usage.adoc b/docs/modules/ROOT/pages/usage.adoc index cd3a29075..d60b876bd 100644 --- a/docs/modules/ROOT/pages/usage.adoc +++ b/docs/modules/ROOT/pages/usage.adoc @@ -348,15 +348,15 @@ No one would want to do that (right?) but now you know. == Usage on Windows Some JBang commands need to create symbolic links when running on Windows. -For example, this is required for Managing JDKs or editing the files with the `edit` command. +For example, this is required for editing the files with the `edit` command. If you encounter issues on Windows related to the creation of symbolic links follow these instructions: 1. From Windows 10 onwards you can turn on "Developer Mode", this will automatically enable the possibility to create symbolic links. Read here how to enable this mode: -https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development[Enable your device for development]. On Windows 11 this might already -be enabled by default. +https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development[Enable your device for development]. +On Windows 11 this might already be enabled by default. 2. If you're using a Java version equal to or newer than 13 then you're good to go. This Java version already works correctly. Make sure that JBang is actually using @@ -369,4 +369,3 @@ is no other option than setting the correct privileges for your user by enablin the `Create symbolic links` group policy setting. See the instruction on this page for more information on how to do this: https://superuser.com/a/105381[Permission to make symbolic links in Windows]. -