Skip to content

Commit a506f32

Browse files
committed
Updated Readme with autoscan. Closes #32
1 parent 4cf53f0 commit a506f32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ Example: `jenv link javac`
7070
10) **Uninstall jenv and automatically restore a Java version of your choice**
7171
*jenv uninstall `<name>`*
7272
Example: `jenv uninstall jdk17`
73+
74+
11) **Automatically search for java versions to be added**
75+
*jenv autoscan `?<path>?`*
76+
Example: `jenv autoscan "C:\Program Files\Java"`
77+
Example: `jenv autoscan` // Will search entire system
7378
## How does this work?
7479
This script creates a java.bat file that calls the java.exe with the correct version
7580
When the ps script changes env vars they get exported to tmp files and applied by the batch file

0 commit comments

Comments
 (0)