executable jar file

i have created a executable jar file and coppied it to the \\documemnt and settings\......\startup folder .but it doesnot run when window startsup and will produce an error"could not find the main class .program will exit.

.but when i made a double click it works fine.what is the problem related with this.

[320 byte] By [ruhunu_apia] at [2007-11-27 7:39:07]
# 1

> i have created a executable jar file and coppied it

> to the \\documemnt and settings\......\startup

> folder .but it doesnot run when window startsup and

> will produce an error"could not find the main

> class .program will exit.

Which in other words means: you created something, but not an executable JAR.

> but when i made a double click it works fine.what is

> the problem related with this.

Your manifest is incorrect. Check the Main-Class entry.

CeciNEstPasUnProgrammeura at 2007-7-12 19:19:44 > top of Java-index,Java Essentials,Java Programming...
# 2
CeciNEstPasUnProgrammeur I like this guy you should trust him... He has given me a career..
Yannixa at 2007-7-12 19:19:44 > top of Java-index,Java Essentials,Java Programming...
# 3

> > but when i made a double click it works fine.what is

> > the problem related with this.

>

> Your manifest is incorrect. Check the Main-Class

> entry.

Huh? If the Main-Class entry in the MANIFEST is not correct, how comes double-clicking works? Doesn't that use the same information?

thomas.behra at 2007-7-12 19:19:44 > top of Java-index,Java Essentials,Java Programming...
# 4

> Huh? If the Main-Class entry in the MANIFEST is not

> correct, how comes double-clicking works? Doesn't

> that use the same information?

I overlooked that double-clicked part... not sure why it works - I suspect accidental classpath magic - but the same argument from my side would be: if double-clicking works, why that error message?

CeciNEstPasUnProgrammeura at 2007-7-12 19:19:44 > top of Java-index,Java Essentials,Java Programming...