posted 23 years ago
Hi Swati,
Yes,You can run a java program without JVM only if u compile the java file directly in to an EXE for the platform on which u want to run it.
otherwise as we do generally that we compile the .java file to a .class file that consists of byte codes now to run this class files we need a interpreter( JVM )that translates byte code to the native code for the platfom on which it is running and hence in this case JVM is inevitable.
but if u have a compiler that directly generates the EXE for the platform u want to run it on then certainly u won't need the JVM.but in this case u will be sacrificing java's platform independence.coz u'll need to have one exe for each platform.
hope this helps
regards
Deekasha