I\'m usually working in Eclipse. In my program, I\'m using this miglayout-4.0-swing.jar file from this source: link. Somehere in the .jar file is class with MigLayout.
Command line java command don't know where to look for the miglayout jar file. You should run in from command line like
java
java -cp path_to_miglayout_jar myMain