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.
> 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.
> > 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?
> 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?