i am able to run it by
1.java -jar myprog.jar
2.javaw -jar myprog.jar
but when i try to do
javaw myprog.jar
it says could not find main-class
help me please
You need to modify the MANIFEST.MF file present in the META-INF directory and give the name of the class containing the main method.
Check this tutorial