Skip to content

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

Open

Description

@kreenasmehta

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

Activity

  1. changed the title [-]Does not load jbmlib.dyb file when packaged in app[/-] [+]Does not load jvmlib.dyb file when packaged in app[/+] on Sep 26, 2017
  2. changed the title [-]Does not load jvmlib.dyb file when packaged in app[/-] [+]Does not load jvmlib.dylib file when packaged in app[/+] on Sep 26, 2017
  3. dasarindam commented on Oct 19, 2017

    @dasarindam

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

  4. kreenasmehta commented on Oct 19, 2017

    @kreenasmehta
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions