Open trauchhaupt opened 7 years ago
Hi @trauchhaupt, thank you for reporting this, but I'm afraid I can't move forward with Java 9 before fix for BridJ is available. I would love to take a look at this on my own, but with current workload on my head I have no time to play with bugs :( I'm sure, however, that Olivier (BridJ owner) will love to see pull request with a fix for this issue :)
BridJ is looking like it is unmaintained. Are there any plans to migrate to something newer or that is maintained?
So, to be clear Java 9+ will work if webcam-capture is loaded on the classpath. (At least that what I'm seeing in my basic testing.) This issue is about library loading not working when using the Java Platform Module System. Right?
So, unmerged BridJ PR #103 seems to fix the problem for me.
I forked BridJ and created a https://jitpack.io build using the msgilligan-master
branch. I have successfully used to build and run webcam-capture on JDK 11/12 in a modular app.
Here are the relevant bits of my build.gradle
:
repositories {
maven { url 'https://oss.sonatype.org/content/groups/public' }
maven { url 'https://jitpack.io' }
}
dependencies {
implementation "com.github.msgilligan:BridJ:msgilligan-master-SNAPSHOT"
implementation ("com.github.sarxos:webcam-capture:0.3.12") {
// The exclude is necessary so we don't have 2 versions of the same packages
exclude group: 'com.nativelibs4java', module: 'bridj'
}
}
@sarxos -- let's make a fork/release of the patch to BridJ! Are you game?
OK, I've created a fork of BridJ in the ConsensusJ organization:
https://github.com/ConsensusJ/BridJ
This (in the consensusj-master
branch) has PR #103 and also pulls in essential build configuration from what was previously a parent POM. It can be accessed through jitpack.io
, but I can push it to a Bintray maven repo after a little more testing.
any answer regarding this issue till now? I'm trying to use the library in modular gradle application and it seems it doesn't support JPMS yet.
Finally my PR to BridJ was merged, now they "just" need to do a release.
Running with Java 9 does not work, as