Fedora Linux Support Community & Resources Center
Old 7th March 2012, 08:04 AM
sepoto Offline
Registered User
Join Date: Dec 2010
Posts: 174
Proper usage of ANT in F16?

I started with a fresh installation of F16 and then used the package manager to first install AXIS and then install ANT. Upon changing to the /bin directory of my application and running as requested of me:

> ant deploy

I then receive this message from ant:

The JAVA2_HOME environment variable needs to be set in order to use this ant script.

I have never had to set this variable before. Does anyone know how to do this with ant?

The entire console output I will past below:

[penguin@Penguin-PC bin]$ ls -la
total 13
drwx------. 1 penguin penguin    0 Dec  6 17:29 .
drwx------. 1 penguin penguin 4096 Mar  5 14:35 ..
-rw-------. 1 penguin penguin 4599 May 13  2011 build.xml
-rw-------. 1 penguin penguin  439 May 13  2011 NSClient.bat
[penguin@Penguin-PC bin]$ ant deploy
Buildfile: /media/My Passport/jobs.software/dps.suitetalk.reference/NSJavaClientERP2011-2/ERP/bin/build.xml
  [taskdef] Could not load definitions from resource axis-tasks.properties. It could not be found.

     [echo] --------------------------------------------------------------
     [echo] Project Root Directory is /media/My Passport/jobs.software/dps.suitetalk.reference/NSJavaClientERP2011-2/ERP
     [echo] JAVA_HOME is ${env.JAVA_HOME}
     [echo] AXIS_HOME is ${env.AXIS_HOME}
     [echo] WSDL location is https://webservices.netsuite.com/wsdl/v2011_2_0/netsuite.wsdl
     [echo] --------------------------------------------------------------

/media/My Passport/jobs.software/dps.suitetalk.reference/NSJavaClientERP2011-2/ERP/bin/build.xml:40: The JAVA2_HOME environment variable needs to be set in order to use this ant script. Please see README for details.

Total time: 1 second
[penguin@Penguin-PC bin]$ ^C
[penguin@Penguin-PC bin]$

---------- Post added at 07:04 AM ---------- Previous post was at 05:41 AM ----------

I think JAVA_HOME is in usr/lib/ I'm going with that.
Reply With Quote

ant, f16, proper, usage

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper use of gzip. sepoto Using Fedora 15 1st March 2011 09:40 AM
The proper way to do NFS /home savage Servers & Networking 1 25th April 2009 03:26 PM
Is this proper memory usage? poisomike87 Using Fedora 12 4th February 2008 03:59 PM
Proper hostname bhm8hwcm Installation, Upgrades and Live Media 6 5th November 2006 08:17 PM
Proper JFS configuration? erroneus Using Fedora 5 15th August 2006 09:50 PM

Current GMT-time: 10:52 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat