I am working with Netbeans 8.2 and Java 8 version, when executing my program from the Netbeans IDE it runs without problem but from the command line it gives me the following error:
java -jar MiPrograma.jar
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
In some forums they recommend adding the AbsoluyteLayout library to the classpath, which I select from the following path:
..\NetBeans 8.2\java\modules\ext\AbsoluteLayout.jar
I have done it this way but it keeps giving me the same error, can someone help me with this problem. Thanks.