Problem with rpm package

Hi,

there is problem with the spark-2.8.3.rpm package.
the installed /usr/bin/spark script to start the client is missing the java call in the 2nd line.
installed script:

[user@workstation]:cat /usr/bin/spark
#!/bin/bash
SPARKDIR=/usr/share/spark
-Dappdir=$SPARKDIR -cp $SPARKDIR/lib/log4j.jar:$SPARKDIR/lib/jdom.jar:$SPARKDIR/lib/fmj.jar:$SPARKDIR/lib/startup.jar:$SPARKDIR/lib/linux/jdic.jar:$SPARKDIR/resources org.jivesoftware.launcher.Startup
[user@workstation]:spark
/usr/bin/spark: line 3: -Dappdir=/usr/share/spark: No such file or directory

modified working one:

[user@workstation]:cat /usr/bin/spark
#!/bin/bash
SPARKDIR=/usr/share/spark
java -Dappdir=$SPARKDIR -cp $SPARKDIR/lib/log4j.jar:$SPARKDIR/lib/jdom.jar:$SPARKDIR/lib/fmj.jar:$SPARKDIR/lib/startup.jar:$SPARKDIR/lib/linux/jdic.jar:$SPARKDIR/resources org.jivesoftware.launcher.Startup

Regards
Frank

1 Like

Hi, i have filed this as https://issues.igniterealtime.org/browse/SPARK-2044. Though i don’t know how to modify this as it is not in the source and maybe is generated when installers are built.

This problem happens due to OpenJdk which is installed by default in Fedora. To rescue, download the oracle JDK and install. Here’s how to do it at: https://www.vivaolinux.com.br/dica/Trocando-o-OpenJDK-pelo-JRE-Oracle-no-Fedora