elysee chung

Greenhorn
+ Follow
since Jul 25, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by elysee chung

Ohter languages
Source code --(compile)--> Object code --(link)--> Executable code (file)

Java
Source code --(javac)----> Bytecode
...........................Bytecode --(JVM)------> Executable code (No real file exist)

So, I think Just-in-time-linker is more correct. is it ?
19 years ago
Sorry question again!

According to Java web site
http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
******
The bytecodes can then be run on any implementation of the Java VM.
******

1.Running Java program we need JVM only.
2.JVM is included in JRE. ==> JRE have many extra function than JVM.
3.We can not use those extra function inside the Java program.
(Because JVM don't included those extra function.)

Question is

From Java web site
http://java.sun.com/docs/books/tutorial/getStarted/intro/cando.html

The figure (gs5.gif)

Which part is JVM ?
Java HotSpot Runtime ?
19 years ago
So
JVM is included in JRE, and JRE is included in JDK.
Because there is no JVM's implementation only.
If we want to run Java program,
we should install JRE.
(Though we need JVM only.)
19 years ago
From java web site
http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
**********
Java bytecodes help make "write once, run anywhere" possible.
You can compile your program into bytecodes on any platform that has a Java compiler.
The bytecodes can then be run on any implementation of the Java VM.
That means that as long as a computer has a Java VM,
the same program written in the Java programming language can run on Windows 2000, a Solaris workstation, or on an iMac.
***********

I never find any article explain the difference between JVM & JRE.
(or JVM is a concept only, no real implementation)
19 years ago
So, If we want to run Java program, we should install JRE not JVM ?

(Java program run on JRE only!)
19 years ago
>>> "JVM is included in JRE and runs your code. "

Why use JRE not JVM ?
19 years ago
Sorry, stupid question!
What is the difference between JVM and JRE ?
19 years ago