Cannot determine current directory

前端 未结 11 1350
旧时难觅i
旧时难觅i 2021-02-03 16:40

I am trying to run a .jar file that was created successfully in Netbeans and I am receiving the following error:

Error occurred during initialization of V

11条回答
  •  抹茶落季
    2021-02-03 17:27

    You may get this error if you issue "java -version" or other java command from a read-only directory. For example using openjdk 8 on centos (as non-root user):

    cd /usr/bin
    java -version
    

    Error occurred during initialization of VM java.lang.Error: Properties init: Could not determine current working directory.

提交回复
热议问题