Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

difference between JDK, JRE, JVM, plugin

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can somebody clearly state the difference between JRE, JVM, and JDK.
can JVM and JRE be used interchangebly?
where does plugins fit into..
and where does security manager comes into picture...
I will appreciate if somebody cud help me find an ellobarote diagram explaining the above.
thanks
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We were just discussing this in beginner:
http://www.javaranch.com/ubb/Forum33/HTML/002782.html
The JVM is included in the JRE and the JRE is included in the JDK/SDK.

 
parul jain1
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the help. but i had already read that stuff.
it cleared some of my doubts but i wanted to know what all is part of JVM. where does plugin fit into and is security part of JVM or JRE???
to be precise exact boundaries of each of the above thru a diagram.
one diagram about JDK and JRE was good enough but it doesnt states where does JVM fit therein.
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JRE is just a program that can invoke a JVM and the library of SUN provided class and property files. It includes the plug-in.
Any security is involved in the JVM. If the JVM is NOT the java.exe in the JRE, then it must be one created by some vendor other than SUN. Netscape and IE each have a JVM created by their respective vendors that follow the SUN specs. They are intended to run in browsers and therefore follow the security rules for the "sandbox" that SUN specified for Applets. Then the browser also supplies a copy of the SUN libraries for whatever version of Java that it supports.
You can get a plugin from SUN to point the browser to the SUN JVM and class libraries which effectively upgrades the browser to a higher version of Java. This plug-in comes already bundled in the JRE, but you need to change the HTML to implement it.
http://java.sun.com/products/plugin/ http://java.sun.com/products/plugin/1.1.1/docs/tags.html#Intro
Is this what you mean?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sun delivers J2SE (Standard edition)in the form of a Software Development Kit (SDK) and an associated Java Runtime Environment (JRE).JRE can be downloaded separately.
SDK, the software development kit has the
1.APIs
2.Tools like Compiler,Debugger,JavaDOc etc
3.JRE
JRE provides the runtime environment to execute java application.Only with JRE istalled, one cannot develop java applications.
JRE has
1.JVM
2.Java Plug-in
3.Security,Locale support,Network info etc.
JVM is the one which loads the byte code (java source code is compiled to byte code) and interprets it to machine code.This machine code is executed.JVM is a part of JRE and hence these two can be used interchangeably
Java Plug-in is a software which directs applets or beans on web pages to use Sun's JRE in lieu of the default VM of the browser
JDK is just a short cut name for SDK
 
reply
    Bookmark Topic Watch Topic
  • New Topic