René's URL Explorer Experiment


Title: Electron/Java compatiblity? · Issue #379 · joeferner/node-java · GitHub

Open Graph Title: Electron/Java compatiblity? · Issue #379 · joeferner/node-java

X Title: Electron/Java compatiblity? · Issue #379 · joeferner/node-java

Description: I'm trying to create an Electron application that uses Java to access some legacy code. I could get it to work with NW.js, but I can't seem to get it to work with Electron on Windows. Here's what I've done: Installed the windows-build-to...

Open Graph Description: I'm trying to create an Electron application that uses Java to access some legacy code. I could get it to work with NW.js, but I can't seem to get it to work with Electron on Windows. Here's what I...

X Description: I'm trying to create an Electron application that uses Java to access some legacy code. I could get it to work with NW.js, but I can't seem to get it to work with Electron on Windows. Here&...

Opengraph URL: https://github.com/joeferner/node-java/issues/379

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Electron/Java compatiblity?","articleBody":"I'm trying to create an Electron application that uses Java to access some legacy code. I could get it to work with NW.js, but I can't seem to get it to work with Electron on Windows. Here's what I've done:\r\n\r\n- Installed the windows-build-tools npmjs module (that in turns installs Python and the MS VS command line build).\r\n\r\n- Cloned the electron-quick-start and verified that it built and ran correctly on my system.\r\nInstalled the Java module (version 0.80) into package.json. After downloading, it did a successful build process.\r\n\r\n- Removed the node_modules directory and did an npm install again. Again, I can see the Java support files (.cpp) compiling as expected, with no errors.\r\n\r\n- Ran the electron-quick-start again, and it came up with no problems.\r\n\r\n- Added the line const java = require('java') to the main.js of electron-quick-start\r\n\r\n- When I run the sample, I see the following error:\r\n```\r\nApp threw an error during load\r\nError: A dynamic link library (DLL) initialization routine failed.\r\n\\\\?\\C:\\devel\\electron-quick-start\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node\r\nat process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)\r\nat Object.Module._extensions..node (module.js:598:18)\r\nat Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)\r\nat Module.load (module.js:488:32)\r\nat tryModuleLoad (module.js:447:12)\r\nat Function.Module._load (module.js:439:3)\r\nat Module.require (module.js:498:17)\r\nat require (internal/module.js:20:19)\r\nat C:\\devel\\electron-quick-start\\node_modules\\java\\lib\\nodeJavaBridge.js:21:16\r\nat Object.\u003canonymous> (C:\\devel\\electron-quick-start\\node_modules\\java\\lib\\nodeJavaBridge.js:316:2)\r\n```\r\n\r\n- At this point, I tried installing and running electron-rebuild. When I re-ran the sample, I then got this error:\r\n```App threw an error during load\r\nError: Cannot find module '../build/jvm_dll_path.json'\r\nat Module._resolveFilename (module.js:470:15)\r\nat Function.Module._resolveFilename (C:\\devel\\electron-quick-start\\node_modules\\electron\\dist\\resources\\electron.asar\\common\\reset-search-paths.js:35:12)\r\nat Function.Module._load (module.js:418:25)\r\nat Module.require (module.js:498:17)\r\nat require (internal/module.js:20:19)\r\nat C:\\devel\\electron-quick-start\\node_modules\\java\\lib\\nodeJavaBridge.js:3:21\r\nat Object.\u003canonymous> (C:\\devel\\electron-quick-start\\node_modules\\java\\lib\\nodeJavaBridge.js:316:2)\r\nat Module._compile (module.js:571:32)\r\nat Object.Module._extensions..js (module.js:580:10)\r\nat Module.load (module.js:488:32)\r\n```\r\n- So, I thought maybe at this point, I need to rebuild the Java, so I did the following:\r\n```cd node_modules\\java\r\nnode-gyp rebuild\r\nnpm run postinstall\r\ncd ..\\..\r\n```\r\n\r\nUnfortunately, when I ran the sample, I simply got the first error message again.\r\nAny ideas out there? I feel like I'm really close, but can't quite get the build steps correct.\r\nJohn","author":{"url":"https://github.com/vrmerlin","@type":"Person","name":"vrmerlin"},"datePublished":"2017-02-08T21:52:47Z","url":"https://github.com/joeferner/node-java/issues/379"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cf288306-5cbb-3417-d648-2d1473318127
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC944:3DE870:2653782:354548A:6AFD4178
html-safe-noncef5e761f1312164340067a3368e54e3afa4273085915dd4483d6f4da7464f2e02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQ0OjNERTg3MDoyNjUzNzgyOjM1NDU0OEE6NkFGRDQxNzgiLCJ2aXNpdG9yX2lkIjoiNzY2OTUyMDI4OTA1ODYwMzM4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8622828e63d0a9787ce60096813a3d17e87915e92978a47e2a22da16edd98a40
hovercard-subject-tagissue:206336213
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/joeferner/node-java/379/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09d7f36a43d0df5223a302beef7dc11019a2055a010b261d6ad3d9a8d585b5fc/joeferner/node-java/issues/379
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09d7f36a43d0df5223a302beef7dc11019a2055a010b261d6ad3d9a8d585b5fc/joeferner/node-java/issues/379
og:image:altI'm trying to create an Electron application that uses Java to access some legacy code. I could get it to work with NW.js, but I can't seem to get it to work with Electron on Windows. Here's what I...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevrmerlin
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-preview
go-importgithub.com/joeferner/node-java git https://github.com/joeferner/node-java.git
octolytics-dimension-user_id808857
octolytics-dimension-user_loginjoeferner
octolytics-dimension-repository_id3228734
octolytics-dimension-repository_nwojoeferner/node-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3228734
octolytics-dimension-repository_network_root_nwojoeferner/node-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/joeferner/node-java/issues/379#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjoeferner%2Fnode-java%2Fissues%2F379
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjoeferner%2Fnode-java%2Fissues%2F379
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=joeferner%2Fnode-java
Reloadhttps://github.com/joeferner/node-java/issues/379
Reloadhttps://github.com/joeferner/node-java/issues/379
Reloadhttps://github.com/joeferner/node-java/issues/379
joefernerhttps://github.com/joeferner
node-javahttps://github.com/joeferner/node-java
Codehttps://github.com/joeferner/node-java
Issues208 (208)https://github.com/joeferner/node-java/issues
Pull requests2 (2)https://github.com/joeferner/node-java/pulls
Actionshttps://github.com/joeferner/node-java/actions
Projectshttps://github.com/joeferner/node-java/projects
Wikihttps://github.com/joeferner/node-java/wiki
Security and qualityhttps://github.com/joeferner/node-java/security
Insightshttps://github.com/joeferner/node-java/pulse
https://github.com/joeferner/node-java
New issuehttps://github.com/login?return_to=https://github.com/joeferner/node-java/issues/379
New issuehttps://github.com/login?return_to=https://github.com/joeferner/node-java/issues/379
Electron/Java compatiblity?https://github.com/joeferner/node-java/issues/379#top
https://github.com/vrmerlin
vrmerlinhttps://github.com/vrmerlin
on Feb 8, 2017https://github.com/joeferner/node-java/issues/379#issue-206336213
https://github.com/dasarindam
dasarindamhttps://github.com/dasarindam
on Feb 9, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-278598777
https://github.com/dasarindam
dasarindamhttps://github.com/dasarindam
on Feb 9, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-278661141
https://github.com/vrmerlin
vrmerlinhttps://github.com/vrmerlin
on Feb 9, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-278673762
https://github.com/vrmerlin
vrmerlinhttps://github.com/vrmerlin
on Feb 9, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-278804622
https://github.com/dasarindam
dasarindamhttps://github.com/dasarindam
on Feb 10, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-278861018
https://github.com/vrmerlin
vrmerlinhttps://github.com/vrmerlin
on Feb 10, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-279000055
@joefernerhttps://github.com/joeferner
@MarshallOfSoundhttps://github.com/MarshallOfSound
electron/electron#8638 (comment)https://github.com/electron/electron/issues/8638#issuecomment-278807945
https://github.com/dasarindam
dasarindamhttps://github.com/dasarindam
on Feb 10, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-279013378
https://github.com/yahyaKacem
yahyaKacemhttps://github.com/yahyaKacem
on Apr 24, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-296672950
@dasarindamhttps://github.com/dasarindam
electron-forgehttps://github.com/electron-userland/electron-forge
https://github.com/dasarindam
dasarindamhttps://github.com/dasarindam
on May 30, 2017https://github.com/joeferner/node-java/issues/379#issuecomment-304793396
https://cloud.githubusercontent.com/assets/3789368/26571661/8795d596-4534-11e7-9d1a-db7defbf95b6.png
https://github.com/gpinkham
gpinkhamhttps://github.com/gpinkham
on Apr 30, 2019https://github.com/joeferner/node-java/issues/379#issuecomment-488135972
@joefernerhttps://github.com/joeferner
Sign up for freehttps://github.com/signup?return_to=https://github.com/joeferner/node-java/issues/379
Sign in to commenthttps://github.com/login?return_to=https://github.com/joeferner/node-java/issues/379
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.