-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Greetings! I am trying to develop a JWebAssembly project but encountered difficulties when I just tried to build WASM for a simple @Export
:
At the first I used Oracle JDK 17.0.1. The error was "WASM compile failed with: Abstract or native method can not be used: java/lang/ref/Reference.refersTo0(Ljava/lang/Object;)Z
". After I read the discussion from #40, I switched to Oracle JDK 9.0.1. The error was changed to "WASM compile failed with: Abstract or native method can not be used: java/lang/StringCoding.err(Ljava/lang/String;)V
".
Eventually I realized that the project is tested using OpenJDK 8 so I switched again. This time I can successfully compile the WASM binary.
You can find the corresponding build.gradle
and source code here: https://github.com/hivdb/asiface/tree/41190e253010c445d57a5d928c62c530091e8143/asiwasm.