I recently installed the last version of Eclipse on my pc running on Windows 10. Every time I try to export the simplest Java project in a runnable jar file, the jar file doesn't work.
Example:
import javax.swing.JOptionPane;
public class Try {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Some message", "title!!", JOptionPane.INFORMATION_MESSAGE);
}
}
File> Export> Java > Runnable Jar File All names/ Folders been set OK Package required libraries into generated JAR (but I tried every other switch )> Finish The jar file is created but doesn't make anything at all. Any suggestions?