• 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

jre & jvm

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the difference between jre and jvm ?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A JVM (Java Virtual Machine) is an imaginary (theoretical) machine that executes Java bytecodes.

A JRE (Java Runtime Environment) is a software implementation of a JVM and all the standard Java libraries, and other bits and pieces that are needed to make the thing actually work.

A JDK (Java Developer's Kit) or J2SDK (Java 2 Software Developer's Kit) are two different names for the same thing: a JRE plus tools like the Java compiler, debugger, and other things needed for basic Java development.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have different versions of jdk installed on my pc and there are different jre folders. Is correct the classpath determines which "environment" (jre) to execute my java programs?

And some of the names in jdk bin folder and jre bin folder are the same, like java.exe and rmiregistry.exe. Are they actually the same things? Why having this duplication?

Thanks,
Dave
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
I have a simple doubt!

We are importing packages like java.io.*; in our classes !

Can we see the classes,along with all their members & its definitions, which are there in the respective packages like java.io package etc.

cheers,
Bye!
 
Marshal
Posts: 79945
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somebody else has asked the same question today; I hope it wasn't you asking twice.
Go to the API website, which you need to become familiar with, and click on the name of a package (if you have the frames view on, the list of packages seems to stay in the upper left frame).

If you want to see the actual text of the classes, you have to join the Sun Developers' Network.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aren't the source files for the Java libraries including with the JDK in the src.zip file?
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Timothy Frey:
Aren't the source files for the Java libraries including with the JDK in the src.zip file?



That zip has all the source code for the functionality that is implemented in the Java language.

On any platform there will be native code, packaged as .dll or .so files.

That code is (AFAIK) in C, and the C sources are not provided.

Guy
 
Dave Chawan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could anyone answer my question that I posted earlier under this topic?

I have different versions of jdk installed on my pc and there are different jre folders. Is correct the classpath determines which "environment" (jre) to execute my java programs?

And some of the names in jdk bin folder and jre bin folder are the same, like java.exe and rmiregistry.exe. Are they actually the same things? Why having this duplication?

Thanks,
Dave
 
So I left, I came home, and I ate some pie. And then I read 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