You are not logged in.
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
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
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
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
Offline