Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not load jvmlib.dylib file when packaged in app #410

Open
kreenasmehta opened this issue Sep 26, 2017 · 2 comments
Open

Does not load jvmlib.dylib file when packaged in app #410

kreenasmehta opened this issue Sep 26, 2017 · 2 comments

Comments

@kreenasmehta
Copy link

kreenasmehta commented Sep 26, 2017

Application works with npm start.
Also, works fine on Windows. Issue is only on MacOS.

I am seeing this error when I try to run my application (I am using electron):

/Applications/ExportDataTool/App.app/Contents/Resources/app/node_modules/java/lib/nodeJavaBr…:21 /Applications/AppTool/App.app/Contents/Resources/app/node_modules/java/build/Release/nodejavabridge_bindings.node
angular.js:14642 Error: dlopen(/Applications/AppTool/App.app/Contents/Resources/app/node_modules/java/build/Release/nodejavabridge_bindings.node, 1): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Applications/AppTool/App.app/Contents/Resources/app/node_modules/java/build/Release/nodejavabridge_bindings.node
Reason: image not found
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Applications/AppTool/App.app/Contents/Resources/app/node_modules/java/lib/nodeJavaBridge.js:22:16)
at Object. (/Applications/AppTool/App.app/Contents/Resources/app/node_modules/java/lib/nodeJavaBridge.js:317:3) ""
(anonymous) @ angular.js:14642
(anonymous) @ angular.js:11102
ua @ angular.js:10522
q @ angular.js:9909
f @ angular.js:9149
(anonymous) @ angular.js:9014
(anonymous) @ angular.js:9405
d @ angular.js:9192
m @ angular.js:9959
B @ angular-route.js:1012
$broadcast @ angular.js:18698
(anonymous) @ angular-route.js:652
(anonymous) @ angular.js:17000
$digest @ angular.js:18182
$apply @ angular.js:18480
l @ angular.js:12501
s.onload @ angular.js:12655

@kreenasmehta kreenasmehta changed the title Does not load jbmlib.dyb file when packaged in app Does not load jvmlib.dyb file when packaged in app Sep 26, 2017
@kreenasmehta kreenasmehta changed the title Does not load jvmlib.dyb file when packaged in app Does not load jvmlib.dylib file when packaged in app Sep 26, 2017
@dasarindam
Copy link

@kreenasmehta I have done somekind of work around and posted in another issue log. Try if that works.
#379

@kreenasmehta
Copy link
Author

@dasarindam Thanks for your reply. This fix is related to Windows, whereas I was seeing issues on a Mac. I was able to fix my issue with these changes: #413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants