Avatar of jjoz
jjoz
Flag for Australia

asked on 

How to setup ANT & JAVA Home in Ubuntu Linux 64 bit ?

Hi All,

I've successfully installed Java and Ant using apt-get, however when i tried to echo the env. variable, I doesn't give me anything ?

But, i can see some result here:

root@SSV:~# java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

root@SSV:~# ant
Buildfile: build.xml does not exist!
Build failed

Open in new window



is that working configuration or i shall add it into /etc/environment file like the following ?


root@SSV:~# whereis ant
ant: /usr/bin/ant /usr/share/ant /usr/share/man/man1/ant.1.gz[

root@SSV:~# whereis java
java: /usr/bin/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz
root@SSV:~#

Open in new window


Any help would be greatly appreciated.

Thanks
LinuxLinux OS DevLinux Distributions

Avatar of undefined
Last Comment
jjoz

8/22/2022 - Mon