Cannot determine current directory

前端 未结 11 1383
旧时难觅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:25

    Under CentOS, rhel, SL or SLC? Not an issue under debian/ubuntu.

    I found you need to logout of the shell you are using and log back in. The environment is not set up initially correctly for the current shell. After login I see that: java -version will work.

    Also ensure that /etc/alternatives/java actually points to something reasonable like:

    ls -lisa /etc/alternatives/java
    72645 0 lrwxrwxrwx. 1 root root 46 May 27 11:29 /etc/alternatives/java -> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
    

提交回复
热议问题