Exported application with embed java fails in Linux when the path have any folder name with space character
#6.112 aberto em 29 de out. de 2020
Métricas do repositório
- Stars
- (6.431 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Description
Exported application with embed java fails in Linux when the path have any folder name with space character
The wrong script generated looks like this:
#!/bin/sh
APPDIR=$(readlink -f "$0") APPDIR=$(dirname "$APPDIR") $APPDIR/java/bin/java -Djna.nosys=true -Djava.ext.dirs="$APPDIR/java/lib/ext" -Djava.library.path="$APPDIR:$APPDIR/lib" -cp "$APPDIR:$APPDIR/lib/Alphamask.jar:$APPDIR/lib/core.jar:$APPDIR/lib/jogl-all.jar:$APPDIR/lib/gluegen-rt.jar:$APPDIR/lib/jogl-all-natives-linux-amd64.jar:$APPDIR/lib/gluegen-rt-natives-linux-amd64.jar" Alphamask "$@"
Expected Behavior
Current Behavior
Steps to Reproduce
Your Environment
- Processing version: 3.5.4
- Operating System and OS version: Ubuntu 20.04
- Other information:
Possible Causes / Solutions
To solve the problem just use "$APPDIR" instead $APPDIR at the begging of the line 5
#!/bin/sh
APPDIR=$(readlink -f "$0") APPDIR=$(dirname "$APPDIR") "$APPDIR"/java/bin/java -Djna.nosys=true -Djava.ext.dirs="$APPDIR/java/lib/ext" -Djava.library.path="$APPDIR:$APPDIR/lib" -cp "$APPDIR:$APPDIR/lib/Alphamask.jar:$APPDIR/lib/core.jar:$APPDIR/lib/jogl-all.jar:$APPDIR/lib/gluegen-rt.jar:$APPDIR/lib/jogl-all-natives-linux-amd64.jar:$APPDIR/lib/gluegen-rt-natives-linux-amd64.jar" Alphamask "$@"