'I get java.lang.NoClassDefFoundError after some time running with no problems

In a desktop application created with netbeans I get NoClassDefFoundError errors on classes that were being used without problems.

There were no problems when compiling. At runtime, there were no errors for the first hour, or even up to 2 hours, when invoking those same classes. I understand that the error tells us that the definition of some class "disappears" at runtime.

Any JVM parameter that I should check? Can the responsible for this behavior be the GC? or could it be something else?

While starting the Java application i am using the -classpath option:

java -classpath P:\aplicaciones\App.jar app.Main

The exception trace:

Caused by: java.lang.ClassNotFoundException: personal.licencias.entidades.Salida
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source