I have made a java GUI application with Swing and Netbeans. I can run it without problems from Netbeans or from console inside the directory of the application, nevertheless when taking the .jar to another directory (for example the desktop) I get the error of the title of this question. I've also tried to convert the .jar to .exe using Launch4j but I get the same error again, in this case the .jar if I get it from the application directory.
Does anyone know what can be done?
Thanks in advance.