Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jajuk RPM doesn't work under Fedora 27 #2018

Open
bflorat opened this issue May 6, 2018 · 0 comments
Open

Jajuk RPM doesn't work under Fedora 27 #2018

bflorat opened this issue May 6, 2018 · 0 comments

Comments

@bflorat
Copy link
Contributor

bflorat commented May 6, 2018

After official Jajuk RPM installation, Jajuk crashes with this message :

/bin/jajuk: line 43: cd: /home/bflorat/prog//bin/bin: No such file or directory
Detected a 64-bit operating system, using the lib64 native library directory.
Java version in the default path is: 1.8
java -client -Xms20M -Xmx2G -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -Xverify:none -Djava.library.path=/usr/lib/jni:/usr/lib:/usr/share/jajuk/lib64:/home/bflorat/prog//bin/bin/../lib/lib64 -jar jajuk.jar -notest
Error: Unable to access jarfile jajuk.jar

The problem is in the path detection when /bin is a symlink to /usr/bin , to fix, replace /usr/bin/jajuk by /bin

if [ "**/usr/bin/jajuk**" = "$0" ] && [ -e /usr/share/jajuk/bin/jajuk.jar ] ; then
    JAJUK_HOME="/usr/share/jajuk/bin"
    cd /usr/share/jajuk/bin
else
    JAJUK_HOME=$(pwd)/`dirname "$0"`/bin
    cd "$JAJUK_HOME"
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant