The error is indeed caused by the space in the user's folder. I've temporally changed the folder name to remove the space and no more errors. But, I need to keep the folder name as it was, ie with a space.
The fix is passing the Java Option(s) as an array.
I suppose it'll prevent the tokeniser from splitting strings at spaces.
B4X:
Public Sub SetEnvironment(s As Shell)
s.SetEnvironmentVariables(CreateMap("JAVA_HOME": FindJava, _
"JAVA_OPTS[@]": $"-Djava.io.tmpdir=${File.DirTemp}"$))
' s.SetEnvironmentVariables(CreateMap("JAVA_HOME": FindJava, _
' "JAVA_OPTS": $"-Djava.io.tmpdir=${File.DirTemp}"$))
End Sub
- Make sure to use B4ASdkManager.jar that was included in v9.50.
- Run the IDE with logs enabled: https://www.b4x.com/android/forum/posts/50478/
It should print the temp folder. Something like: