Executable jar does not execute !!

Dear all,

i am having a bunch of classes i create a jar out of them

now

when i attempt to run this jar in another machine i found the following prblames

1. i get the error related to "mian does not exist"

2. in another machine it ask me extract the jar file (i think coz win rar is installed)

while in fact that jar file cotains a main class and i want to execute that jar file when ever some one click on that.

So any one please guide to achieve the solution of my problame.

thanking you

ishan

[555 byte] By [ishana] at [2007-11-27 8:49:58]
# 1
1.) your manifest file seems to be wrong http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html2.) .jar files have to be mapped to java.exe in the file system
PhHeina at 2007-7-12 21:00:05 > top of Java-index,Java Essentials,New To Java...
# 2
> 1. i get the error related to "mian does not exist"In the file Manifest.mf you have to specify which is your main class.> 2. in another machine it ask me extract the jar fileSee whether the JRE is present in the machine.
achyuthba at 2007-7-12 21:00:05 > top of Java-index,Java Essentials,New To Java...
# 3

Your manifest file seems to be wrong.

give the main class name in your manifest file.

for example:

here main class name is NewSearch.java

and the jar file name is Search.jar.

the content of manifest file is

Manifest-Version: 1.0

Main-Class: NewSearch

Command: jar cvfm Seach.jar Manifest.mf *.class

I hope this will help you.

Saikumara at 2007-7-12 21:00:05 > top of Java-index,Java Essentials,New To Java...