Results 1 to 5 of 5
- 12-31-2013, 04:51 PM #1
Member
- Join Date
- Dec 2013
- Posts
- 26
- Rep Power
- 0
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():
Java 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(); } }
- 12-31-2013, 04:51 PM #2
Re: A Runnable JAR file won't open after compiling in Eclipse.
Crossposted: Runnable JAR won't run when double-clicked.
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 12-31-2013, 04:58 PM #3
Member
- Join Date
- Dec 2013
- Posts
- 26
- Rep Power
- 0
Re: A Runnable JAR file won't open after compiling in Eclipse.
What's wrong with posting in more than one place?
- 12-31-2013, 05:09 PM #4
Re: A Runnable JAR file won't open after compiling in Eclipse.
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-postingHow to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 12-31-2013, 05:11 PM #5
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.If you don't understand my response, don't ignore it, ask a question.
Similar Threads
-
Java code / eclipse API's to close all open editors in eclipse
By userj2ee in forum EclipseReplies: 2Last Post: 10-11-2013, 10:26 AM -
Make a runnable jar of my project in Eclipse
By buggedup in forum EclipseReplies: 6Last Post: 07-22-2013, 03:00 PM -
Make a single Runnable JAR file out of multiple packages
By blackz in forum EclipseReplies: 3Last Post: 05-07-2012, 07:07 PM -
Eclipse Indigo compiling ear
By BenitoJuarez in forum EclipseReplies: 0Last Post: 04-16-2012, 12:17 PM -
Including Recources into a runnable JAR using eclipse
By Lucas_F98 in forum New To JavaReplies: 16Last Post: 01-13-2012, 12:16 PM
Bookmarks