>I want to execute .class file without using MSDOS (e.g double
>click to run) but I don't know how .
IMHO I don't think that's feasible, If you wan't something like double click
just put in bat file,and the content of bat file is java main.class
But again it's just work around.