I created a program and compiled it to Runnable JAR. I made sure the configuration is the class with the main() method in the project, and made sure I was choosing Runnable JAR.
After compiling, double clicking the file won't open it.
Here's the Class with main():
import javax.swing.*; import java.awt.*; public class Starter extends JFrame { public Starter(){ setSize(500,500); setResizable(false); setTitle("Pong Battle"); setDefaultCloseOperation(EXIT_ON_CLOSE); Board b = new Board(); add(b); setVisible(true); } public static void main(String[]args){ Starter starter = new Starter(); } }
What could be the problem?