AJVM – Java virtual machine implemented in ActionScript 3.0

Published on JAMRIS
Journal of Automation, Mobile Robotics and Intelligent Systems
by Arkadiusz Janik, Jakub Krawczyk
February 2016

Abstract:
This paper describes the concept and implementation details of AJVM – state-of-the art Java Virtual Machine (JVM) implemented in ActionScript 3.0. Action Script is an objective programming language that supports compilation to Java bytecode. In the presented solu- tion there has been a novel idea utilized – to use the other Virtual Machine’s execution environment (Action- Script Virtual Machine) to build Java Virtual Machine. The subset of features specified in JVM Specification v.2 supported by AJVM has been chosen in a way which enables the machine to be used in many practical ap- plications both in the commercial context as well as in science. As the architecture of AJVM is modular, the ex- tension of its features in the future will not cause any difficulties. The implementation of AJVM in ActionScript 3.0 which is executed by ActionScript Virtual Machine (AVM) makes it possible to use Java code in applications written in ActionScript 3.0. It spawns many new oppor- tunities considering that AVM is a part of FlashPlayer – commonly used multimedia player available in the form of plugins for the majority of modern web browsers, in- cluding mobile versions.

AJVM – Java virtual machine implemented in ActionScript 3.0 (PDF)
http://www.jamris.org/images/ISSUES/ISSUE-2016-01/58_68_JanikKrawczyk.pdf


Yes, you are not dreaming, someone implemented a Java VM in ActionScript 3.0

Not only the paper is quite interesting to read but the source code is also available
http://galaxy.uci.agh.edu.pl/~ajanik/AJVM_source_files.zip

Here a little sample of the main class JVMRuntime

and an example on how to initialise it

1 Like

Hello.
Can you re-upload the source code?
The link is died

Hi
I didn’t keep an archive around so maybe you should contact the original author of the source code to get a copy, or if you’re lucky someone on the forum kept an archive?

hello
I have the source but it show me this message “Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, pdf).” when I want to upload.

Hi @Mido_Dimoa, yep that’s normal I tend limit some stuff for security reasons

ok so the .zip file extension is enabled now and it should work

Hi zwetan , now it show me ‘Sorry, new users can not upload attachments.’
anyway I upload it https://gofile.io/d/O2BboM

1 Like

ah yeah it is possible, you need to stay on the forum for a while to gradually get all the rights etc.

anyway I put it here
AJVM_source_files.zip (9.3 MB)

and also the PDF (in case this one vanish too)
58_68_JanikKrawczyk.pdf (1.7 MB)

thanks a lot @Mido_Dimoa to have digg out this archive :slight_smile:

2 Likes

Thank you very much, I got the files.
We are finding a solution to develop a plugin engine for our platform based on Adobe AIR.
This is a great clue to start.