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
Domain: patch-diff.githubusercontent.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5ca828c9-b5c3-c154-ce56-3cb9a1fa89c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E916:3D8560:EFB78A:13EE4C2:6980512F |
| html-safe-nonce | f58bd5cf4dfcfdf781c1891eb16b1941cbec504a0f2504dd4e3df476d75ede1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTE2OjNEODU2MDpFRkI3OEE6MTNFRTRDMjo2OTgwNTEyRiIsInZpc2l0b3JfaWQiOiI4NzIzMDA1OTY5MjI4OTEwODk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0876db867eef82fc7f14968e40974fa0ce7c6fb918887f538785d5ead8b176c8 |
| hovercard-subject-tag | issue:3666420013 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/objectbox/objectbox-java/1225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/090120f418f8b981740bacdb29a0374dcc606301baae11c3acf978b699db762d/objectbox/objectbox-java/issues/1225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/090120f418f8b981740bacdb29a0374dcc606301baae11c3acf978b699db762d/objectbox/objectbox-java/issues/1225 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | udyr-woo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git |
| octolytics-dimension-user_id | 22327943 |
| octolytics-dimension-user_login | objectbox |
| octolytics-dimension-repository_id | 79901405 |
| octolytics-dimension-repository_nwo | objectbox/objectbox-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79901405 |
| octolytics-dimension-repository_network_root_nwo | objectbox/objectbox-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width