You are not logged in.

#1 2006-07-27 21:15:44

entvex
Member
Registered: 2006-04-02
Posts: 52

apache-ant problem need it to complie freecol

hallo i did just install apache-ant but when i try to run it i just get an error li'l post my log

[root@archhost ~]# pacman -S apache-ant

Targets: jdk-1_5_0_07-1 apache-ant-1.6.5-1

Total Package Size:   16.7 MB

Proceed with upgrade? [Y/n] y

:: Retrieving packages from extra...
jdk-1_5_0_07-1           [################] 100%   14536K    75.2K/s  00:03:13
apache-ant-1.6.5-1       [################] 100%    2525K    69.9K/s  00:00:36

checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
installing jdk... done.
The jre package is licensed software.
You MUST read and agree to the license stored in
/opt/java/LICENSE before using it.
installing apache-ant... done.
[root@archhost ~]# ant
Error: JAVA_HOME is not defined correctly.
  We cannot execute java
[root@archhost ~]# java
-bash: java: command not found
[root@archhost ~]#


Linux can run on any thing...
look at me
[img]http://img53.imageshack.us/img53/8413/indexol8.png[/img]

Offline

#2 2006-07-27 22:27:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: apache-ant problem need it to complie freecol

To fix it, log out and relogin.
If you don't want to logout now, run:
source /etc/profile.d/jdk.sh
in a terminal and ant/java will work in that terminal.

Offline

#3 2006-07-28 08:41:50

entvex
Member
Registered: 2006-04-02
Posts: 52

Re: apache-ant problem need it to complie freecol

heres my output agen
[root@archhost ~]# source /etc/profile.d/jdk.sh
[root@archhost ~]# ant
Error: JAVA_HOME is not defined correctly.
  We cannot execute /opt/java/bin/java
[root@archhost ~]# java
-bash: java: command not found
[root@archhost ~]#

and i did try to logout and reboot still the same error


Linux can run on any thing...
look at me
[img]http://img53.imageshack.us/img53/8413/indexol8.png[/img]

Offline

#4 2012-12-10 00:32:26

jarshvor
Member
Registered: 2012-07-26
Posts: 28

Re: apache-ant problem need it to complie freecol

Snowman wrote:

To fix it, log out and relogin.
If you don't want to logout now, run:
source /etc/profile.d/jdk.sh
in a terminal and ant/java will work in that terminal.


worked for me, thanks Snowman
wink

Offline

Board footer

Powered by FluxBB