LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-22-2005, 01:59 PM   #1
AsymptoticOrbit
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Red Hat Enterprise 4 WS
Posts: 4

Rep: Reputation: 0
Question Apache Ant and Red Hat Enterprise WS 4


I'm trying to install Apache Ant 1.6.5. I am having trouble locating the rpm for this package. Any suggestions?
 
Old 08-22-2005, 03:41 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I don't think you will find one. You can install the binary version. It has all the dependency's included. I just looked over it briefly
and basically you cerate the dir /usr/local/ant and untar it or unzip it here. then you need to set up the environment ;
Code:
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/jdk-1.2.2
export PATH=${PATH}:${ANT_HOME}/bin
Just follow this;
http://ant.apache.org/manual/index.html
 
Old 08-22-2005, 06:40 PM   #3
AsymptoticOrbit
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Red Hat Enterprise 4 WS
Posts: 4

Original Poster
Rep: Reputation: 0
There is a little more to it then what you suggested.

I got the following error after I installed Ant:



Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.langClass, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/home/im/apache-ant-1.6.5/bin/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-23.4.so)
at _Jv_RegisterClasses ('/home/im/apache-ant-1.6.5/bin/java.version=1.4.2



The problem seems to lie withing the Ant launch script in /ant/bin.

Last edited by AsymptoticOrbit; 08-22-2005 at 06:43 PM.
 
Old 08-22-2005, 07:51 PM   #4
jillande
Member
 
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
i built rpms for this the other day, and i found that java-1.4.2-bea (or whichever version that binary expects) was the key to making ant run. it is possible that the necessary files are on your system, but in non-standard locations.

i would install java-1.4.2-bea (rhn current version is java-1.4.2-bea-1.4.2.05-1jpp_13rh) and see if that helps. that is the extent to which i can offer advise on this since i just build the package, i don't know what it does.
 
Old 08-22-2005, 08:02 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I don't know much about it but have installed other programs that use java, this
export JAVA_HOME=/usr/local/jdk-1.2.2
is just an example, you may be able to search for someone who has installed it on
Red Hat Enterprise WS 4 to see what it uses, good luck
 
  


Reply



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
red hat linux enterprise andox Linux - Newbie 1 07-21-2004 11:26 AM
move ssl from ibm httpserver to apache on Red Hat Enterprise Linux 3 wealth2k Linux - Security 4 06-30-2004 02:31 PM
Download Red Hat Enterprise 3.0 mnewcomb Red Hat 2 03-25-2004 08:43 AM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM
Red Hat Enterprise vs. Red Hat Linux Project RedHatMN Linux - Distributions 2 07-29-2003 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:16 PM.

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
Open Source Consulting | Domain Registration