Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

I face the Java Problem MY program gave me error .UnsatisfiedLinkError but the file is they

I have a Java program that uses a native DLL file. It works perfectly on my development machine but fails with a UnsatisfiedLinkError or a "file not found" error when I run it on another ...
Hannan Sani's user avatar
0 votes
0 answers
114 views

Java EXCEPTION_ACCESS_VIOLATION Error with jSSC-2.8_x86_64.dll

I am encountering a fatal error when running my Java application, and I need help diagnosing the issue. The error message I receive is as follows: A fatal error has been detected by the Java Runtime ...
Atharva Divekar's user avatar
0 votes
0 answers
43 views

Unsatisfied Link Error error of Java Native Interface DLL

I have a strange problem with my Java JNI windows DLL program. I can load and run immaculately on Windows 10 machine on which the DLL program was developed. It provides basic camera interfaces using ...
underflow's user avatar
0 votes
0 answers
58 views

Exception in thread "main" java.lang.UnsatisfiedLinkError:dll: The operating system cannot run %1

I am getting the error while loading the library. Here is my code. package ibm; import java.util.Properties; import com.ibm.eNetwork.ECL.ECLErr; import com.ibm.eNetwork.ECL.ECLSession; public class ...
Selvaraj Narayanasamy's user avatar
0 votes
0 answers
80 views

Error with topaz.SigUsb java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.8.0_201\jre\bin\SigUsb.dll: Can't find dependent libraries

I am developing a Java application that uses SigUsb.dll for interfacing with a digital signature device. However, I am encountering a java.lang.UnsatisfiedLinkError stating that dependent libraries ...
Federico Caimi's user avatar
-1 votes
1 answer
104 views

How to fix missing javaaccessbridge.dll dependency, when starting a javafx application?

We are facing an error at a client, who runs our application on (almost equal configured) terminal servers. On several instances our application works as expected, on the rest in throws the following ...
crusam's user avatar
  • 6,178
0 votes
0 answers
30 views

Error: Could not find or load main class Djava.library.path=C:\Windows\System32\jnetpcap.dll Caused by: java.lang.ClassNotFoundException:

Error: Could not find or load main class Djava.library.path=C:\Windows\System32\jnetpcap.dll Caused by: java.lang.ClassNotFoundException: Djava.library.path=C:\Windows\System32\jnetpcap.dll I did : &...
blabla rla's user avatar
0 votes
0 answers
154 views

Exception in thread "main" java.lang.UnsatisfiedLinkError: no onnxruntime4j_jni in java.library.path: Android Studio ONNX ERROR

I am attempting to load an onnx model into android studio. I have downloaded everything and followed the website, but I cannot run the load method and causes BUILD ERROR. Exception in thread "...
user24034379's user avatar
1 vote
1 answer
304 views

How to read and verify digital signature for EXE and DLL in java

I want to validate the EXEs and DLLs before invoking in java. I searched on internet, but i didnt find any proper solution. My requirement is, to validate any signed EXE or DLL by extracting a digital ...
Naveen S's user avatar
0 votes
0 answers
36 views

JNR-FFI - Callback Pointer crash

I'm using the Win 32 library. I'm trying to call a callback with a pointer. But when called, the function does not complete, but causes an error. Example of DLL initialization: Csclink csc = ...
ordinal's user avatar
0 votes
0 answers
22 views

how to receive int array by pass a int pointer from java using JNA?

I'm currently working on a project which requires developing a Java application to access a native DLL (in C). I have chosen JNA for the bridging job and I am facing problems passing correct int ...
EasonZhang's user avatar
0 votes
2 answers
171 views

JPackage/OpenJDK - Can't Deploy App With JNI Dependencies

I'm a new OpenJDK user previously using Oracle's JDKs and have only just now been able to migrate a lot of our apps past Java 8. I'm experiencing trouble with deploying standalone java applications ...
Jake Henry's user avatar
0 votes
0 answers
48 views

How to do DllInject in Java and jna

I would like to do DllInject using Java Jna.I know I'm new to Jna and C++, but I can't seem to get the code to mesh with the inject part.I would like to know if you can help me. Things were going well ...
halu86x's user avatar
1 vote
0 answers
38 views

how to package .dll file

I have some code files need to make a dll file. it is used by java loadlibrary(). how do I do? g++ -m64 -c -O3 -I "C:\Program Files\Java\jdk-10.0.2\include" -I "C:\Program Files\Java\...
lance's user avatar
  • 11
0 votes
0 answers
39 views

DLL nit in Java library path for distributed Jar File

I Have a program that I created in Netbeans that uses jacob-1.18.jar to open a HTML Outlook email. jacob-1.18.jar requires a dll to work (jacob-1.18-x64.dll). This DLL is stored in project folder and ...
James Cafferkey's user avatar
2 votes
1 answer
4k views

JVM DLL not found. FileNotFoundError: [Errno 2]

Trying to explore using Tabula in python on a PDF in Visual Studio code on MacOS. import pandas as pd import tabula dfs = tabula.read_pdf("/Users/TEST.pdf", pages = 1) len(dfs) When I run ...
Nick's user avatar
  • 765
