Install ant-optional to see if it can help. 
Example in Debian "apt-get install ant-optional"

Obi

| -----Opprinnelig melding-----
| Fra: [EMAIL PROTECTED] 
| [mailto:[EMAIL PROTECTED] På vegne 
| av Robert Roggenbuck
| Sendt: 25. oktober 2007 13:24
| Til: Graham Triggs
| Kopi: [email protected]
| Emne: Re: [Dspace-tech] DSpace Installation: Java-Problem
| 
| 
| Graham Triggs schrieb:
|  > What is the output of:
|  >
|  > ant -diagnostics
|  >
| 
| Wow, ant is very verbose with its '-diagnostics':
| 
| ------- Ant diagnostics report -------
| Apache Ant version 1.6.5 compiled on July 5 2006
| 
| -------------------------------------------
|   Implementation Version (JDK1.2+ only)
| -------------------------------------------
| core tasks     : null
| optional tasks : 1.6.5
| 
| -------------------------------------------
|   ANT_HOME/lib jar listing
| -------------------------------------------
| ant.home: /usr/share/ant
| ant-nodeps.jar (421921 bytes)
| ant-apache-bcel.jar (8765 bytes)
| ant-commons-net.jar (35519 bytes)
| ant-swing.jar (6768 bytes)
| ant-bootstrap.jar (15970 bytes)
| ant-junit.jar (72936 bytes)
| junit.jar (68448 bytes)
| tomcat5.5-jkstatus-ant.jar (20816 bytes)
| ant-antlr.jar (5758 bytes)
| ant-launcher.jar (9180 bytes)
| catalina5.5-ant.jar (26712 bytes)
| ant-apache-resolver.jar (4064 bytes)
| ant-javamail.jar (6811 bytes)
| ant-trax.jar (68529 bytes)
| catalina5.5-ant-jmx.jar (23778 bytes)
| ant-apache-bsf.jar (12574 bytes)
| ant-apache-regexp.jar (3748 bytes)
| ant-jsch.jar (22991 bytes)
| ant-apache-oro.jar (48180 bytes)
| ant-jdepend.jar (8172 bytes)
| ant-commons-logging.jar (3990 bytes)
| ant.jar (1060964 bytes)
| ant-jmf.jar (6520 bytes)
| ant-apache-log4j.jar (3012 bytes)
| 
| -------------------------------------------
|   Tasks availability
| -------------------------------------------
| image : Not Available
| sshexec : Missing dependency com.jcraft.jsch.UserInfo
| wlrun : Not Available
| icontract : Not Available
| scp : Missing dependency com.jcraft.jsch.UserInfo
| vajload : Not Available
| stlist : Not Available
| netrexxc : Not Available
| starteam : Not Available
| stylebook : Not Available
| stlabel : Not Available
| jdepend : Missing dependency jdepend.xmlui.JDepend
| stcheckin : Not Available
| vajexport : Not Available
| stcheckout : Not Available
| ejbc : Not Available
| vajimport : Not Available
| wlstop : Not Available
| ddcreator : Not Available
| 
| -------------------------------------------
|   org.apache.env.Which diagnostics
| -------------------------------------------
| Not available.
| Download it at http://xml.apache.org/commons/
| 
| -------------------------------------------
|   XML Parser information
| -------------------------------------------
| XML Parser : org.apache.xerces.jaxp.SAXParserImpl
| XML Parser Location: /usr/share/java/xercesImpl.jar
| 
| -------------------------------------------
|   System properties
| -------------------------------------------
| java.runtime.name : Java(TM) 2 Runtime Environment, Standard 
| Edition sun.boot.library.path : 
| /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386
| java.vm.version : 1.5.0_11-b03
| ant.library.dir : /usr/share/ant/lib
| java.vm.vendor : Sun Microsystems Inc.
| java.vendor.url : http://java.sun.com/
| path.separator : :
| java.vm.name : Java HotSpot(TM) Server VM
| file.encoding.pkg : sun.io
| user.country : DE
| sun.java.launcher : SUN_STANDARD
| sun.os.patch.level : unknown
| java.vm.specification.name : Java Virtual Machine 
| Specification user.dir : /opt/dspace-1.4.2-source 
| java.runtime.version : 1.5.0_11-b03 java.awt.graphicsenv : 
| sun.awt.X11GraphicsEnvironment java.endorsed.dirs : 
| /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/endorsed
| os.arch : i386
| java.io.tmpdir : /tmp
| line.separator :
| 
| java.vm.specification.vendor : Sun Microsystems Inc.
| os.name : Linux
| ant.home : /usr/share/ant
| sun.jnu.encoding : UTF-8
| java.library.path : 
| /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/server:/usr/
| lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386:/usr/lib/jvm/java
| -1.5.0-sun-1.5.0.11/jre/../lib/i386
| java.specification.name : Java Platform API Specification 
| java.class.version : 49.0 sun.management.compiler : HotSpot 
| Server Compiler os.version : 2.6.20-16-generic user.home : 
| /home/dspace user.timezone : java.awt.printerjob : 
| sun.print.PSPrinterJob file.encoding : UTF-8 
| java.specification.version : 1.5 user.name : dspace java.class.path : 
| /usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserA
| PIs.jar:/usr/share/java/xercesImpl.jar:/opt/apache-tomcat-5.5.
| 25/common/lib/jsp-api.jar:/opt/apache-tomcat-5.5.25/common/lib
| /servlet-api.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/
| ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-commons-net
.jar:/usr/share/ant/lib/ant-| 
swing.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/
| lib/ant-junit.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/
| lib/tomcat5.5-jkstatus-ant.jar:/usr/share/ant/lib/ant-antlr.ja
r:/usr/share/ant/lib/ant-| 
launcher.jar:/usr/share/ant/lib/catalina5.5-ant.jar:/usr/share
| /ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-javama
il.jar:/usr/share/ant/lib/ant-| 
trax.jar:/usr/share/ant/lib/catalina5.5-ant-jmx.jar:/usr/share
| /ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-apache-rege
xp.jar:/usr/share/ant/lib/ant-| 
jsch.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/
| lib/ant-jdepend.jar:/usr/share/ant/lib/ant-commons-logging.jar
| :/usr/sha
| re/ant/lib/ant.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/a
| nt/lib/ant-apache-log4j.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.
| 11/lib/tools.jar
| java.vm.specification.version : 1.0
| sun.arch.data.model : 32
| java.home : /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre
| java.specification.vendor : Sun Microsystems Inc.
| user.language : de
| java.vm.info : mixed mode
| java.version : 1.5.0_11
| java.ext.dirs : /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/ext
| sun.boot.class.path : 
| /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/rt.jar:/usr/lib/j
| vm/java-1.5.0-sun-1.5.0.11/jre/lib/i18n.jar:/usr/lib/jvm/java-
| 1.5.0-sun-1.5.0.11/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.
| 5.0-sun-1.5.0.11/jre/lib/jsse.jar:/usr/lib/jvm/java-1.5.0-sun-
| 1.5.0.11/jre/lib/jce.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/
jre/lib/charsets.jar:/usr/lib/jvm/java-1.5.0-| sun-1.5.0.11/jre/classes
| java.vendor : Sun Microsystems Inc.
| file.separator : /
| java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
| sun.cpu.endian : little
| sun.io.unicode.encoding : UnicodeLittle
| sun.desktop : gnome
| sun.cpu.isalist :
| 
| 
| So, ist the line 'java.class.version : 49.0' a problem? Or 
| some of the 
| missing classes?
| 
| > On Thu, 2007-10-25 at 13:12 +0200, Robert Roggenbuck wrote:
| >> No, I didn't an 'ant clean'. After doing it successful, 
| unfortunately
| >> the problem remains...
| >>
| >> Robert
| >>
| >> Claudia Jürgen schrieb:
| >>> Hi Robert,
| >>>
| >>> did you try ant clean before you did ant fresh_install again?
| >>>
| >>> sunny greetings
| >>>
| >>> Claudia Jürgen
| >>>
| >>>
| >>> Robert Roggenbuck schrieb:
| >>>> I changed the pointer /usr/bin/javac to aim to Java 1.5. 
| Now I get 
| >>>> for
| >>>> saying 'javac -version' this: 'javac 1.5.0_11' - but the 'ant 
| >>>> fresh_install' stays with its complain about a wrong 
| version number in 
| >>>> a class...
| >>>> There must be further things wrong...
| >>>>
| >>>> Desmond Elliott schrieb:
| >>>>> Have you tried using the Sun javac instead of the ECJ javac?
| >>>>>
| >>>>> Robert Roggenbuck wrote:
| >>>>>> Dear All,
| >>>>>>
| >>>>>> I'd like to install DSpace to check whether we can use 
| it for our
| >>>>>> planned OA-Repository. But reaching the point to say 'ant 
| >>>>>> fresh_install' I get the following error message where 
| I can not 
| >>>>>> figure out the reason:
| >>>>>>
| >>>>>> Buildfile: build.xml
| >>>>>>
| >>>>>> compile:
| >>>>>>
| >>>>>> install_code:
| >>>>>>
| >>>>>> build_wars:
| >>>>>>
| >>>>>> init_configs:
| >>>>>>
| >>>>>> setup_database:
| >>>>>>       [java] 2007-10-25 12:36:16,477 INFO
| >>>>>> org.dspace.storage.rdbms.InitializeDatabase @ 
| Initializing Database
| >>>>>>       [java] 2007-10-25 12:36:16,536 INFO 
| >>>>>> org.dspace.core.ConfigurationManager @ DSpace logging 
| installed 
| >>>>>> using log4j.properties
| >>>>>>       [java] Exception in thread "main" 
| >>>>>> java.lang.UnsupportedClassVersionError: Bad version 
| number in .class 
| >>>>>> file
| >>>>>>       [java]     at 
| java.lang.ClassLoader.defineClass1(Native Method)
| >>>>>>       [java]     at 
| >>>>>> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| >>>>>>       [java]     at 
| >>>>>> 
| java.security.SecureClassLoader.defineClass(SecureClassLoader.
| java:124)
| >>>>>>       [java]     at 
| >>>>>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
| >>>>>>       [java]     at 
| >>>>>> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
| >>>>>>       [java]     at 
| >>>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:195)
| >>>>>>       [java]     at 
| >>>>>> java.security.AccessController.doPrivileged(Native Method)
| >>>>>>       [java]     at 
| >>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| >>>>>>       [java]     at 
| >>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| >>>>>>       [java]     at 
| >>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
| >>>>>>       [java]     at 
| >>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| >>>>>>       [java]     at 
| >>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| >>>>>>       [java]     at java.lang.Class.forName0(Native Method)
| >>>>>>       [java]     at java.lang.Class.forName(Class.java:164)
| >>>>>>       [java]     at 
| >>>>>> 
| org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseMa
| nager.java:1607) 
| >>>>>>
| >>>>>>       [java]     at 
| >>>>>> 
| org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseMa
| >>>>>> nager.java:715)
| >>>>>>
| >>>>>>       [java]     at 
| >>>>>> 
| org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.
| >>>>>> java:1062)
| >>>>>>
| >>>>>>       [java]     at 
| >>>>>> 
| org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDataba
| >>>>>> se.java:71)
| >>>>>>
| >>>>>>
| >>>>>> BUILD FAILED
| >>>>>> /opt/dspace-1.4.2-source/build.xml:293: Java returned: 1
| >>>>>>
| >>>>>> Total time: 3 seconds
| >>>>>>
| >>>>>>
| >>>>>> Any suggestions? I think its not directly a problem 
| with dspace, 
| >>>>>> but
| >>>>>> with my Java installation. But anyway I would be glad 
| for any hint.
| >>>>>>
| >>>>>> Here some info about my environment:
| >>>>>>
| >>>>>>  >uname -a
| >>>>>> Linux OSU458 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 
| >>>>>> 2007
| >>>>>> i686 GNU/Linux
| >>>>>> (in fact it's an Ubuntu 7.04)
| >>>>>>
| >>>>>>  >javac -version
| >>>>>> Eclipse Java Compiler v_686_R32x, 3.2.2 release, Copyright IBM 
| >>>>>> Corp
| >>>>>> 2000, 2006. All rights reserved.
| >>>>>>
| >>>>>>  >java -version
| >>>>>> java version "1.5.0_11"
| >>>>>> Java(TM) 2 Runtime Environment, Standard Edition (build 
| >>>>>> 1.5.0_11-b03) Java HotSpot(TM) Server VM (build 1.5.0_11-b03, 
| >>>>>> mixed mode)
| >>>>>>
| >>>>>>  >echo $JAVA_HOME
| >>>>>> /usr/lib/jvm/java-1.5.0-sun
| >>>>>>
| >>>>>>  >psql --version
| >>>>>> psql (PostgreSQL) 8.2.5
| >>>>>>
| >>>>>> Further I installed Tomcat 5.5.25 successfully.
| >>>>>>
| >>>>>>
| >>>>>> Best regards
| >>>>>>
| >>>>>> Robert
| >>>>>>
| >>>>>>   
| > This email has been scanned by Postini.
| > For more information please visit http://www.postini.com
| > 
| > 
| 
| -- 
| 
| ===================================
| Robert Roggenbuck
| Universitaetsbibliothek Osnabrueck
| Alte Muenze 16
| D-49074 Osnabrueck
| Germany
| Tel ++49/541/969-4344  Fax -4482
| [EMAIL PROTECTED]
| 
| Postbox:
| Postfach 4496
| D-49034 Osnabrueck
| ===================================
| 
| --------------------------------------------------------------
| -----------
| This SF.net email is sponsored by: Splunk Inc.
| Still grepping through log files to find problems?  Stop.
| Now Search log events and configuration files using AJAX and 
| a browser. Download your FREE copy of Splunk now >> 
http://get.splunk.com/ _______________________________________________
DSpace-tech mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to