1

The wikipedia article on JVM languages states:

Some of these languages are interpreted by a Java program, and some are compiled to Java bytecode...

Which well-known, general purpose JVM languages are interpreted by a Java program?

Robert Campbell
  • 6,848
  • 12
  • 63
  • 93
  • 4
    I don't think that statement is correct. A language with a Java interpreter is not a "JVM language", it's just an interpreted language. IMO a JVM language (which is in fact a misnomer, they'd be languages with a JVM implementation) is one that gets compiled to JVM bytecode – cthom06 Sep 10 '10 at 18:10
  • @cthom06 - I think your answer is actually the correct one. Please consider adding an answer so I can accept it. – Robert Campbell Sep 12 '10 at 13:08
  • @Zac - I still think cthom06's point is correct. The whole reason I asked the question is because the Wiki statement didn't sit right with me and wanted a second opinion. Your answer was helpful as well, however, so I upvoted it an encourage anyone reading this to do the same. – Robert Campbell Sep 28 '10 at 08:01

5 Answers5

3

Mozilla Rhino (the Java javascript engine) is interpreted.

JRuby, Jython, and Scala are examples that are mostly compiled to bytecode.

Zac Bowling
  • 6,508
  • 1
  • 27
  • 26
1

Reposted as answer:

I don't think that statement is correct. A language with a Java interpreter is not a "JVM language", it's just an interpreted language. IMO a JVM language (which is in fact a misnomer, they'd be languages with a JVM implementation) is one that gets compiled to JVM bytecode

cthom06
  • 9,389
  • 4
  • 36
  • 28
0

Maybe the article is referring to languages like JRuby or Jython...

Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
  • IINM, Jython does produce jvm bytecode (with an optional output of java source). It isn't really run over an interpreter written in Java (which is what I think the OP wants). – MAK Sep 12 '10 at 19:14
0

Well Groovy for one is not compiled.

Ren
  • 93
  • 1
  • 13
0

Another JVM language SnapScript is interpreted so that it can be run on Dalvik and ART (Android) in addition to the standard JRE.

ng.
  • 7,099
  • 1
  • 38
  • 42