Friday, August 31, 2007

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

Hey guyz ....I got the solution, actually I was using System.in and System.out in my application, that's why it was failing. Now I made it a Swing application, and it is working now. Huh!!
 
Thirupathi,
Thank you so much for your help
 
 
Thanks,
Jahangir.

Naveen Kumar Reddy <mareddy_naveen@yahoo.com> wrote:
Jahangir,

Did you try running the JAR file I attached in my previous reply mail to you?

-Naveen

jahangir pasha <jheemu_26@yahoo.com> wrote:
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.



______________________________________________________________________________________
"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

Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

HDTV Support

The official Samsung

Y! Group for HDTVs

and devices.

Need traffic?

Drive customers

With search ads

on Yahoo!

.

__,_._,___

Wednesday, August 29, 2007

[completeJava] Earn Money Up to 3000$ by Completing Online Projects

Earn Money Up to 3000$ by Completing Online Projects

Earn Money by Completing simple Projects either Online or Off-line. This is a Good Income Opportunity and Suitable for all most all Internet surfers, who wish to earn money through their Computer.

These Projects are updated almost daily. You can Browse your Projects from list of Project Categories. This Program is absolutely free not like other Internet works. Apply for a Project then you will find the Benefits of this Program.

Click here to read the complete details

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Need traffic?

Drive customers

With search ads

on Yahoo!

Yahoo! Groups

Be a Better Planet

Share with others

Help the Planet.

.

__,_._,___

Wednesday, August 22, 2007

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

Hi Thirupathi,
 
No, I have only jdk1.5.0_07 (no other version) and even i didn't install any oracle software on my system. And the classpath is set correctly, but stil it is failing.
 
I tried out with jdk1.4.2_08, but this time on my friend's PC. It is working fine. Please help me out, what could be the problem? I tried out all the options suggested by Naveen, santosh and you. But stil it is failing. Huh!!!
 
Thnks,
Jahangir
"b.thirupathi" <thirupathi_reddy_82@yahoo.com> wrote:
hi jahangir,
>   
>   Yeah Im able to run the sent JAR file. But im confused why iam
not able to run my JAR file? . Iam using java 1.5 and when i tried
out with java 1.4 on other system, im able to run it.
>
Once you checkout path on you machine. path might be set to a lower
version of JDK
. If the classes are compiled using JDK1.5 and if you try
to run the jar file using jdk less than jdk1.5 (ex:1.4 or 1.2) then it
will not undestrand the class format.
So once you try and checkout the path on you machine and you remove
path to all other jdk and jre except jdk1.5 which you are using.
Note: Many cases path will be set to jdk1.2 or jdk1.1.X when install
oracle on your machine.
Regards,
Thirupathi B.


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

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

It's Now Personal

Guides, news,

advice & more.

Yahoo! Groups

Your one stop

for beauty & fashion

tips and advice.

Fitness Zone

on Yahoo! Groups

Find Groups all

about healthy living.

.

__,_._,___

[completeJava] Re: How to make java Executable?

hi jahangir,

>   
>   Yeah Im able to run the sent JAR file. But im confused why iam
not able to run my JAR file? . Iam using java 1.5 and when i tried
out with java 1.4 on other system, im able to run it.
>

Once you checkout path on you machine. path might be set to a lower
version of JDK
. If the classes are compiled using JDK1.5 and if you try
to run the jar file using jdk less than jdk1.5 (ex:1.4 or 1.2) then it
will not undestrand the class format.

So once you try and checkout the path on you machine and you remove
path to all other jdk and jre except jdk1.5 which you are using.

Note: Many cases path will be set to jdk1.2 or jdk1.1.X when install
oracle on your machine.

Regards,
Thirupathi B.

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

It's Now Personal

Guides, news,

advice & more.

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

HDTV Support

on Yahoo! Groups

Help with Samsung

HDTVs and devices

.

__,_._,___

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

Hi santosh,
 
I think there is some problem, which i could not figure it out. Huh!!! I tried even with a  simple java program, but stil im getting the same error, "could not find the main class. program will exit".
 
Thnks,
Jahangir

santosh kumar <ren.santosh@gmail.com> wrote:
Just Try these Steps once again. Try it with a simple swing screen first. may be a frame.
 
Steps:
1. Put all class files in one folder. Note: The Main Class should be a public class.                           ----
2. Also add one file with any name and extension let us say manifest.txt
3. The file mentioned in step-2 should have the following entry
      Main-Class: MainClassName
4. Dont forget the newline after the Entry
5. Go to command propmt. Navigate to the folder and use the follwing command.
      jar -cfvm jardemo.jar manifest.txt *
6. The Jar File should be Ready
Regards
Santosh
Renaissance Softlabs
 


 
On 8/17/07, jahangir pasha <jheemu_26@yahoo.com> wrote:
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.



Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.

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

It's Now Personal

Guides, news,

advice & more.

Best of Y! Groups

Discover groups

that are the best

of their class.

HDTV Support

on Yahoo! Groups

Help with Samsung

HDTVs and devices

.

__,_._,___

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

Naveen,
 
Yeah Im able to run the sent JAR file. But im confused why iam not able to run my JAR file? . Iam using java 1.5 and when i tried out with java 1.4 on other system, im able to run it.
 
Naveen Kumar Reddy <mareddy_naveen@yahoo.com> wrote:
Jahangir,

Did you try running the JAR file I attached in my previous reply mail to you?

-Naveen

jahangir pasha <jheemu_26@yahoo.com> wrote:
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.



______________________________________________________________________________________
"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

Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.


Got a little couch potato?
Check out fun summer activities for kids.

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

It's Now Personal

Guides, news,

advice & more.

HDTV Support

on Yahoo! Groups

Help with Samsung

HDTVs and devices

Yahoo! Groups

Your one stop

for beauty & fashion

tips and advice.

.

__,_._,___

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

Jahangir,

Did you try running the JAR file I attached in my previous reply mail to you?

-Naveen

jahangir pasha <jheemu_26@yahoo.com> wrote:

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.



______________________________________________________________________________________
"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


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

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

It's Now Personal

Guides, news,

advice & more.

Yahoo! Groups

Join a yoga group

and take the stress

out of your life.

Yahoo! Groups

Get info and support

on Samsung HDTVs

and devices.

.

__,_._,___

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

Just Try these Steps once again. Try it with a simple swing screen first. may be a frame.
 

Steps:

1. Put all class files in one folder. Note: The Main Class should be a public class.                           ----

2. Also add one file with any name and extension let us say manifest.txt

3. The file mentioned in step-2 should have the following entry

      Main-Class: MainClassName

4. Dont forget the newline after the Entry

5. Go to command propmt. Navigate to the folder and use the follwing command.

      jar -cfvm jardemo.jar manifest.txt *

6. The Jar File should be Ready

Regards

Santosh

Renaissance Softlabs

 



 
On 8/17/07, jahangir pasha <jheemu_26@yahoo.com> wrote:

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.

New business?

Get new customers.

List your web site

in Yahoo! Search.

Best of Y! Groups

Discover groups

that are the best

of their class.

.

__,_._,___