Thursday, August 16, 2007

Re: [completeJava] Re: How to make java Executable?

Hi Naveen,
 
I tried out by putting a new line character after the Main-Class line in the manifest file, but stil it is failing.
 
 
Thanks,
Jahangir
 
Naveen Kumar Reddy <mareddy_naveen@yahoo.com> wrote:
Hi Jahangir,

See attached Manifest and JAR file, double-click on attached jar file it opens a Swing window....what santosh told is correct....observe attached files clearly to get right picture.

Hint: Use Eclipse (or some IDE) for creating the JAR file by supplying 'main class' file name in it. Then it directly creates Executable JAR.

I hope all your worries are gone :)

-Naveen

santosh kumar <kumaronline_2004@yahoo.com> wrote:
In the Manifest file after the main-class entry there should be a new line character. check that out. If there is no new line character it will fail.
 
Regards
Santosh

jahangir pasha <jheemu_26@yahoo.com> wrote:
Still im getting the same error "Could not find main class. Program will exit". 
 
I created the jar file using JarBuilder but it is failing. Please help me out  
 
Thanks,
Jahangir

"b.thirupathi" <thirupathi_reddy_82@yahoo.com> wrote:
Hi,
I have uploaded one utility called "JarBuilder".
Now you can easily create Executable Jar files.
You download that tool from completeJavagroup/files/java section.
and unzip that archive and double-click jarbuilderXXX.jar.
Then you select needed class files the you say create jar, it'll
search and list classes having main method.you select the main class
from that list and give the location and name of the jar file to be
created.
it is now very easy....

Regards,
Thirupathi B.
mobile# 9247413378

--- In completeJava@yahoogroups.com, "jheemu_26" <jheemu_26@...>
wrote:
>
> Hi,
>
> I have some set of java class files, I want to make an executable
of
> them, packing them to a jar file, but it is failing. Can anyone
tell
> me the process?
>
> To make the executable im using the following command:
> jar -cvfm ReportGenerator.jar repgen.mf *
>
> repgen.mf has the following lines:
>
> Manifest-Version: 1.0
> Main-Class: ReportGenerator
> Class-Path: ReportMill8.zip
>
> where ReportGenerator is my only class file and ReportMill8.zip
> contains the referenced class files.
>
> But, when I double click that Executable Jar file, Im getting an
> error "Could not find the Main class. Program will exit". Please
> anybody help.
>



Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.


Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.



______________________________________________________________________________________
"Though we cannot rewrite the past, we should write a better future"
M Naveen Kumar Reddy 
Novartis Pharmaceuticals Corporation
East Hanover, NJ 07936, USA
Direct phone: +1 862-778-9356
Cell: +1 732-318-8956

Pinpoint customers who are looking for what you sell.


Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.

__._,_.___
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Yoga Groups

Find Enlightenment

& exchange insights

with other members

Best of Y! Groups

Check out the best

of what Yahoo!

Groups has to offer.

.

__,_._,___

No comments: