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
I got this error on Mac OS X and this is a genuine error since the directory has vanished. The directory I was when I am executing the commands is
.
The problem was I opened two terminals in the other terminal I ran
mvn clean install
and the target directory fromPROJECT DIR
got deleted and recreated.
My old terminal from where I was executing Java commands is not in a valid directory.
The file descriptor is invalid since the directory got deleted by Maven.
When I moved back to the parent directory and the changed back to the target
directory, the java
command started working correctly as expected.