Closed vanilson closed 3 years ago
Hi Vanilson,
Actually I never tested RefDiff in MacOS. Could you try again with the changes I commited to the repo today? I added a dependency to j2v8_macosx_x86_64, which was missing in the classpath.
Hi @danilofes,
I found the same issue on Linux. I'm using Ubuntu 18.04 with Eclipse. All the dependencies are present in classpath, but the error still happening.
It is the same error:
Exception in thread "main" java.lang.IllegalStateException: J2V8 native library not loaded
at com.eclipsesource.v8.V8.checkNativeLibraryLoaded(V8.java:195)
at com.eclipsesource.v8.V8.createV8Runtime(V8.java:149)
at com.eclipsesource.v8.V8.createV8Runtime(V8.java:125)
at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:58)
at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:45)
at refdiff.parsers.js.JsPlugin.<init>(JsPlugin.java:43)
Hi @rodrigo-brito,
I changed the version of j2v8_linux_x86_64 and the issue seens to be solved. Could you check again with my last commit from the master branch? Note that you should refresh your classpath (e.g. run ./gradlew eclipse again)
Hi @danilofes, thank you for the support.
I solved the issue by removing Windows and Mac libraries for j2v8 in build.gradle
file, purging the Gradle cache and reinstalling the dependencies.
For some reason, the precedence of execution loaded the Windows library instead of the Linux version.
I'm not sure if the issue is fixed but I'm closing it as I'm not able to test in Mac.
The following error happens when running
RefDiffExample
:Environment: