LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2012, 03:36 AM   #1
abi
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
give path in bash_profile.??


i have downloded ant build.the installation tells us to give path in bash_profile.but i already have path as below.


# User specific environment and startup programs
JAVA_HOME=/usr/local/AT_Dev_Env/Java/jdk1.6.0_16
PATH=$JAVA_HOME/bin:$PATH

PATH=$PATH:$HOME/bin

export PATH


the new path to be given is

/home/kamath/studyj2ee/ant/apache-ant-1.8.2/bin

how do i give it without error??
 
Old 02-04-2012, 03:59 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

Change this:
Code:
# User specific environment and startup programs
JAVA_HOME=/usr/local/AT_Dev_Env/Java/jdk1.6.0_16
PATH=$JAVA_HOME/bin:$PATH

PATH=$PATH:$HOME/bin

export PATH
to this
Code:
# User specific environment and startup programs
export JAVA_HOME=/usr/local/AT_Dev_Env/Java/jdk1.6.0_16
export ANT_HOME="$HOME/studyj2ee/ant/apache-ant-1.8.2"

PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$ANT_HOME/bin

PATH=$PATH:$HOME/bin

export PATH
Hope this helps.
 
1 members found this post helpful.
Old 02-04-2012, 04:27 AM   #3
abi
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
give path in bash_profile.??

druuna sir,

1) i am using fedora 16 and have now found out that there is no ant.sh in bin folder but only ant.bat in my ant download.
will i have to download new ant ?or is this one sufficient??.

2)i am not able to find ant download for fedora(which contains ant.sh).so if u know any site which contains ant for fedora please help me.

thanks and regards
abi
 
Old 02-04-2012, 04:43 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,
Quote:
Originally Posted by abi View Post
1) i am using fedora 16 and have now found out that there is no ant.sh in bin folder but only ant.bat in my ant download.
will i have to download new ant ?or is this one sufficient??.

2)i am not able to find ant download for fedora(which contains ant.sh).so if u know any site which contains ant for fedora please help me.

thanks and regards
abi
There is no ant.sh, you need to use ant when running it under Linux (just downloaded it to double check).

Hope this helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-21-2011 11:57 AM
Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-07-2011 05:03 PM
Adding a Path to .bash_profile nexisrocks Linux - Newbie 4 06-20-2007 07:54 PM
kde3.2 $PATH and .bash_profile easywebdev Slackware 2 03-29-2004 04:42 PM
.bash_profile & path Syncrm Linux - General 11 01-30-2002 01:49 PM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration