I realize troubleshooting gsvideo+jar-ing appears to have been asked a few times already, but I've tried all the proposed solutions and I still get my peculiar error when running my jar from the command line. (The jar is actually made in Eclipse and I have no problems launching from Eclipse.) I've tried setting
GSVideo.localGStreamerPath explicitly in my code, I've tried using the
-Djava.library.path=./lib/gstreamer/macosx32 command line argument (both relative and absolute paths), and I've tried copying the
gstreamer folder into the same directory as my jar file, and directly into the compressed jar file, etc. -- and nothing seems to work. I hope I'm not missing something obvious. The error is as follows:
- GSVideo version: 1.0.0
- Exception in thread "Animation Thread" java.lang.StringIndexOutOfBoundsException: String index out of range: -12
- at java.lang.String.substring(String.java:1937)
- at codeanticode.gsvideo.GSLibraryPath.get(Unknown Source)
- at codeanticode.gsvideo.GSVideo.lookForGlobalGStreamer(Unknown Source)
- at codeanticode.gsvideo.GSVideo.setMacOSXPath(Unknown Source)
- at codeanticode.gsvideo.GSVideo.initImpl(Unknown Source)
- at codeanticode.gsvideo.GSVideo.init(Unknown Source)
- at codeanticode.gsvideo.GSPlayer.initGStreamer(Unknown Source)
- at codeanticode.gsvideo.GSPlayer.<init>(Unknown Source)
Any other insight would be appreciated! Meanwhile I suppose I'm off to investigate Ant/Maven's options for native library management (I eventually have to get this project running on both Mac and Linux...) Thanks in advance.
1