Skip to content
Permalink
Browse files

fixed for lib setup and using auto dir for jaer path

  • Loading branch information
Tobi Delbruck Tobi Delbruck
Tobi Delbruck authored and Tobi Delbruck committed Nov 19, 2019
1 parent caa129c commit 61f412060032af8d636209888ada703d194558b2
Showing with 12 additions and 8 deletions.
  1. +12 −8 dvs-slice-avi-writer.sh
@@ -1,8 +1,12 @@
#!/bin/sh

# If you get "UnsatisfiedLinkError: /tmp/usb4java... failed to map segment from shared object: Operation not permitted",
# add the following line to the command below:
# -Djava.io.tmpdir=~/tmpdir/

JHOME="/media/iulialexandra/Storage/packages/jaer/code/jAER/trunk"
java -classpath "${JHOME}/dist/jAER.jar:${JHOME}/jars/*:${JHOME}/jars/javacv/*:${JHOME}/jars/jogl/*:${JHOME}/jars/usb4java/*" -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false net.sf.jaer.util.avioutput.DvsSliceAviWriter "$@"
#!/bin/bash

# If you get "UnsatisfiedLinkError: /tmp/usb4java... failed to map segment from shared object: Operation not permitted",
# add the following line to the command below:
# -Djava.io.tmpdir=~/tmpdir/

# from https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# change JAERHOME to your jAER top folder, i.e. the one that holds this script, if DIR doesn't work
JAERHOME="$DIR"
java -classpath "${JAERHOME}/dist/jAER.jar:${JAERHOME}/jars/*:${JAERHOME}/lib/*" -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false net.sf.jaer.util.avioutput.DvsSliceAviWriter "$@"

0 comments on commit 61f4120

Please sign in to comment.
You can’t perform that action at this time.