Julia session crashes when calling `JavaCall.init()` from a julia session managed by VSCode

No, that is not sufficient to set in startup.jl. You must set the environment variable before the Julia process starts.