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
But when I run my code using the example SimpleExample.java almost exactly I recieve the error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/wasmer/Instance
at com.clopen.Clopen.main(Clopen.java:15)
Caused by: java.lang.ClassNotFoundException: org.wasmer.Instance
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
Pretty much it compiles, using the wasmer-jni-amd64-linux-0.2.0.jar as a dependency but cannot find the org.wasmer.Instance object.
Maybe a solution to this is to add the program to the maven repository. I cannot use gradle because this test example of using rust to compile to wasm to run in java will be incorporated into a much larger maven project.
The text was updated successfully, but these errors were encountered:
I think I found the source of the problem os.arch isn't consistent and different jvm's report different values. My mac is reporting "x86_64" I think just checking for both values would fix it
Describe the bug
I use maven and not gradle so I built the jar as described in the readme, then I installed the jar using maven cli:
This puts it in my local maven repo. Then I added it as a dependency:
But when I run my code using the example
SimpleExample.java
almost exactly I recieve the error:Pretty much it compiles, using the
wasmer-jni-amd64-linux-0.2.0.jar
as a dependency but cannot find theorg.wasmer.Instance
object.Maybe a solution to this is to add the program to the maven repository. I cannot use gradle because this test example of using rust to compile to wasm to run in java will be incorporated into a much larger maven project.
The text was updated successfully, but these errors were encountered: