Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JVM

 
Suneetha, Rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can run the Java application programme without JVM.How it is possible? Help me!
------------------
 
Swati Samudra
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to run the java program without JVM. I don't think so coz Interpreter in the JVM translates the java bytecodes in to executable program which is then run by the computer system.
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic