eclipsesource / eclipsesource/J2V8

Fail to extract bundle file that's "libj2v8_macosx_x86_64.dylib" in jar file.

Open
#165 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

I want to use NodeJS module.
So, I build native parts and java parts on MacOS.
And load this jar in my project, and use NodeJS module.
But, i got following error.

```

Exception in thread "Thread-6" java.lang.IllegalStateException: J2V8 native library not loaded.
at com.eclipsesource.v8.V8.checkNativeLibraryLoaded(V8.java:161)
at com.eclipsesource.v8.V8.createV8Runtime(V8.java:146)
at com.eclipsesource.v8.V8.createV8Runtime(V8.java:122)
at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:56)
at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:43)
at com.eclipsesource.v8.angular.UniversalRenderingEngine.initNode(UniversalRenderingEngine.java:132)
at com.eclipsesource.v8.angular.UniversalRenderingEngine.run(UniversalRenderingEngine.java:57)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsatisfiedLinkError: Could not load J2V8 library. Reasons:
no j2v8_macosx_x86_64 in java.library.path
/Users/a13000/libj2v8_macosx_x86_64.dylib: dlopen(/Users/a13000/libj2v8_macosx_x86_64.dylib, 1): no suitable image found. Did find:
/Users/a13000/libj2v8_macosx_x86_64.dylib: unknown file type, first eight bytes: 0xEF 0xBF 0xBD 0xEF 0xBF 0xBD 0xEF 0xBF

at com.eclipsesource.v8.LibraryLoader.loadLibrary(LibraryLoader.java:75)
at com.eclipsesource.v8.V8.load(V8.java:68)
at com.eclipsesource.v8.V8.createV8Runtime(V8.java:142)
... 6 more
```

Don't you know sothing cause?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.