I want to set environment variable for example JAVA_HOME under my bash shell, please help
 
Running ant gives the following error
 
 
ml:255: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
 

1 answers, votes, 1960 views
Visitor's picture
asked by Visitor
1 year 47 weeks ago



1 Answers

Answer

 
Open terminal and type
 
JAVA_HOME=<your jdk location>
export JAVA_HOME
 
this will set JAVA_HOME environment variable for your bash shell
 

Visitor's picture
answer by Visitor
1 year 47 weeks ago
  • very bad tutorial!!!

    - Visitor 15 weeks 4 days ago
  • Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

    Poll

    Favorite desktop environment?: