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 / March 2008

Tip: Looking for answers? Try searching our database.

what the java virtual machine truely is?

Thread view: 
525 - 06 Mar 2008 04:56 GMT
Q:  Can the java code run without java virtual machine ?   When we
instal the jdk, does the java virtual machine setup at the same
time?   What is the relationship between the fold jre  and   java
virtual machine ?
Lew - 06 Mar 2008 06:13 GMT
> 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
Roedy Green - 06 Mar 2008 12:41 GMT
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


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.