• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We can run the Java application programme without JVM.How it is possible? Help me!
------------------
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic