Comments (7)
This has been tackled in #92. Are you using jssc 2.9.3+?
from jssc.
I don't know the loader part. I don't know if it can be disabled.
It feels as such a feature could help us too. AFAIK our project is using a custom (as in handmade) build which completely strips the loader library plus some of the unused libs away. Due to this, our project is stuck with an old release and this feature may enable us to jump back to the officially released artifacts again.
from jssc.
I could remove it forking the project and removing this lines from SerialNativeInterface.java:
NativeLoader.setJniExtractor(new DefaultJniExtractorStub(null, System.getProperty("jssc.boot.library.path")));
NativeLoader.loadLibrary("jssc");
and replacing them with
System.loadLibrary("jssc");
I wanted to avoid org.scijava.nativelib dependency, this is the reason why I replaced NativeLoader.loadLibrary line too.
I don't like to have a custom version, I hope somehow will be possibile to disable the nativeload by some future option.
from jssc.
I don't know the loader part. I don't know if it can be disabled.
It feels as such a feature could help us too. AFAIK our project is using a custom (as in handmade) build which completely strips the loader library plus some of the unused libs away. Due to this, our project is stuck with an old release and this feature may enable us to jump back to the officially released artifacts again.
My project does this, I'll share the code ASAP.
from jssc.
Whoops, nevermind,.@pietrygamat answered it already.
from jssc.
Documentation: https://github.com/java-native/jssc/wiki/Examples#override-native-library-path
from jssc.
After closer inspection, the reported issue: empty directory being created is actually true regardless of using jssc.boot.library.path
property. JSSC will load native lib from library/classpath or specified boot path if present, so it will skip the extraction step, however empty temp dir (removed at jvm exit) is there anyway.
There is no obvious way to work around that, as it happens in NativeLoader class static initialization block - something that should maybe be reported upstream?
I wanted to avoid org.scijava.nativelib dependency
You mean as in remove nativelib jar from the classpath? Not untill references are removed from java files. Which means the logic for finding correct lib to load must be either rewritten within JSSC (back to its roots) or excluded from this project and then either ceded onto end users (breaking any compatibility) or extracted to a separate artifact to be used by users relying on that. Given how much controversy any aproach to locating libs packaged inside the jar causes, no option seems better than the next ;)
from jssc.
Related Issues (20)
- Result -1 of Select() when reading from disconnected (USB) serial-port causes infinite loop HOT 3
- WriteBytes does not return how many bytes were not written HOT 4
- Not working on SUSU OS Linux HOT 1
- NullPointerException in SerialPortList.getWindowsPortNames() HOT 1
- SIGSEGV on Linux when JVM near OutOfMemoryError conditions
- fatal error on Raspberry Pi HOT 12
- Complete release 2.9.5 HOT 6
- RISC-V support
- Chat has moved to Discord
- Github actions - Solaris question HOT 2
- Show method names in unit tests
- i got error in Raspberry pi . Arm64 environment HOT 5
- Version 2.9.6 pending maven central publication HOT 3
- Exception when opening port HOT 6
- Issue with serialPort.isOpened() on Windows 11 (not tried in other OS) HOT 2
- Error at begin on Windows 10 HOT 1
- Website is not accessible any more HOT 1
- Cannot list COM Ports HOT 11
- How to set inter-character gap HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jssc.