The Artima Developer Community
Sponsored Link

Java Answers Forum
Jarring an Application for a Double Click

2 replies on 1 page. Most recent reply: Dec 30, 2004 2:38 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Jarring an Application for a Double Click Posted: Dec 29, 2004 2:22 AM
Reply to this message Reply
Advertisement
Hi Folks:

I am trying to create a large Java App. and
run it as an executable (i.e. be able to double-click
and have it running)... I found out that via Google
I can Jar it, but it doesn't say what goes from
there. Do I just simply zip it up and create a
short cut to my desktop?

Thanks in advance.

Kind regards,
Kondwani


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Jarring an Application for a Double Click (New Problem) Posted: Dec 29, 2004 8:31 AM
Reply to this message Reply
Hi Folks:

I figured it out via a tutorial session.

jar -cmf MyFile.jar ManifestFile inputFiles

Where Manifest file is a file that specifies the
Main class.

There is another problem I have, I get an error
that reads:

"Exception in thread "main" java.lang.NoClassDefFoundError"

When I try to run the jar file.

I tried to change the path variable in my control Panel
(using WinXP) to include the Directory in which my
Main class resides, this has solved nothing.

Please fire up some advice...

Thanks in advance...

Spike

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Jarring an Application for a Double Click (New Problem) Posted: Dec 30, 2004 2:38 AM
Reply to this message Reply
That's alright my baad... I had not added the main
class to the archive...

Spike

Flat View: This topic has 2 replies on 1 page
Topic: openwindow() Previous Topic   Next Topic Topic: Single File Only, Please.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use