Hi,
On Sun, 3 Mar 2019 at 22:00, František Kadúch
<
frantise...@gmail.com> wrote:
> c:\Projects\Netbeans\gst1-java-examples-master\target>java -jar gst1-java-examples-1.0.0-SNAPSHOT.jar
> Error: A JNI error has occurred, please check your installation and try again
Which version of the JDK are you using? A quick Google would suggest
that error message is actually a rather unhelpful message caused by
missing libraries on the classpath, which that stack trace and launch
command would otherwise suggest.
The examples repo is exactly that - it is code to be adapted for your
own projects. it is not set up to be built and run as a standalone
project in that way as no main class is specified, and you're missing
references to gst1-java-core and JNA. You need to package this up as
you would with any other Java application with third-party
dependencies.
You could run this from the CLI in various ways - eg. on my Linux box
I can run it from inside the Maven directory where the JAR is built by
specifying the classpath and main class manually -
java -cp gst1-java-examples-1.0.0-SNAPSHOT.jar:../../gst1-java-core/1.0.0-beta-1/gst1-java-core-1.0.0-beta-1.jar:../../../../../net/java/dev/jna/jna/5.2.0/jna-5.2.0.jar
org.freedesktop.gstreamer.examples.PlayBinVideoPlayer
This is not the ideal way to use the examples! ;-)
Best wishes,
Neil
--
Neil C Smith
Artist & Technologist
www.neilcsmith.net
PraxisLIVE - hybrid visual live programming
for creatives, for programmers, for students, for tinkerers
www.praxislive.org