You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question has some significant parallels with how you can run C# within the browser using WebAssembly. Both Java & C# run within their own virtual machine, the JRE and .Net CLR respectively.
In order to run C# within WebAssembly, the Blazor project took one of the open source CLR implementations and compiled it to WebAssembly. This allows C# DLLs to run within the browser.
Exactly the same solution could be used to run Java in the browser, however, a key to this would most likely bee finding a suitable open source JRE implementation that can be compiled to WebAssembly.
The text was updated successfully, but these errors were encountered:
Ruf einfach mal jlink --output test --add-modules java.base auf. Dann erhältst Du im Verzeichnis test ein "JRE", das nur das Base-Module enthält.
Eigene Module packst Du mit --module-path und --add-modules dazu. Wenn Du einen eigenen Launcher haben willst, packst Du noch --launcher hintendran.
jlink --output test --module-path foo.jar --add-modules java.base,meinModul --launcher meinTest=meinModul
Erzeugt ein Verzeichnis test, das ein JRE enthält, das aus dem Base-Modul und meinModul besteht. Dabei ist foo.jar ein "modulares JAR" mit dem Modul "meinModul". Außerdem wird ein ausführbarer Launcher namens "meinTest" im bin-Verzeichnis erstellt (unter Windows wäre das meinText.exe).
This question has some significant parallels with how you can run C# within the browser using WebAssembly. Both Java & C# run within their own virtual machine, the JRE and .Net CLR respectively.
In order to run C# within WebAssembly, the Blazor project took one of the open source CLR implementations and compiled it to WebAssembly. This allows C# DLLs to run within the browser.
Exactly the same solution could be used to run Java in the browser, however, a key to this would most likely bee finding a suitable open source JRE implementation that can be compiled to WebAssembly.
The text was updated successfully, but these errors were encountered: