Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13587
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe16.iad.POSTED!83aa503d!not-for-mail |
|---|---|
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Self-executing JAR |
| References | <tvpoo7h83ooo9dk54gghqg8v805mlrkpf3@4ax.com> |
| In-Reply-To | <tvpoo7h83ooo9dk54gghqg8v805mlrkpf3@4ax.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 19 |
| Message-ID | <Ci_ir.1762$Ec.850@newsfe16.iad> (permalink) |
| X-Complaints-To | abuse@newsrazor.net |
| NNTP-Posting-Date | Mon, 16 Apr 2012 19:21:06 UTC |
| Date | Mon, 16 Apr 2012 12:21:05 -0700 |
| X-Received-Bytes | 1561 |
| Xref | csiph.com comp.lang.java.programmer:13587 |
Show key headers only | View raw
On 4/16/12 11:46 AM, Tim Slattery wrote:
> I must be doing something stupid.
>
> I have a very simple command-line program in Eclipse, just a
> System.out.println("Hello World"). It runs just fine in the IDE. So I
> use File|Export|Export, and select "Runnable JAR file". A JAR is
> created.
>
> And it doesn't work. I can double-click on it, or I can call it from a
> command line. I get nothing. No "Hello world", no error message, no
> nothing. What have I missed?
You have missed the SSCCE.
It could be that you need to set a "main" class in your build
configuration somewhere. I don't know much about Eclipse.
I do know that there is a standard file in META-INF that points to the
class that should be run to start the runnable jar. Google may tell you
more.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Self-executing JAR Tim Slattery <Slattery_T@bls.gov> - 2012-04-16 14:46 -0400
Re: Self-executing JAR Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-16 12:21 -0700
Re: Self-executing JAR markspace <-@.> - 2012-04-16 12:22 -0700
Re: Self-executing JAR Tim Slattery <Slattery_T@bls.gov> - 2012-04-16 16:34 -0400
Re: Self-executing JAR Lew <lewbloch@gmail.com> - 2012-04-16 14:26 -0700
Re: Self-executing JAR "John B. Matthews" <nospam@nospam.invalid> - 2012-04-16 21:06 -0400
Re: Self-executing JAR Knute Johnson <nospam@knutejohnson.com> - 2012-04-16 14:35 -0700
Re: Self-executing JAR markspace <-@.> - 2012-04-16 14:51 -0700
Re: Self-executing JAR markspace <-@.> - 2012-04-16 15:00 -0700
Re: Self-executing JAR Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-04-17 08:31 +0000
Re: Self-executing JAR markspace <-@.> - 2012-04-17 07:35 -0700
Re: Self-executing JAR Lew <lewbloch@gmail.com> - 2012-04-16 15:51 -0700
Re: Self-executing JAR Tim Slattery <Slattery_T@bls.gov> - 2012-04-17 08:56 -0400
Re: Self-executing JAR Tim Slattery <Slattery_T@bls.gov> - 2012-04-17 10:49 -0400
Re: Self-executing JAR markspace <-@.> - 2012-04-17 07:57 -0700
Re: Self-executing JAR Tim Slattery <Slattery_T@bls.gov> - 2012-04-18 09:06 -0400
Re: Self-executing JAR Roedy Green <see_website@mindprod.com.invalid> - 2012-04-17 04:24 -0700
csiph-web