You are not logged in.

#1 2012-05-10 01:03:36

zyke
Member
Registered: 2012-04-22
Posts: 7

[SOLVED] Davmail - line 7: /bin/java: No such file or directory

When I did a yaourt -S davmail, it wanted to download some dependencies,


Targets (6): ca-certificates-java-20120225-1  java-jline-1.0-1  java-rhino-1.7R3-3  jre7-openjdk-headless-7.b147_2.1-3  rhino-1.7R3-3 jre7-openjdk-7.b147_2.1-3

After I had installed all the dependencies and tried to run davmail I got the error:
/usr/bin/davmail: line 7: /bin/java: No such file or directory

Line 7 in the davmail.sh looks like this:

"$JAVA_HOME/bin/java" -cp $CP davmail.DavGateway $1"

What I did was that I changed the $JAVA_HOME/bin/java" to this:
$JAVA_HOME/usr/bin/hava"

Now davmail starts correctly.

Just wanted to share this if anyone else would end up with the same problem.

Last edited by zyke (2012-05-10 01:03:50)

Offline

#2 2012-05-10 03:11:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,344

Re: [SOLVED] Davmail - line 7: /bin/java: No such file or directory

Thanks.  You may want to put a comment on the AUR page for that package.  The owner will get an email notifying him  of the problem.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-05-10 06:55:11

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: [SOLVED] Davmail - line 7: /bin/java: No such file or directory

The problem is that you have to relogin to get JAVA_HOME set correctly globally. This happens for all packages that contain a script in /etc/profile.d/ after the installation.

/e: You solution will not work anymore, when you logout.

Last edited by xduugu (2012-05-10 06:56:36)

Offline

#4 2012-05-10 09:09:05

zyke
Member
Registered: 2012-04-22
Posts: 7

Re: [SOLVED] Davmail - line 7: /bin/java: No such file or directory

ewaller wrote:

Thanks.  You may want to put a comment on the AUR page for that package.  The owner will get an email notifying him  of the problem.

I would if I could,  but I am unable to use the same credentials as I have on the forum, and I find nowhere to sign up there : <

Offline

#5 2012-05-10 09:17:09

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: [SOLVED] Davmail - line 7: /bin/java: No such file or directory

https://aur.archlinux.org/account.php

But see my comment. This is not a bug in davmail.

Offline

#6 2012-05-11 15:14:58

zyke
Member
Registered: 2012-04-22
Posts: 7

Re: [SOLVED] Davmail - line 7: /bin/java: No such file or directory

xduugu wrote:

https://aur.archlinux.org/account.php

But see my comment. This is not a bug in davmail.

Yeah, I read your comment, but could be useful to have an account for later issues as well : )
Thanks

Offline

Board footer

Powered by FluxBB