René's URL Explorer Experiment


Title: UnsatisfiedLinkError: no objectbox-jni-windows-x64 when installed to Program Files · Issue #1225 · objectbox/objectbox-java · GitHub

Open Graph Title: UnsatisfiedLinkError: no objectbox-jni-windows-x64 when installed to Program Files · Issue #1225 · objectbox/objectbox-java

X Title: UnsatisfiedLinkError: no objectbox-jni-windows-x64 when installed to Program Files · Issue #1225 · objectbox/objectbox-java

Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 5.0.0 OS: Windows 10 Device/ABI/architecture: x64 Steps to reproduce I am building a KMP project with ObjectBox. When I run the jvmApp module direc...

Open Graph Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 5.0.0 OS: Windows 10 Device/ABI/architecture: x64 Steps to reproduce I am building a KMP project with Objec...

X Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 5.0.0 OS: Windows 10 Device/ABI/architecture: x64 Steps to reproduce I am building a KMP project with Objec...

Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1225

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnsatisfiedLinkError: no objectbox-jni-windows-x64 when installed to Program Files","articleBody":"\u003c!--\n\nIf you are looking for support, please check out our documentation:\n- https://docs.objectbox.io\n- https://docs.objectbox.io/faq\n- https://docs.objectbox.io/troubleshooting\n\n--\u003e\n\n### Is there an existing issue?\n\n- [x] I have searched [existing issues](https://github.com/objectbox/objectbox-java/issues)\n\n### Build info\n\n- ObjectBox version: 5.0.0\n- OS: Windows 10\n- Device/ABI/architecture: x64\n\n### Steps to reproduce\nI am building a KMP project with ObjectBox. When I run the jvmApp module directly (e.g., from the IDE), the ObjectBox .dll file is found and loaded correctly.\n\nHowever, when I build a distributable package for deployment (e.g., using jpackage), the .dll file seems to be missing from the final package, causing it to fail at runtime.\n\nWhat could be the problem?\n\n(I apologize for asking this again. I posted this on StackOverflow, but since I haven't received a response yet, I'm posting it here as well.)\n\n### Expected behavior\n\nCreate objectbox-jni-windows-x64, when the installer installs the executable.\n\n### Actual behavior\n\nThe .dll file is not included when the installer installs the executable.\n\n\n### Code\n\n\u003c!--\n\nPlease provide a minimal code example.\n\nThings you maybe should also include:\n- the entity class\n- the Gradle build script\n\nYou can also create a public GitHub repository and link to it below.\n\nPlease do not upload screenshots of text, use code blocks like below instead.\n\nAdd any other context about the problem:\n- Is there anything special about your app?\n- May transactions or multi-threading play a role?\n- Did you find any workarounds to prevent the issue?\n\n--\u003e\n\n\u003cdetails\u003e\u003csummary\u003eCode\u003c/summary\u003e\n\nsettings.gradle.kts(root)\n\n```\npluginManagement {\n    repositories {\n        google {\n            content {\n                includeGroupByRegex(\"com\\\\.android.*\")\n                includeGroupByRegex(\"com\\\\.google.*\")\n                includeGroupByRegex(\"androidx.*\")\n            }\n        }\n        mavenCentral()\n        gradlePluginPortal()\n    }\n    resolutionStrategy {\n        eachPlugin {\n            if (requested.id.id == \"io.objectbox\") {\n                useModule(\"io.objectbox:objectbox-gradle-plugin:${requested.version}\")\n            }\n            if (requested.id.id == \"com.google.dagger\") {\n                useModule(\"com.google.dagger:dagger:${requested.version}\")\n            }\n            if (requested.id.id == \"com.google.dagger:hilt-android\") {\n                useModule(\"com.google.dagger:hilt-android:${requested.version}\")\n            }\n        }\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nrootProject.name = \"FireAlarmKMP\"\ninclude(\":androidApp\")\ninclude(\":jvmApp\")\ninclude(\":shared:data-common\")\ninclude(\":shared:data-jvm\")\ninclude(\":shared:domain\")\ninclude(\":shared:presentation-common\")\ninclude(\":shared:data-android\")\ninclude(\":shared:core-common\")\ninclude(\":shared:core-android\")\ninclude(\":shared:core-jvm\")\ninclude(\":shared:presentation-android\")\ninclude(\":shared:presentation-jvm\")\n```\n\nbuild.gradle.kts(:jvmApp)\n\n```\nimport org.jetbrains.compose.desktop.application.dsl.TargetFormat\n\nplugins {\n    alias(libs.plugins.jetbrains.kotlin.jvm)\n    alias(libs.plugins.kotlin.compose)\n    alias(libs.plugins.composeMultiplatform)\n    alias(libs.plugins.kapt)\n}\n\njava {\n    sourceCompatibility = JavaVersion.VERSION_11\n    targetCompatibility = JavaVersion.VERSION_11\n}\nkotlin {\n    compilerOptions {\n        jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11\n    }\n}\n\ndependencies {\n    implementation(compose.desktop.currentOs)\n    implementation(libs.kotlinx.coroutines.swing)\n    implementation(libs.dagger)\n    implementation(libs.androidx.lifecycle.viewmodel.compose)\n    implementation(libs.androidx.lifecycle.runtime.compose)\n    configurations[\"kapt\"].dependencies.add(project.dependencies.create(libs.dagger.compiler.get()))\n    implementation(project(\":shared:presentation-common\"))\n    implementation(project(\":shared:presentation-jvm\"))\n    implementation(project(\":shared:domain\"))\n    implementation(project(\":shared:data-common\"))\n    implementation(project(\":shared:data-jvm\"))\n    implementation(project(\":shared:core-common\"))\n    implementation(project(\":shared:core-jvm\"))\n}\n\ncompose.desktop {\n    application {\n        mainClass = \"com.blabla.jvmapp.MainKt\"\n\n        nativeDistributions {\n            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Exe)\n            packageName = \"jvmapp\"\n            packageVersion = \"1.0.28\"\n        }\n    }\n}\n```\n\nbuild.gradle.kts(:data-jvm)\n\n```\nplugins {\n    alias(libs.plugins.jetbrains.kotlin.jvm)\n    alias(libs.plugins.kapt)\n}\njava {\n    sourceCompatibility = JavaVersion.VERSION_11\n    targetCompatibility = JavaVersion.VERSION_11\n}\nkotlin {\n    compilerOptions {\n        jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11\n    }\n}\n\ndependencies {\n    implementation(libs.arrow.core)\n    implementation(libs.arrow.fx.coroutines)\n    implementation(libs.kotlinx.coroutines.core)\n    implementation(libs.objectbox.windows)\n    implementation(libs.objectbox.kotlin)\n    kapt(libs.objectbox.processor)\n    implementation(libs.dagger)\n    kapt(libs.dagger.compiler)\n    implementation(project(\":shared:data-common\"))\n    implementation(project(\":shared:core-common\"))\n    implementation(project(\":shared:domain\"))\n}\n\napply(plugin = \"java-library\")\napply(plugin = \"io.objectbox\")\n```\n\n\u003c/details\u003e\n\n### Logs, stack traces\n\n\n\u003cdetails\u003e\u003csummary\u003eLogs\u003c/summary\u003e\n\n```\nCaused by: java.lang.UnsatisfiedLinkError: no objectbox-jni-windows-x64 in java.library.path: C:\\Program Files\\com.blabla.jvmapp\\app/resources\n\tat java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)\n\tat java.base/java.lang.Runtime.loadLibrary0(Unknown Source)\n\tat java.base/java.lang.System.loadLibrary(Unknown Source)\n\tat io.objectbox.internal.NativeLibraryLoader.\u003cclinit\u003e(NativeLibraryLoader.java:98)\n\t... 48 more\n```\n\n\u003c/details\u003e\n","author":{"url":"https://github.com/udyr-woo","@type":"Person","name":"udyr-woo"},"datePublished":"2025-11-26T08:26:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1225/objectbox-java/issues/1225"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5ca828c9-b5c3-c154-ce56-3cb9a1fa89c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE916:3D8560:EFB78A:13EE4C2:6980512F
html-safe-noncef58bd5cf4dfcfdf781c1891eb16b1941cbec504a0f2504dd4e3df476d75ede1e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTE2OjNEODU2MDpFRkI3OEE6MTNFRTRDMjo2OTgwNTEyRiIsInZpc2l0b3JfaWQiOiI4NzIzMDA1OTY5MjI4OTEwODk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0876db867eef82fc7f14968e40974fa0ce7c6fb918887f538785d5ead8b176c8
hovercard-subject-tagissue:3666420013
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/objectbox/objectbox-java/1225/issue_layout
twitter:imagehttps://opengraph.githubassets.com/090120f418f8b981740bacdb29a0374dcc606301baae11c3acf978b699db762d/objectbox/objectbox-java/issues/1225
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/090120f418f8b981740bacdb29a0374dcc606301baae11c3acf978b699db762d/objectbox/objectbox-java/issues/1225
og:image:altIs there an existing issue? I have searched existing issues Build info ObjectBox version: 5.0.0 OS: Windows 10 Device/ABI/architecture: x64 Steps to reproduce I am building a KMP project with Objec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameudyr-woo
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git
octolytics-dimension-user_id22327943
octolytics-dimension-user_loginobjectbox
octolytics-dimension-repository_id79901405
octolytics-dimension-repository_nwoobjectbox/objectbox-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id79901405
octolytics-dimension-repository_network_root_nwoobjectbox/objectbox-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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1225#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fobjectbox%2Fobjectbox-java%2Fissues%2F1225
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fobjectbox%2Fobjectbox-java%2Fissues%2F1225
Sign up https://patch-diff.githubusercontent.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=objectbox%2Fobjectbox-java
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1225
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1225
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1225
objectbox https://patch-diff.githubusercontent.com/objectbox
objectbox-javahttps://patch-diff.githubusercontent.com/objectbox/objectbox-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Fork 303 https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Star 4.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Code https://patch-diff.githubusercontent.com/objectbox/objectbox-java
Issues 150 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues
Pull requests 2 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulls
Actions https://patch-diff.githubusercontent.com/objectbox/objectbox-java/actions
Projects 0 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/projects
Security 0 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/security
Insights https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulse
Code https://patch-diff.githubusercontent.com/objectbox/objectbox-java
Issues https://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues
Pull requests https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulls
Actions https://patch-diff.githubusercontent.com/objectbox/objectbox-java/actions
Projects https://patch-diff.githubusercontent.com/objectbox/objectbox-java/projects
Security https://patch-diff.githubusercontent.com/objectbox/objectbox-java/security
Insights https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/objectbox/objectbox-java/issues/1225
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/objectbox/objectbox-java/issues/1225
UnsatisfiedLinkError: no objectbox-jni-windows-x64 when installed to Program Fileshttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1225#top
documentationImprovements or additions to documentationhttps://github.com/objectbox/objectbox-java/issues?q=state%3Aopen%20label%3A%22documentation%22
https://github.com/udyr-woo
https://github.com/udyr-woo
udyr-woohttps://github.com/udyr-woo
on Nov 26, 2025https://github.com/objectbox/objectbox-java/issues/1225#issue-3666420013
existing issueshttps://github.com/objectbox/objectbox-java/issues
documentationImprovements or additions to documentationhttps://github.com/objectbox/objectbox-java/issues?q=state%3Aopen%20label%3A%22documentation%22
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.