Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

What is the relation between the OS and the JVM(Java)

Thread view: 
Satya - 16 May 2006 04:08 GMT
How do Java relate to OS.
Will everything related to jdk ,jre work the same.
What is the difference between JDK and JRE.
jmcgill - 16 May 2006 04:40 GMT
> How do Java relate to OS.
> Will everything related to jdk ,jre work the same.
> What is the difference between JDK and JRE.

Well, one vision of Java is that the bytecode machine could be an actual
machine, and some hardware java machines have been implemented.

But realistically in the land of the general purpose computer, the java
runtime is a program that runs under your OS.  That means it uses your
OS for IO, it gets its memory from your OS, your OS schedules the
process and gives it permissions, and so on, just like any other program.

But the runtime is a special kind of program of course, because it is a
virtual machine implementation; essentially, it pretends to be a CPU
with its own datapath and control architecture, its own memory
management, and so on.  And this virtual machine is able to execute Java
Byte Code as its machine language.  You could write, and people have
written, this byte code as if it were an assembly language.  You could
also make other languages compile to this byte code.

But the JVM does not have any special magic powers, it's just a program,
and it can only do what programs can do on your platform.

The JDK is something different.  The JDK is the set of components
required to compile a java program into byte code.  In common terms,
that is the compiler, the assembler, and the linker, but it does not
really fit that simple model very well.  You can certainly study the
design of the compiler and there is a great deal of documentation available.

So the JDK usually includes a JRE.  The JRE is the minimal set of
components required to *run* a java program.   Some java programs with a
certain amount of complexity require a JDK to run, but generally this is
not the case.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.