Skip to main content

Jar file execution

2 replies [Last post]
rajisp
Offline
Joined: 2008-01-23
Points: 0

Hi,
I think mine is a common problem,but I cant find the solution for that.
I successfully create a jar file and I can execute that using the command
java -jar jarfile.

But when I tried to open that jar file with Java Tm Platform SE Binary am getting a Java virtual machine Launcher message conatining

Could not find the main classs.Program will exit.

Is there any solution to make the jar file execute while clicking on that?

Thanks
rajisp

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jwenting
Offline
Joined: 2003-12-02
Points: 0

read the documentation of the jar command on the creation of executable jar files.
It's all there for those who actually RTFM.

rajisp
Offline
Joined: 2008-01-23
Points: 0

Yes. I read many tutorials that are available about this problem..
My jar file is executing while using the command, the exception occured when am trying to execute by double clicking on that jar file.