What does this mean when you say "This language runs on the JVM"?

I have heard a lot lately about Scala, Clojure, etc., which should run on the JVM. Does this mean that these languages โ€‹โ€‹implement the Java API under it? What does this mean that the language runs under the JVM?

Thanks.

+7
source share
4 answers

This means that these languages โ€‹โ€‹can be compiled into Java bytecode that runs the JVM.

+8
source

This means that at some point, the language compiles to the JVM byte code. The language does not need to implement the Java API; The Java API already exists (more or less all the time).

It just means that if you have a JVM, you should be able to run the language without another virtual machine (although you will need all the class files needed for the language compiler and libraries).

+6
source

There is a virtual machine in which java runs one (JVM), which abstracts more problems at the machine level. These languages โ€‹โ€‹simply use it as an intermediate language that opposes writing architecture-specific instructions.

+4
source

This usually just means that you need to install the JRE to make sure they can execute.

And usually they do not require the JDK, which is used to compile java code into a .class file. Instead, they provide their own compiler that runs on the JRE that you installed.

So, in general, you just need Java support (specific version) at runtime.

if you need more information: normabmcclelland@linuxmirroreast.com

+2
source

All Articles