/javify

Javascript Java Compiler

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

Javascript Java Compiler

jamvm with classpath compiled to a huge js file via emscripten

Feel free to contribute!

Installation

  1. Install emscripten by apt-get install emscripten or goto emscripten folder and make (this option requires 20GB of free space and 8GB of RAM)

  2. Compile classpath via cd classpath && ./javify-build.sh

  3. Compile JamVM via cd jamvm && ./javify-build.sh

  4. Link them together via cd jamvm && emcc ./lib/libjavalang.so ./lib/libjvm.so src/jam.o -s TOTAL_MEMORY=167772160

  5. Test it js a.out.js

Other required stuff

Packages: cmake build-essential

Testing in browser

TODO

Test examples