javaswtwebassembly

How can I run Eclipse SWT applications in a browser as WebAssembly?


Is there a way to run Eclipse SWT applications in a webrowser as WebAssembly? CheerpJ v3.0 looks promising. Sadly it only supports Java 8 and SWING/AWT so far, not Eclipse SWT and it's not coming short term. According to them the issue is that solutions like Eclipse SWT don't use Java primarily but relay on JNI calls and thus it's more difficult. I checked for different alternatives to CheerpJ v3.0 but they all have different limitations that look like they don't work for this use case. Maybe I'm looking online for the wrong keywords.

Can someone provide a suggestion for this use case?


Solution

  • SWT is essentially a thin layer over the native GUI controls for a particular platform - the underlying code is completely different on each platform. A WebAssembly version would have to be a complete rewrite for this new platform, as far as I know this is not being considered.

    Eclipse RAP github uses the SWT API for a Web UI