• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic