You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi to all..i get this error when trying to redirect the native streams using NativeStreams class. It's running on Windows, where perhaps hasn't be tested yet!
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'fdopen': Impossibile trovare la procedura specificata.
at com.sun.jna.Function.<init>(Function.java:179)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:430)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:410)
at com.sun.jna.Library$Handler.invoke(Library.java:205)
at com.sun.proxy.$Proxy1.fdopen(Unknown Source)
at uk.co.caprica.vlcj.runtime.streams.NativeStreams.redirectErrorTo(NativeStreams.java:119)
at uk.co.caprica.vlcj.runtime.streams.NativeStreams.<init>(NativeStreams.java:89)
at com.rtlc_project.client.Client.main(Client.java:93)
The text was updated successfully, but these errors were encountered:
Indeed this experimental class has not been tested on Windows.
This implementation uses "fdopen" and other similar functions from the native "C" library.
I guess that function does not exist in the Microsoft C runtime library, or the vlcj LibC class is not loading the msvcrt.dll correctly. Maybe try changing the loadLibrary call in that class from "msvcrt" to "libmsvcrt", but that is a total guess.
I've solved with a very basic batch script executing the jar file and redirecting the STDERR...if anyone need here's the code
java -jar filename.jar 2>3
Hi to all..i get this error when trying to redirect the native streams using NativeStreams class. It's running on Windows, where perhaps hasn't be tested yet!
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'fdopen': Impossibile trovare la procedura specificata.
The text was updated successfully, but these errors were encountered: