Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the java.exe program the actual VM? [duplicate]

Tags:

java

jvm

The JDK comes with the java.exe (for windows) program. You can use it to start programs from the command line.

Wikipedia says it's the 'class loader', and 'an interpreter for class files'.

Is this the actual full blown JVM? Is it a 'smaller, lightweight' JVM? Is it something else?

like image 291
Aviv Cohn Avatar asked Sep 26 '14 07:09

Aviv Cohn


People also ask

What does Java EXE do in Java VM?

java.exe feeds your class files to JVM so it can perform JIT and interpret the code. java.exe by itself is not a VM, no. It launches one and provides all necessary data for it.

What is the difference between Java Exe and javaw Exe?

java.exe is a wrapper around the DLL so that people can actually run Java classes without the need for a custom launcher application. It is a Win32 Console application, so Windows will open a fresh Command Prompt window if the exe is not run from a batch file. javaw.exe is a wrapper like java.exe, but it is a Win32 GUI application.

What is JVM DLL in Java?

Show activity on this post. jvm.dll is the actual Windows implementation of the JVM (or better, the main entry point). C or C++ applications can use this DLL to run an embedded Java runtime, and that would allow the application to interface directly with the JVM, e.g. if they want to use Java for its GUI.

Why can't I find a Java virtual machine in my path?

No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program. Run the DS CLI installer again from the console, and provide the path to the JVM using the LAX_VM option. The following examples represent paths to the correct version of Java:


1 Answers

java.exe is just a VM launcher. It creates a VM and runs it. JVM located in the jvm.dll (or libjvm.so on Linux).

I work with OpenJDK (NOT in OpenJDK team) and can tell you more details, if you are interested.

like image 160
Kastaneda Avatar answered Nov 15 '22 18:11

Kastaneda