when running windows in vm your local data is on Z:
so when trying to install jbang on windos you get:
PS Z:\code\tui\tamboui\tamboui> iex "& { $(iwr https://ps.jbang.dev) } app setup"
PowerShell requires an execution policy in [Unrestricted, RemoteSigned, ByPass] to continue.
For example, to set the execution policy to 'RemoteSigned' please run :
'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'
PS Z:\code\tui\tamboui\tamboui> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
PS Z:\code\tui\tamboui\tamboui> iex "& { $(iwr https://ps.jbang.dev) } app setup"
Downloading JBang ...
Installing JBang...
Downloading JDK 17. Be patient, this can take several minutes...
Installing JDK 17...
Rename-Item : Access to the path 'C:\Users\max\.jbang\cache\jdks\17.tmp' is denied.
At C:\Users\max\.jbang\bin\jbang.ps1:198 char:9
+ Rename-Item -Path "$TDIR\jdks\$javaVersion.tmp" -NewName "$ja ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\max\.jbang\cache\jdks\17.tmp:String) [Rename-Item], IOException
+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
I must go to c: for it to work:
PS Z:\code\tui\tamboui\tamboui> c:
PS C:\Users\max> iex "& { $(iwr https://ps.jbang.dev) } app setup"
JAVA_HOME is set but does not seem to point to a valid Java JDK
Downloading JDK 17. Be patient, this can take several minutes...
Installing JDK 17...
[jbang] Default JDK set to 17 (17.0.17+10 [dynamic], current, C:\Users\max\.jbang\cache\jdks\17, [Ga, Jdk]))
[jbang] JBang environment setup completed...
Please start a new PowerShell for changes to take effect
PS C:\Users\max>
rings a bell @quintesse ?
when running windows in vm your local data is on Z:
so when trying to install jbang on windos you get:
I must go to c: for it to work:
rings a bell @quintesse ?