"Exception in thread "main" java.lang.nosuchmethoderror
This means that the jvm (java virtual machine) could not find a
main method in the class.
public static void main(String[] args) {
// Use JOptionPane.showInputDialog here
new AmicablePairs(25);
}