0 votes
0 answers
42 views

debugging in eclipse the link between a java application and a c dll thread

I have a java application which spins off a c dll thread. This has worked for years. Now, I need to add an argument to the interface between java and the c dll. I added the necessary additional ...
Bryan Van Dyke's user avatar
0 votes
1 answer
487 views

Defining a custom classpath (and binaries folder) for jpackage executables

I am trying to create a Windows EXE / MSI file for my Java application using jpackage. By and large, this works, however I am running into some issues for which I require some help: Defining a custom ...
Sayontan's user avatar
0 votes
0 answers
87 views

How to use COM Method from DLL in Java

I should make use of com methods present in a 32-bit dll, on a 64-bit Java application. Image 1image 2 My idea was to use JNI in order to use the dll methods. I then tried to create a java class with ...
user9655938's user avatar
0 votes
0 answers
337 views

A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION

I have a Java app which use some funtion from c++ dll file. I used Java Native Interface to import dll file. This is my Java class code public class CardEncoder { static { System....
simpsons3's user avatar
  • 971
0 votes
3 answers
411 views

Building lightweight Java native programs

So I just started developing native programs in Java with Netbeans, creating setup scripts for them with Inno Script. But then I noticed even basic programs tend to be quite resource heavy, this ...
Juancarlos Kai Shiro's user avatar
0 votes
1 answer
179 views

MetaTrader (MQL4) > .DLL (Delphi/Pascal) > .jar (Java) | Java-Thread seems to close immediately when opened via .dll (ShellExecute) via mql-call

(I use Windows 11 Home) To establish a communication between MetaTrader4 and my own Java Application I want to use stdin and stdout pipes. At this moment, I try to open my .jar from a .dll called by ...
Duke's user avatar
  • 1
0 votes
1 answer
65 views

How use function from dll in Java

I know how use native function in Java with my own dll, but what to do if it is not my dll? For example: package com.example.javaprx08.model; public class PRx08 { static { try { ...
PapaG's user avatar
  • 11
0 votes
1 answer
3k views

Trouble with Windows 11 DLL during launching a installer

I'm trying to install a specific product, however before the installation launcher start the configuration. a pop up shows an error with a DLL. This occurs on Windows 11. The error shows as follows: ...
AugustoCHR's user avatar
1 vote
0 answers
2k views

Unable to load authentication DLL mssql-jdbc_auth-10.2.1.x64 (For MAC)

I'm trying to connect to a SQL Server from a MAC and keep getting this error. Unable to load authentication DLL mssql-jdbc_auth-10.2.1.x64 For Windows, the solution is to add the dll file in the jdk/...
DeeP's user avatar
  • 89
0 votes
1 answer
176 views

'qi.dll: %1 is not a valid Win32 application' from com.aldebaran.qi.Application NAO robot

I am trying to develop for the NAO robot from aldebaran. Sadly it does not work when I try to execute this piece of code in Java with the following error: I am using the following JDKs: java-naoqi-...
Lucas Hilgevoord's user avatar
0 votes
1 answer
161 views

Java to C# using JNI results in StackOverflowException

1. Summarize the problem: I would like to invoke a C# method by invoking a Java method to check license file. This license check is performed by using a C# dll. I'm using JNI and a C++ wrapper. I will ...
Felix D's user avatar
  • 33
0 votes
1 answer
288 views

JavaFX SDK 19 contain no .dll Files to create JAR with external libraries

in previous versions of JavaFX, you could build jar files from project by building artifacts using .dll files within the bin folder of JavaFX. However, in later versions of JavaFX, there are ...
Jett Black's user avatar
0 votes
1 answer
125 views

I get this "UnsatisfiedLinkError " while trying to use the jpcap Java library

Using: windows 10, VScode, intel cpu. I'm getting this error after importing the jar files into my project and running an example code from Github. import net.sourceforge.jpcap.capture.*; import net....
Aymene's user avatar
  • 1
0 votes
0 answers
1k views

JVM crashes with EXCEPTION_ACCESS_VIOLATION (0xc0000005), points to jvm.dll

The JVM running my simulation client (for SUMO, using TraCI as libtraci) keeps crashing. This is the command line message: A fatal error has been detected by the Java Runtime Environment: ...
SchwiftySeagull's user avatar
1 vote
2 answers
548 views

Cannot delete library loaded with JNA after disposing

I am trying to delete a DLL which has been loaded into JNA and later disposed. I have tried all the solutions described in the answer to this question, but they are not working: How to dispose library ...
Naveen S's user avatar
0 votes
1 answer
100 views

Adding numbers in DLL Java [closed]

I am new to data structures and algorithms and I stumbled across this problem with doubly linked list. The program goes through the nodes and makes one number from them for example from nodes 1 <-&...
itmemilan's user avatar
  • 361
2 votes
1 answer
353 views

How to call C#(.NET5 .dll's) from native Android application

My organisation has certificated medical C#/.NET5 reasoning engines (e.g. .dll's) that we would like to employ in a native Android application written in Kotlin/Java. We cannot under amend these ...
Hector's user avatar
  • 5,412
0 votes
1 answer
178 views

g++ cannot open output file ..\..\..\native\win32\native.dll: No such file or directory

REM Create the header with javac -h . ClassName.java REM Remember to set your JAVA_HOME env var g++ -c -I "%JAVA_HOME%\include" -I "%JAVA_HOME%\include\win32" ...
59273661 186's user avatar
0 votes
0 answers
216 views

JVM returns with -1073741819 when loading native library

So I am trying to load a native library from a resource contained in the resources of the JAR. I'm using some code to select the correct .dll file based on the current platform. (my platform is ...
Orbyfied's user avatar
  • 154
0 votes
0 answers
66 views

How to get value of Pointer from callback (DLL) function argument in Java using JNA?

I am trying to access image data from scanner hardware. The provided DLL has the following callback function: My Java implementation (using JNA) is as given below: Import Lib public interface ...
Dipendra Nath's user avatar
0 votes
1 answer
717 views

DLL only loads when MinGW path is set

I have been working on a plug-in for ImageJ to use. What the program does is irrelevant (I think), but it is written mainly in Java and calls to C++ using JNI. I compile the program using the ...
Nic Bolton's user avatar
0 votes
0 answers
375 views

jnilib.dll: Can't find dependent libraries

The fact is that I made my binder for games using the Java Native Interface, but apparently I did not compile the DLL correctly, since everything works fine for me (AMD64), and for a friend (Intel) it ...
John Mayot's user avatar
0 votes
1 answer
371 views

Can I convert jar into DLL and inject it into a running Java program?

I want to convert a jar package or class into a DLL file and inject the DLL into a running Java program through injection. This Java program can't use attach and agent, which makes me a headache. This ...
志成zhi_cheng's user avatar
0 votes
0 answers
362 views

had an error running java program using Mathematica libraries

I was trying to do some diffrential equations calculation using Mathematica libraries. I used jlink to link java with Mathematica. Somehow I can't get the program running, I think something is wrong ...
owlinthewoods's user avatar
0 votes
1 answer
674 views

"Missing argument in parameter list" error while creating .dll file from the .o file

Am just starting learn jni and decided to do a hello world. i created a helloworld java file whose code is public class HelloWorld { public native void displayHelloWorld(); static{ ...
hariharan baskaran's user avatar
1 vote
1 answer
845 views

Pass Structure by reference as argument in JNA

I have a dynamic link library (DLL) written in c++. In my DLL I have a function like this: void anpr_set_params(byte instance, SLPRParams* params); Where SLPRParams is a Structure containing byte, ...
reza's user avatar
  • 63
2 votes
1 answer
621 views

Pointer to a function in java

I have a dynamic link library (DLL) written in c++. In my DLL I have a function like this: void set_event_callback(EVENT_CALLBACK callback_fcn); where EVENT_CALLBACK is a function pointer like this: ...
reza's user avatar
  • 63
1 vote
1 answer
767 views

Java problem loading native lib inside jar

(I slightly re-edited my post as I found out that I need just one native lib, not all 4 as previously thought) I am on Windows 7 x64, and I try to pack my native lib into the JAR using this code (BTW ...
fafa's user avatar
  • 107
3 votes
2 answers
2k views

How to use a Java .dll in C# .NET Core 6?

Initial situation I've made a little test for my project today - The goal: Implement .jar files into a C# project as a .dll. My current .java / .jar file looks like the following. package ws; public ...
Maik Hasler's user avatar
  • 1,380
0 votes
0 answers
116 views

Javapos DLL works in NetBeans but not outside it

I am done developing an application that has POS device integrated. This device communicates through Javapos libs and also some dll(the dlls are placed outside the src) plus a jpos.xml placed just ...
Kwesi Aryee's user avatar
-2 votes
1 answer
714 views

Launch4j - JAR wrapped into exe does not start with .dll file

I'm creating a program that uses an external library, normally the executable JAR file would have created the .dll file in the same directory so that it will launch with it, but now that I've wrapped ...
Golden's user avatar
  • 1
0 votes
2 answers
178 views

ShObjIdl location for JNA usage

I'm trying to use shobjidl_core.h library to run code that changes the wallpaper of one specific monitor, specifically I need to run these two functions: GetMonitorDevicePathAt, SetWallpaper. Now, ...
Mamiglia's user avatar
  • 143
0 votes
0 answers
117 views

Wrapping COM/DCOM DLL with JNI

I searched for almost 2 hours for any example with complete code, but could not find anything that works. The issue is this: I have a C++ COM DLL that can comunicate with old MSJava, and I need to ...
Douglas Schroder's user avatar
1 vote
0 answers
348 views

Can I use c # .dll libraries in Android Studio Java / Kotlin?

the challenge is this: can I use c # .dll libraries in Android Studio Java / Kotlin or vice versa use .jar libraries in c # projects? If you have any thoughts on this matter, I will be very glad to ...
Shvyrkov's user avatar

1
2 3 4 5
22