Skip to content

Porting to web #11

@Starcommander

Description

@Starcommander

Hello @digitalgust

I really like your minimalistic virtual machine.

So I tried to port your miniJVM to webassembly using emscripten.
Currently a lot of things are working fine.
You can try it out here:
https://java-on-web.org/examples/

But some features are still missing.

  • GC is disabled, because it blocks the browsers main-thread (exactly after 10 minutes).
  • Networking does not work, has to be modified.

Maybe you would like to look into my changes?
In future we can also merge the changes to the main project, if desired.

Additional ideas:

  • Allow to load a jar directly using an url link.
  • Add more java dependencies that can be loaded like java modules (java.base, java.xml, java.sql)
  • Add a javax.swing like wrapper that allows to load gui-projects without porting to miniJVM
  • Upgrade the jvm from java8 to javaXX .... 17?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions