jna Questions

4

When running a new project utilising LeadIQ's play boilerplate, we will run into an UnsatisfiedLinkError in older versions of JNA below version 5.7.0. I think this is due to incompatible binaries b...
Ashelyashen asked 15/12, 2021 at 18:47

2

Solved

So, I'm attempting to call the Linux C - stat function. My JNA code: public int stat(bap path, bap statdump); the bap class: public static class bap extends Structure { public byte[] arr...
Shroud asked 25/4, 2015 at 3:10

6

Solved

I've been searching around trying to find a way to determine if a file is a junction or not, and have not found any satisfactory answers. First thing I tried was: Files.isSymbolicLink(aPath) It...
Gaelan asked 5/12, 2012 at 22:2

3

I want to make some changes on active desktop wallpaper like adding watermark. For that I need to get the path of the active wallpaper. Adding the watermark I can do. This can be done using JNA lib...
Caylor asked 5/12, 2011 at 7:13

0

When user tries to access the controller method from web application, the below code will be executed to create a process as impersonated/logged on user. Below code executed without any issues. New...
Dimeter asked 26/7, 2022 at 11:32

0

We are developing Java web application, it will be deployed and used in the pure Windows platform. Our use case is, couple of licensed Tools/Software in Server needs to be accessed by the associate...
Legalize asked 21/7, 2022 at 17:59

2

Solved

I have a Java desktop application which is supposed to run in both GNU Linux distributions (Debian and Ubuntu) and MUSL Linux distributions (Alpine). My application uses a native library also and n...
Thimbleful asked 20/1, 2022 at 10:5

6

Solved

We're building a JavaFX application in Windows, and we want to be able to do some things to manipulate how our application appears in the Windows 7/8 taskbar. This requires modifying a Windows vari...
Kimbrough asked 22/2, 2013 at 22:39

4

Solved

OSGi cannot find my DLL file, and I can't seem to figure out why. Currently I have the DLL file (foo.dll) at the root of my bundle, I've also tried having it in a libs directory. The Manifest for...
Salzman asked 3/9, 2009 at 19:48

0

Is there any way I can handle the WM_NCHITTEST message in the window procedure such that the mouse will "fall through" to the next application below? Right now I draw a custom shadow deco...
Nobody asked 27/8, 2021 at 17:47

3

Solved

I am trying to upgrade my application in Java to work only if a window of process with certain name is active. I have found out that this is possible by using JNI, but I have no idea how exactly to...
Billat asked 17/6, 2011 at 20:29

1

I am trying to use JNA, because I want to work with a .dll that was written in c++ and the rest of my code is in Java. However, if I try to import the JNA classes Eclipse claims "The type com....
Quadrat asked 5/5, 2021 at 13:7

5

Solved

I have the following enum how do i map in jna ?? This enum is further referenced in structure. typedef enum { eFtUsbDeviceNotShared, eFtUsbDeviceSharedActive, eFtUsbDeviceSharedNotActive, eF...
Australorp asked 21/7, 2009 at 7:53

7

I have the following error at runtime, while trying to run Tess4J: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': Native library (win32-x86-64...
Cymose asked 4/11, 2013 at 13:13

2

Solved

I'm trying to list and get the content of Edit Controls from an external Window in C++ / Java, unfortunately with no success. When I call GetWindowText or GetWindowTextA it returns an empty value ...
Metopic asked 15/12, 2013 at 15:57

7

Solved

I have installed Elasticsearch 6.x in my Debian 7 (wheezy). I tried to start with service elasticsearch start but its give me an error message root@debian:~# sudo -i service elasticsearch start [...
Domitiladomonic asked 15/12, 2017 at 1:39

3

Solved

I'm using JNA to interface my C++ code with java. I have a native function which takes a string as input and returns a string as output. Following is the C++ implementation of the function. const...
Frill asked 15/1, 2018 at 16:49

6

Solved

I am wrapping a shared library (written in C) with Java using JNA. The shared library is written internally, but that library uses functions from another external library, which again depends anoth...
Turpitude asked 24/3, 2011 at 20:21

4

Solved

In other words: what -keep commands should I use to tell Proguard to avoid obfuscating my classes that represent native libraries? (since JNA requires that the names match the equivalent native fun...
Dormer asked 11/5, 2012 at 19:0

2

I've been investigating the best approach to achieve the following data for a specific process: CPU usage Memory usage Disk usage Network usage I decided to go with OSHI (Operating system &...
Airspace asked 10/6, 2017 at 15:5

1

Solved

tl;dr Under Windows 10, if I put my secondary display to the right of the primary one, and apply a scaling (e.g. 150%) to the secondary, then the display coordinates (as returned by the Java API) o...
Basketry asked 7/9, 2020 at 0:24

5

I have started to build a java service which incorporates JNA to load a native C/C++ lib and i want to run the java service on the Raspberry PI aka arm platform. I have successfully built a stable ...
Rogan asked 31/1, 2013 at 22:3

1

I am trying to use JNA to read credentials stored in Windows Credential Manager (Control Panel > Credential Manager). Found the c function for it (CredEnumerateW) which seems to run ok as it return...
Maturate asked 17/11, 2015 at 10:12

4

I'm trying to map CredWrite/CredRead in JNA in order to store a thrid party credential used in my Java application in Windows Credential Manager (OS Windows 10). Here're the original signatures in...
Carcass asked 15/7, 2016 at 20:23

1

I am using the accepted answer in this question: JavaFX Minimizing Undecorated Stage to minimize my app properly. However, unfortunately the default Windows minimize & maximize animations are ...
Wizened asked 24/6, 2018 at 9:9

© 2022 - 2024 — McMap. All rights reserved.