Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Runnable JAR won't run when double-clicked.

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Thanked 0 Times in 0 Posts

    Default Runnable JAR won't run when double-clicked.

    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(){
    		setTitle("Pong Battle");
    		Board b = new Board();
    	public static void main(String[]args){
    		Starter starter = new Starter();

    What could be the problem?

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: Runnable JAR won't run when double-clicked.

    You didn't post an SSCCE so we have no way of knowing.

    Try running the jar from the command line to see the error you're getting.

    --- Update ---

    This thread has been cross posted here:


    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

    This is two crossposts in a row.

    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Runnable jar file wont run
    By bobscool123 in forum Object Oriented Programming
    Replies: 6
    Last Post: June 7th, 2013, 11:25 AM
  2. Compiled .jar won't run when using .wav-files.
    By EatMyBible in forum AWT / Java Swing
    Replies: 6
    Last Post: May 22nd, 2013, 06:23 PM
  3. [SOLVED] Nimbus PLAF: and a double call to repaint() inside a runnable interface
    By chronoz13 in forum AWT / Java Swing
    Replies: 15
    Last Post: August 11th, 2012, 12:59 AM
  4. creating runnable JAR file
    By olimpicco in forum Java IDEs
    Replies: 25
    Last Post: January 11th, 2012, 09:15 AM
  5. [SOLVED] Executable .jar file isnít launched after being double-clicked
    By voltaire in forum Java Theory & Questions
    Replies: 6
    Last Post: May 18th, 2010, 03:37 PM

Tags for this Thread