FelixSelter / JEnv-for-Windows

Change your current Java version with one line
Apache License 2.0
633 stars 85 forks source link

Error when removing any Java version #20

Closed bkmeneguello closed 2 years ago

bkmeneguello commented 2 years ago

Steps to reproduce:

Error:

Rename-Item: <path to JEnv installation>\jenv.ps1:157
Line |
 157 |      Rename-Item -path $jenvConfigTmp -NewName $jenvConfig
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\<me>\AppData\Roaming\JEnv\jenv.config.tmp' because it does not exist.

Removed JEnv openjdk17 successfully

Obs.: The error only occurs when the item being removed is the only one in the config.