René's URL Explorer Experiment


Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java · GitHub

Open Graph Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java

X Title: node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120) · Issue #541 · joeferner/node-java

Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\main\electron\node_modules\java\build\Relea...

Open Graph Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai...

X Description: Hello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai...

Mail addresses
jianchang69@gmail.com

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

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120)","articleBody":"Hello.\r\n\r\nWhen using version `0.12.1` , building and running the electron app works, but not with using version `0.12.2`.\r\n\r\nWhen I try to use the code below, it fails on `0.12.2` since `electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node` does not exist. However on `0.12.1` this does exist (see screenshots below). This reflects also what the logs show.\r\n\r\n### Execution:\r\n```\r\nelectron-rebuild -f -w java && electron-packager . %electron_application% --overwrite --out %out% --extra-resource=%extra_resource_viewer% --extra-resource=%extra_resource_app% --icon=%electron_icon% --prune\r\n```\r\n\r\nI would be very glad to get some help on this, spend a day trying to resolve it but without any success. When you need more information, please notify me.\r\n\r\n### Versions:\r\n\r\n#### Software\r\n| software                                    | version |\r\n|---------------------------------------------|---------|\r\n| Visual Studio Community 2019                | 16.11.6 |\r\n| Workload \u003cbr>`Desktop development with C++` | yes     |\r\n| Python                                      | 3.10.0  |\r\n\r\n#### Dependencies\r\n| dependency       | version |\r\n|------------------|---------|\r\n| node             | 16.5.0  |\r\n| electron         | 12.2.2  |\r\n| electron-packager | 15.4.0 |\r\n| electron-rebuild | 3.2.5   |\r\n| node-java        | 0.12.2  |\r\n\r\n### Logs / Stacktrace (partially in German)\r\n\r\n```log\r\n[INFO] --- frontend-maven-plugin:1.12.0:npm (npm package electron app) @ electronbrowser ---\r\n[INFO] Running 'npm run build-electron' in C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\r\n[INFO]\r\n[INFO] > Electron-Browser@1.0.0 build-electron\r\n[INFO] > npm run rebuild && npm run package-electron\r\n[INFO]\r\n[INFO]\r\n[INFO] > Electron-Browser@1.0.0 rebuild\r\n[INFO] > electron-rebuild -f -w java\r\n[INFO]\r\n[INFO] - Searching dependency tree\r\n[INFO] Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm?glichen, m?ssen Sie den Schalter \"-m\" hinzuf?gen.\r\n[INFO]   java.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO]   javaObject.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO]   javaScope.cpp\r\n[INFO]   methodCallBaton.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO]   nodeJavaBridge.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO]   utils.cpp\r\n[INFO] C:\\Users\\myUserName\\.electron-gyp\\12.2.2\\include\\node\\v8.h(1650,55): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO]   win_delay_load_hook.cc\r\n[INFO]      Bibliothek \"C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.lib\" und Objekt \"C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.exp\" werden erstellt.\r\n[INFO] utils.obj : error LNK2001: Nicht aufgel?stes externes Symbol \"\"__declspec(dllimport) public: class std::shared_ptr\u003cclass v8::BackingStore> __cdecl v8::ArrayBuffer::GetBackingStore(void)\" (__imp_?GetBackingStore@ArrayBuffer@v8@@QEAA?AV?$shared_ptr@VBackingStore@v8@@@std@@XZ)\". [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node : fatal error LNK1120: 1 nicht aufgel?ste Externe [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]\r\n[INFO] C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\Release\\nodejavabridge_bindings.node : fatal error LNK1120: 1 nicht aufgel?ste Externe [C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java\\build\\nodejavabridge_bindings.vcxproj]Ã? Rebuild Failed\r\n[INFO]\r\n[INFO] An unhandled error occurred inside electron-rebuild\r\n[INFO] node-gyp failed to rebuild 'C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java'.\r\n[INFO] For more information, rerun with the DEBUG environment variable set to \"electron-rebuild\".\r\n[INFO]\r\n[INFO] Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 1\r\n[INFO]\r\n[INFO]\r\n[INFO]\r\n[INFO] Error: node-gyp failed to rebuild 'C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\java'.\r\n[INFO] For more information, rerun with the DEBUG environment variable set to \"electron-rebuild\".\r\n[INFO]\r\n[INFO] Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 1\r\n[INFO]\r\n[INFO]\r\n[INFO]     at NodeGyp.rebuildModule (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-type\\node-gyp.js:117:19)\r\n[INFO]     at processTicksAndRejections (node:internal/process/task_queues:96:5)\r\n[INFO]     at async ModuleRebuilder.rebuildNodeGypModule (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-rebuilder.js:94:9)\r\n[INFO]     at async ModuleRebuilder.rebuild (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\module-rebuilder.js:124:14)\r\n[INFO]     at async Rebuilder.rebuildModuleAt (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\rebuild.js:145:13)\r\n[INFO]     at async Rebuilder.rebuild (C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\rebuild.js:108:17)\r\n[INFO]     at async C:\\Users\\[...]\\electronbrowser\\src\\main\\electron\\node_modules\\electron-rebuild\\lib\\src\\cli.js:154:9\r\n```\r\n\r\n### Folder comparison\r\n\r\n|                        Using 0.12.1                         |                 Using 0.12.2                |\r\n|:--------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------:|\r\n| ![image](https://user-images.githubusercontent.com/7572614/141504442-836c8278-851f-4ccd-969a-41ade226b251.png) | ![image](https://user-images.githubusercontent.com/7572614/141476918-c4d4575a-aded-4516-8dbc-81894160e012.png) |\r\n\r\n\r\n## Edit 1\r\nChanged setup to make it at least completely runnable on version 0.12.1. This made the issue also less confusing. By now I'm pretty sure that is a bug with node-java.","author":{"url":"https://github.com/DManstrator","@type":"Person","name":"DManstrator"},"datePublished":"2021-11-12T14:40:13Z","url":"https://github.com/joeferner/node-java/issues/541"}

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:770cbb41-77f1-516e-85c6-7976fa5b30b3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2B4:F4A12:9738E:C9CEA:6AFD2B28
html-safe-nonceb9771a92fc49862a42ac07f1be685ffc3c50fe4e085bc5aed5a3a4580d6690ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkI0OkY0QTEyOjk3MzhFOkM5Q0VBOjZBRkQyQjI4IiwidmlzaXRvcl9pZCI6IjMyMTQ5MTY2NDc4NzM0ODk3MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac429fbb162d270813f7dd49745a3bbe9c0c6b9231fd80c118db47f9d830f3bf09
hovercard-subject-tagissue:1052032921
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/541/issue_layout
twitter:imagehttps://opengraph.githubassets.com/44bcb65ba480ed0b64ba6dc8775a69f4b9970be80119255ba5b6c0627da5fd1e/joeferner/node-java/issues/541
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/44bcb65ba480ed0b64ba6dc8775a69f4b9970be80119255ba5b6c0627da5fd1e/joeferner/node-java/issues/541
og:image:altHello. When using version 0.12.1 , building and running the electron app works, but not with using version 0.12.2. When I try to use the code below, it fails on 0.12.2 since electronbrowser\src\mai...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDManstrator
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://redirect.github.com/joeferner/node-java/issues/541#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjoeferner%2Fnode-java%2Fissues%2F541
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjoeferner%2Fnode-java%2Fissues%2F541
Sign uphttps://redirect.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://redirect.github.com/joeferner/node-java/issues/541
Reloadhttps://redirect.github.com/joeferner/node-java/issues/541
Reloadhttps://redirect.github.com/joeferner/node-java/issues/541
joefernerhttps://redirect.github.com/joeferner
node-javahttps://redirect.github.com/joeferner/node-java
Codehttps://redirect.github.com/joeferner/node-java
Issues208 (208)https://redirect.github.com/joeferner/node-java/issues
Pull requests2 (2)https://redirect.github.com/joeferner/node-java/pulls
Actionshttps://redirect.github.com/joeferner/node-java/actions
Projectshttps://redirect.github.com/joeferner/node-java/projects
Wikihttps://redirect.github.com/joeferner/node-java/wiki
Security and qualityhttps://redirect.github.com/joeferner/node-java/security
Insightshttps://redirect.github.com/joeferner/node-java/pulse
https://redirect.github.com/joeferner/node-java
New issuehttps://redirect.github.com/login?return_to=https://github.com/joeferner/node-java/issues/541
New issuehttps://redirect.github.com/login?return_to=https://github.com/joeferner/node-java/issues/541
node-java v0.12.2 fails with electron-rebuild (fatal error LNK1120)https://redirect.github.com/joeferner/node-java/issues/541#top
https://github.com/DManstrator
DManstratorhttps://github.com/DManstrator
on Nov 12, 2021https://github.com/joeferner/node-java/issues/541#issue-1052032921
https://user-images.githubusercontent.com/7572614/141504442-836c8278-851f-4ccd-969a-41ade226b251.png
https://user-images.githubusercontent.com/7572614/141476918-c4d4575a-aded-4516-8dbc-81894160e012.png
https://redirect.github.com/DoMyBestFor
DoMyBestForhttps://redirect.github.com/DoMyBestFor
on Dec 9, 2021https://github.com/joeferner/node-java/issues/541#issuecomment-989563874
https://redirect.github.com/DManstrator
DManstratorhttps://redirect.github.com/DManstrator
on Dec 16, 2021https://github.com/joeferner/node-java/issues/541#issuecomment-995675738
https://redirect.github.com/jianchang69
jianchang69https://redirect.github.com/jianchang69
on Mar 22, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1074705455
https://redirect.github.com/DManstrator
DManstratorhttps://redirect.github.com/DManstrator
on Mar 22, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1074902399
@jianchang69https://github.com/jianchang69
https://redirect.github.com/jianchang69
jianchang69https://redirect.github.com/jianchang69
on Mar 23, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1075825845
https://redirect.github.com/DManstrator
DManstratorhttps://redirect.github.com/DManstrator
on Mar 23, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1076056661
https://redirect.github.com/ArbifyFun
ArbifyFunhttps://redirect.github.com/ArbifyFun
on Mar 24, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1076996621
https://redirect.github.com/ddrigass
ddrigasshttps://redirect.github.com/ddrigass
on Apr 27, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1110961915
https://redirect.github.com/ddrigass
ddrigasshttps://redirect.github.com/ddrigass
on Apr 27, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1111030667
#532https://github.com/joeferner/node-java/pull/532
https://redirect.github.com/jianchang69
jianchang69https://redirect.github.com/jianchang69
on May 10, 2022https://github.com/joeferner/node-java/issues/541#issuecomment-1122141466
https://redirect.github.com/youlinaa
youlinaahttps://redirect.github.com/youlinaa
on Apr 19, 2023https://github.com/joeferner/node-java/issues/541#issuecomment-1514367909
#532https://github.com/joeferner/node-java/pull/532
Sign up for freehttps://redirect.github.com/signup?return_to=https://github.com/joeferner/node-java/issues/541
Sign in to commenthttps://redirect.github.com/login?return_to=https://github.com/joeferner/node-java/issues/541
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.