Abstract. After the doubtful success of content-based e-learning systems, simulations are gaining momentum within the e-learning community. Along this line we are working on JV2 M, a simulation-based learning environment to teach the Java Virtual Machine (JVM) and the compilation of object-oriented languages. This paper describes both the metaphorical simulation of the JVM and the knowledge our system possesses and details an execution example that reflects how all the information is used on it.