A Runnable JAR file won't open after compiling in Eclipse.
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():
Code:
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? Thanks a lot
Re: A Runnable JAR file won't open after compiling in Eclipse.
Re: A Runnable JAR file won't open after compiling in Eclipse.
What's wrong with posting in more than one place?
Re: A Runnable JAR file won't open after compiling in Eclipse.
Quote:
Originally Posted by
AvivC
What's wrong with posting in more than one place?
People here are helping you, for free, in their spare time. Since you have posted this in multiple places without telling us where, we have no way of knowing what answers you've already received. That means we might be answering a question that you already figured out, or we might be repeating advice you've already received. We might be missing more information that you've given in another forum. That's a waste of your time as well as ours, which is why it's considered pretty rude. If you don't value our time, why should we spend that time answering questions you might already have the answer to, when instead we could be answering questions that haven't been posted elsewhere?
This is the third time I'm linking you to the page explaining all of this: The problems with cross-posting
Re: A Runnable JAR file won't open after compiling in Eclipse.
Cross-posting is permitted. However, not telling all sites about the other sites is considered rude. Most of us do not like wasting time answering a question that has already been answered.
Read the link on the other site.