flyfire / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

Unable to access jarfile android-notifier-desktop.jar #270

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run /usr/share/android-notifier-desktop/run.sh from the command line (or 
from gnome's autostart)

What is the expected output?
Application launches

What do you see instead?
Unable to access jarfile android-notifier-desktop.jar

What version of the product are you using? On what operating system?
android-notifier-desktop 0.5.1-1 on Arch Linux 64 bits

Please provide any additional information below.
I have fixed the problem by editing run.sh:

Substitute:
java -DconfigDir=$configDir 
-Djava.util.prefs.userRoot=$configDir/android-notifier-desktop 
-Djava.net.preferIPv4Stack=true -client -Xms8m -Xmx32m -jar 
android-notifier-desktop.jar $1

by:
java -DconfigDir=$configDir 
-Djava.util.prefs.userRoot=$configDir/android-notifier-desktop 
-Djava.net.preferIPv4Stack=true -client -Xms8m -Xmx32m -jar 
/usr/share/android-notifier-desktop/android-notifier-desktop.jar $1

Original issue reported on code.google.com by carlos.t...@gmail.com on 29 Oct 2010 at 8:43

GoogleCodeExporter commented 9 years ago
So you've download the zip file which can't assume where the program is 
installed, that's why the jar file path is relative. deb and rpm files use an 
absolute path.

The zip file is available for people that are not using a deb or rpm based 
distro like LinuxInstalation wiki page says and you should make adjustments for 
your particular machine like you did.

Original comment by lehph...@gmail.com on 29 Oct 2010 at 11:05

GoogleCodeExporter commented 9 years ago
Actually, let me suggest that you make the shell file use something like:
THISDIR=`dirname "$0"`
java <lots of params> $THISDIR/android-notifier-desktop.jar

Original comment by rdamazio@gmail.com on 29 Oct 2010 at 11:10

GoogleCodeExporter commented 9 years ago
Good idea, thanks.

Original comment by lehph...@gmail.com on 29 Oct 2010 at 11:51