> Q: Can the java [sic] code run without java virtual machine ?
Normally, no, but there are some compilers like GCJ (Gnu Compiler for J*va)
that can run some Java code without a JVM.
> When we instal the jdk [sic], does the java virtual machine setup at the same
> time?
It installs at the same time, in the form of the "java" command (java.exe on
Windows), so I guess you could say its set up at the same time. There
wouldn't be much point to the JDK without the JVM, after all.
But simply installing the JDK doesn't *run* the JVM. That happens when you
(directly or indirectly) invoke the 'java' command.
> What is the relationship between the fold jre and java virtual machine ?
What do you mean by the "fold" JRE?
The JRE comprises the Java Virtual Machine and the rest of the Java Runtime
Environment, including various bootstrap JARs and other components.
Java, the programming language, is spelled with a capital "J".

Signature
Lew
Mike Schilling - 06 Mar 2008 07:19 GMT
>> Q: Can the java [sic] code run without java virtual machine ?
>
[quoted text clipped - 17 lines]
>
> What do you mean by the "fold" JRE?
I'm guessing it's a typo for "full" (possibly assisted by a
spell-checker that converted, say, "fuld" to "fold").
> The JRE comprises the Java Virtual Machine and the rest of the Java
> Runtime Environment, including various bootstrap JARs and other
> components.
> Java, the programming language, is spelled with a capital "J".
Sabine Dinis Blochberger - 06 Mar 2008 10:29 GMT
> >> What is the relationship between the fold jre and java virtual
> >> machine ?
[quoted text clipped - 3 lines]
> I'm guessing it's a typo for "full" (possibly assisted by a
> spell-checker that converted, say, "fuld" to "fold").
I thought he meant "folder". Either of the possibilties make sense to me
:p

Signature
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
Arne Vajhøj - 08 Mar 2008 03:27 GMT
>> When we instal the jdk [sic], does the java virtual machine setup at
>> the same
[quoted text clipped - 3 lines]
> (java.exe on Windows), so I guess you could say its set up at the same
> time. There wouldn't be much point to the JDK without the JVM, after all.
Especially not since much (possible most) of the functionality in JDK
is implemented in Java (tools.jar).
Arne
On Wed, 5 Mar 2008 20:56:38 -0800 (PST), 525
<xuemingzhang525@gmail.com> wrote, quoted or indirectly quoted someone
who said :
>Q: Can the java code run without java virtual machine ?
That's a matter of semantics. It is possible to compile to native
code. The vm is there only in the vaguest sense. see
http://mindprod.com/jgloss/nativecompiler.html
>When we
>instal the jdk, does the java virtual machine setup at the same
>time?
The vm only exists while Java.exe is running.
>What is the relationship between the fold jre and java
>virtual machine ?
When the JRE java.exe is running it is simulating the Java virtual
machine. In other words, it makes your computer pretend to be an
ideal Java computer that can run class files directly.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com