Do you know about runtime written in Java / J2ME that is able to read and execute a script / binary file?
I only wrote a language that was small enough for J2ME and did not use reflection / code creation / etc ...
http://www.hecl.org
This is an open source under a liberal license, so you can take it, study it, include it in your own programs or hack it so that it behaves the way you want.
There are other languages for “regular” Java that do more and faster and more fully.
Wikipedia has a complete list . However, it seems to you that you might be interested in Jython and JRuby .
I know x86 emulator written in Java, JPC
Many JVM languages are Clojure, for example. There are almost hundreds of JVM languages floating around, most of which are implemented in Java - Scala, Rhino, etc.
In terms of unique languages, the main ones are Clojure and Scala. In addition, the JVM platform has ports for many major languages, mainly high-level languages. These include Ruby -> JRuby, Python -> Jython, and JavaScript -> Rhino. A more complete list is here .
This is an impressive list of programming languages for the Java virtual machine:
Programming Languages for Java Virtual Machine JVM
The problem is that j2me may be too limited in its use of reflection to enable this, so you need to investigate your specific target.
In terms of java, there are generally many such as JRuby, Beanshell, Jython, etc.
I just listened to the Software Pokcast podcast , where the Sun developer talked about Maxine, which is a JVM that is mainly implemented in Java itself. It was a very interesting interview and technology.
So, it’s entirely possible that someday Java itself (which means the standard JVM) will be implemented in Java, just as C compilers are written in C (after a bit of bootstrapping).