java.lang.UnsatisfiedLinkError

no sqlite4java-win32-x64-1.0.392 in java.library.path See gradle.build and console output below: gradle.build apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava].options.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the // "mainClass" property. You may however define the property prior executing // tasks by passing a "-PmainClass=" argument. // // Note however, that you may define your own "run" and "debug" task if you // prefer. In this case NetBeans will not add these tasks but you may rely on // your own implementation. if (!hasProperty('mainClass')) { ext.mainClass = 'falcon3.Main' } repositories { mavenCentral() } dependencies { compile 'com.jfoenix:jfoenix:1.1.0' compile group: 'com.cloudant', name: 'cloudant-sync-datastore-javase', version:'2.0.0' compile group: 'com.almworks.sqlite4java', name: 'sqlite4java', version: '1.0.392' compile 'com.aquafx-project:aquafx:0.2' testCompile group: 'junit', name: 'junit', version: '4.10' } and console output Executing: gradle run Arguments: [-c, C:\Users\???\Documents\NetBeansProjects\Falcon3\settings.gradle] :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE Feb 11, 2017 11:57:23 AM com.almworks.sqlite4java.Internal log INFO: [sqlite] DB[1]: instantiated [null] Exception in Application start method java.lang.reflect.InvocationTargetException

Samebug tips1

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web8324

  • // prefer. In this case NetBeans will not add these tasks but you may rely on // your own implementation. if (!hasProperty('mainClass')) { ext.mainClass = 'falcon3.Main' } repositories { mavenCentral() } dependencies { compile 'com.jfoenix:jfoenix:1.1.0
  • completely, to clean and rebuild project, but nothing seems to work. When the instant run is disabled I am getting an error during Gradle building Executing tasks: [:android:assembleDebug] Configuration on demand is an incubating feature. Incremental java
  • href=http://www.vogons.org/viewtopic.php?f=31&t=12915&start=980>this message board <a/> but if I try and replace my swt.jar with that one I still get the same errors. I am really hoping that this isn't a game killer. EDIT: Replacing the swt.jar with
  • Stack trace

    • java.lang.UnsatisfiedLinkError: no sqlite4java-win32-x64-1.0.392 in java.library.path See gradle.build and console output below: gradle.build apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava].options.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the // "mainClass" property. You may however define the property prior executing // tasks by passing a "-PmainClass=" argument. // // Note however, that you may define your own "run" and "debug" task if you // prefer. In this case NetBeans will not add these tasks but you may rely on // your own implementation. if (!hasProperty('mainClass')) { ext.mainClass = 'falcon3.Main' } repositories { mavenCentral() } dependencies { compile 'com.jfoenix:jfoenix:1.1.0' compile group: 'com.cloudant', name: 'cloudant-sync-datastore-javase', version:'2.0.0' compile group: 'com.almworks.sqlite4java', name: 'sqlite4java', version: '1.0.392' compile 'com.aquafx-project:aquafx:0.2' testCompile group: 'junit', name: 'junit', version: '4.10' } and console output Executing: gradle run Arguments: [-c, C:\Users\???\Documents\NetBeansProjects\Falcon3\settings.gradle] :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE Feb 11, 2017 11:57:23 AM com.almworks.sqlite4java.Internal log INFO: [sqlite] DB[1]: instantiated [null] Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ExceptionInInitializerError at com.cloudant.sync.internal.sqlite.SQLDatabaseQueue.<init>(SQLDatabaseQueue.java:67) at com.cloudant.sync.internal.documentstore.DatabaseImpl.<init>(DatabaseImpl.java:152) at com.cloudant.sync.documentstore.DocumentStore.<init>(DocumentStore.java:90) at com.cloudant.sync.documentstore.DocumentStore.getInstance(DocumentStore.java:150) at com.cloudant.sync.documentstore.DocumentStore.getInstance(DocumentStore.java:120) at falcon3.Main.start(Main.java:28) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326) at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) ... 1 more Caused by: java.lang.IllegalStateException: Failed to open database. at com.cloudant.sync.internal.sqlite.sqlite4java.SQLiteWrapper.createNewConnection(SQLiteWrapper.java:92) at com.cloudant.sync.internal.sqlite.sqlite4java.SQLiteWrapper.getConnection(SQLiteWrapper.java:73) at com.cloudant.sync.internal.sqlite.sqlite4java.SQLiteWrapper.isOpen(SQLiteWrapper.java:121) at com.cloudant.sync.internal.sqlite.sqlite4java.SQLiteWrapper.beginTransaction(SQLiteWrapper.java:126) at com.cloudant.sync.internal.sqlite.SQLDatabaseFactory.isFtsAvailable(SQLDatabaseFactory.java:52) at com.cloudant.sync.internal.sqlite.SQLDatabaseFactory.<init>(SQLDatabaseFactory.java:45) ... 15 more Caused by: com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: no sqlite4java-win32-x64-1.0.392 in java.library.path at com.almworks.sqlite4java.SQLite.loadLibrary(SQLite.java:97) at com.almworks.sqlite4java.SQLiteConnection.open0(SQLiteConnection.java:1441) at com.almworks.sqlite4java.SQLiteConnection.open(SQLiteConnection.java:282) at com.cloudant.sync.internal.sqlite.sqlite4java.SQLiteWrapper.createNewConnection(SQLiteWrapper.java:88) ... 20 more Caused by: java.lang.UnsatisfiedLinkError: no sqlite4java-win32-x64-1.0.392 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.almworks.sqlite4java.Internal.tryLoadFromSystemPath(Internal.java:352) at com.almworks.sqlite4java.Internal.loadLibraryX(Internal.java:124) at com.almworks.sqlite4java.SQLite.loadLibrary(SQLite.java:95) ... 23 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 4 months ago
    15 times, 4 months ago
    Unknown user
    Once, 6 months ago
    276 more bugmates