Results 1 to 3 of 3
  1. #1
    mail2vs.dvg1 is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default JAVA_HOME is not defined correctly.

    Hi,

    I have installed ant on ubuntu10.04 using following command:

    #apt-get install ant

    but, when i enter the following command:

    #ant -version

    It will display:

    Error: JAVA_HOME is not defined correctly.
    We cannot execute /usr/bin/java:/etc/java:/usr/share/java:/usr/share/man/man1/java.1.gz/bin/java


    Help me to set JAVA_HOME.

    Thanks,
    vs.

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    830
    Rep Power
    6

    Default

    go thru this link
    How to set JAVA_HOME?
    Ramya:cool:

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. User Defined Method
    By overcranked in forum New To Java
    Replies: 6
    Last Post: 04-09-2010, 01:02 AM
  2. JSP with user-defined java classes
    By adammyth in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 03-05-2010, 06:13 PM
  3. Accessing class defined within a constructor
    By kwaspl in forum New To Java
    Replies: 4
    Last Post: 12-21-2009, 02:35 PM
  4. How to call defined java class in Jsp
    By asheeshiit in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-04-2009, 04:21 AM
  5. Java_home
    By ravian in forum New To Java
    Replies: 1
    Last Post: 12-27-2007, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •