Java Virtual Machine Launcher - Can't find Main Class - Program Will exit

how can I fix the above noted problem?
[45 byte] By [Sammya] at [2007-10-3 7:24:51]
# 1
Sounds like you are try to launch with the -jar argument but the JAR file doesn't have a Main-Class attribute in the manifest. If so then put the JAR file on your class path and specify the name of the main class, eg: something like: java -classpath foo.jar foo.Bar
alan.batemana at 2007-7-15 2:23:20 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
How do I put the JAR file in the path. I'm LOST!!(smile)
LaDorsaa at 2007-7-15 2:23:20 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

Try this

java -XbootClasspath/a -jar <<Prog name>>

I think you are trying in windows XP.

Also you need to modify if there are any other jars to be reference. For eg if a.jar is also required for this try as below

java -XbootClasspath/a:a.jar -jar <<Prog name>>

je22chapa at 2007-7-15 2:23:20 > top of Java-index,Java HotSpot Virtual Machine,Specifications...