This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

jre & jvm

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between jre and jvm ?
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 65806
250
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!