ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian.Al...@regulusgroup.com
Subject Re: method not found when running ant
Date Wed, 03 Nov 2004 17:32:35 GMT
I blew away the $CLASSPATH settings and got an error because some of the 
jar files I needed were in there.  What I am puzzled about is even though 
I have the JAVA_HOME and ANT_HOME set in my system, when I do an ant 
-diagnostics, they dont appear to be set within ANT's environment. See 
below:
[ballen@opacs184 sourcejammer]$ ant -diagnostics
------- Ant diagnostics report -------
Apache Ant version 1.5.2-20 compiled on September 25 2003

-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : null
optional tasks : not available

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: null
Unable to list libraries.

-------------------------------------------
 Tasks availability
-------------------------------------------
jjtree : Not Available
p4revert : Not Available
vsscheckin : Not Available
p4label : Not Available
csc : Not Available
wlrun : Not Available
p4reopen : Not Available
replaceregexp : Not Available
propertyfile : Not Available
get : Not Available
ddcreator : Not Available
jspc : Not Available
vssget : Not Available
test : Not Available
vsshistory : Not Available
depend : Not Available
jpcoverage : Not Available
ccmcheckin : Not Available
mparse : Not Available
translate : Not Available
vajload : Not Available
jarlib-manifest : Not Available
javacc : Not Available
jarlib-resolve : Not Available
soscheckout : Not Available
wlstop : Not Available
ftp : Not Available
netrexxc : Not Available
antlr : Not Available
jpcovreport : Not Available
xmlvalidate : Not Available
native2ascii : Not Available
ccmcheckintask : Not Available
starteam : Not Available
stcheckin : Not Available
echoproperties : Not Available
vsscheckout : Not Available
stylebook : Not Available
ccmcreatetask : Not Available
script : Not Available
cab : Not Available
cccheckout : Not Available
jdepend : Not Available
p4have : Not Available
splash : Not Available
stlabel : Not Available
rpm : Not Available
soscheckin : Not Available
mimemail : Not Available
mmetrics : Not Available
junit : Not Available
vajexport : Not Available
stcheckout : Not Available
iplanet-ejbc : Not Available
ccmcheckout : Not Available
vsscreate : Not Available
maudit : Not Available
p4edit : Not Available
ejbc : Not Available
p4sync : Not Available
wsdltodotnet : Not Available
sosget : Not Available
telnet : Not Available
junitreport : Not Available
wljspc : Not Available
ccupdate : Not Available
cccheckin : Not Available
vsslabel : Not Available
renameext : Not Available
vsscp : Not Available
vajimport : Not Available
setproxy : Not Available
p4counter : Not Available
serverdeploy : Not Available
ilasm : Not Available
stlist : Not Available
ejbjar : Not Available
jpcovmerge : Not Available
ccuncheckout : Not Available
WsdlToDotnet : Not Available
jlink : Not Available
pvcs : Not Available
jarlib-available : Not Available
sound : Not Available
vssadd : Not Available
blgenclient : Not Available
p4delete : Not Available
javah : Not Available
ccmreconfigure : Not Available
p4change : Not Available
p4add : Not Available
p4submit : Not Available
soslabel : Not Available
icontract : Not Available
jarlib-display : Not Available

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 System properties
-------------------------------------------
path.separator : :
java.vm.name : GNU libgcj
java.vm.specification.name : Java(tm) Virtual Machine Specification
java.home : /usr
java.vm.specification.version : 1.0
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
gnu.classpath.home.url : file:///lib/ssa
gnu.gcj.progname : ant
java.specification.version : 1.3
java.library.path :
gnu.classpath.vm.shortname : libgcj
java.class.version : 46.0
java.specification.name : Java(tm) Platform API Specification
os.version : 2.4.21-4.EL
gnu.classpath.home : /usr
user.home : /home/ballen
file.encoding : UTF-8
os.name : Linux
build.compiler : gcj
user.name : ballen
java.class.path : .
java.io.tmpdir : /tmp
os.arch : i686
java.fullversion : GNU libgcj 3.5-tree-ssa 20030617 (Red Hat Linux Rawhide 
3.5ssa-41)
user.language : en
java.specification.vendor : Sun Microsystems Inc.
user.dir : /usr/local/sourcejammer
java.vm.info : GNU libgcj 3.5-tree-ssa 20030617 (Red Hat Linux Rawhide 
3.5ssa-41)
java.version : 3.5-tree-ssa
sun.boot.class.path : /usr/share/java/libgcj-3.5-tree-ssa.jar
java.vm.vendor : Free Software Foundation, Inc.
java.vendor.url : http://gcc.gnu.org/java/
java.vendor : Free Software Foundation, Inc.
file.separator : /
java.vm.version : 3.5-tree-ssa 20030617 (Red Hat Linux Rawhide 3.5ssa-41)
gnu.cpu.endian : little
user.region : US

[ballen@opacs184 sourcejammer]$ echo $JAVA_HOME
/java/bin
[ballen@opacs184 sourcejammer]$ echo $ANT_HOME
/usr/local/ant
[ballen@opacs184 sourcejammer]$ echo $PATH
/usr/kerberos/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/ant/bin:/java/bin:/usr/local/ant/lib:/usr/local/:/home/ballen/bin
[ballen@opacs184 sourcejammer]$ ant fetch
Buildfile: build.xml

init:

BUILD FAILED
file:/usr/local/sourcejammer/build.xml:5: taskdef class 
org.sourcejammer.client.ant.SJGetProject cannot be found

Total time: 0 seconds
[ballen@opacs184 sourcejammer]$





Matt Benson <gudnabrsam@yahoo.com> 
11/03/2004 12:19 PM
Please respond to
"Ant Users List" <user@ant.apache.org>


To
Ant Users List <user@ant.apache.org>
cc

Subject
Re: method not found when running ant






--- Brian.Allen@regulusgroup.com wrote:
> I am attempting to run ant.  When it fails,I get a
> message that says: 
> "method
> java.util.prefs.Preferences.userNodeForPackage was
> not found". I 
> see that this method is part of a class which is
> part of the standard 
> j2sdk. I have my CLASSPATH  set accordingly with
> :/java   (java 
> directory). Is there anything ant related  that I
> could be missing? 

CLASSPATHs in your environment are evil in general,
more so when you set them to ":/java" ?  I don't know
what to make of that.  Sounds like your environment is
just not set up properly.  Blow away that CLASSPATH to
start with and then tell us what happens.  Including
your PATH, ANT_HOME and JAVA_HOME settings (whichever
exist) as well as the exact error message can only
help.

-Matt



 
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message