6 Replies Latest reply on May 2, 2007 4:28 PM by Pronab Pal


    Pronab Pal Newbie

      After installing JBOSS AS 4.0.5 with ejb3 profile and \jboss-seam-1.2.1.GA the ant script gives the following message with both Java 5 and 6:

      [javac] Compiling 382 source files to C:\JBOSSSIM\jboss-seam-1.2.1.GA\build\
      [javac] javac: invalid target release: 1.5

      Can any of JBoss Seam users please give me a clue what is going wrong ?


        • 1. Re: SEAM INSTALLATION
          Norman Richards Master

          If you are getting that message, you are definitely not using Java 5.

          • 2. Re: SEAM INSTALLATION
            Pronab Pal Newbie

            I am pasting a full display with java -version output : just to make sure we are in the same page:

            C:\JBOSSSIM\jboss-seam-1.2.1.GA>java -version
            java version "1.6.0_01"
            Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
            Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

            Buildfile: build.xml

            [echo] Build JBoss Seam 1.2



            [javac] Compiling 382 source files to C:\JBOSSSIM\jboss-seam-1.2.1.GA\build\
            [javac] javac: invalid target release: 1.5
            [javac] Usage: javac <source files>
            [javac] where possible options include:
            [javac] -g Generate all debugging info
            [javac] -g:none Generate no debugging info
            [javac] -g:{lines,vars,source} Generate only some debugging info
            [javac] -nowarn Generate no warnings
            [javac] -verbose Output messages about what the compiler
            is doing
            [javac] -deprecation Output source locations where deprecated
            APIs are used
            [javac] -classpath Specify where to find user class files
            [javac] -sourcepath Specify where to find input source files

            [javac] -bootclasspath Override location of bootstrap class fil
            [javac] -extdirs Override location of installed extension
            [javac] -d Specify where to place generated class f
            [javac] -encoding Specify character encoding used by sourc
            e files
            [javac] -source Provide source compatibility with specif
            ied release
            [javac] -target Generate class files for specific VM ver
            [javac] -help Print a synopsis of standard options

            BUILD FAILED
            C:\JBOSSSIM\jboss-seam-1.2.1.GA\build.xml:670: Compile failed; see the compiler
            error output for details.

            Total time: 2 seconds


            • 3. Re: SEAM INSTALLATION
              Norman Richards Master

              What version of Java does Ant think it is using? One way to tell:

              [orb@burrito tmp]$ ant -diagnostics | grep java.version
              ant.java.version: 1.5
              java.version : 1.5.0_07

              • 4. Re: SEAM INSTALLATION
                Pronab Pal Newbie

                I can run seam-gen and create a new project without any issue. Can I use seam-gen to deploy the examples? I am still stuck with the invalid target error message, Following is the full ant diagnostic dump-Can any one find any inconsitency in my set up? Please help!

                BUILD FAILED
                C:\JBOSSSIM\jboss-seam-1.2.1.GA\build.xml:656: Compile failed; see the compiler
                error output for details.

                Total time: 1 second
                C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\booking>ant -diagnostics
                ------- Ant diagnostics report -------
                Apache Ant version 1.6.5 compiled on June 2 2005

                Implementation Version (JDK1.2+ only)
                core tasks : 1.6.5
                optional tasks : 1.6.5

                ANT_HOME/lib jar listing
                ant.home: C:\ANT
                ant-antlr.jar (5667 bytes)
                ant-apache-bcel.jar (8617 bytes)
                ant-apache-bsf.jar (12597 bytes)
                ant-apache-log4j.jar (3022 bytes)
                ant-apache-oro.jar (48034 bytes)
                ant-apache-regexp.jar (3724 bytes)
                ant-apache-resolver.jar (4082 bytes)
                ant-commons-logging.jar (3864 bytes)
                ant-commons-net.jar (35303 bytes)
                ant-icontract.jar (9721 bytes)
                ant-jai.jar (21359 bytes)
                ant-javamail.jar (6761 bytes)
                ant-jdepend.jar (8160 bytes)
                ant-jmf.jar (6605 bytes)
                ant-jsch.jar (22726 bytes)
                ant-junit.jar (74237 bytes)
                ant-launcher.jar (9180 bytes)
                ant-netrexx.jar (9998 bytes)
                ant-nodeps.jar (421008 bytes)
                ant-starteam.jar (35472 bytes)
                ant-stylebook.jar (2328 bytes)
                ant-swing.jar (6763 bytes)
                ant-trax.jar (68841 bytes)
                ant-vaj.jar (49742 bytes)
                ant-weblogic.jar (14363 bytes)
                ant-xalan1.jar (4465 bytes)
                ant-xslp.jar (2244 bytes)
                ant.jar (1034049 bytes)
                xercesImpl.jar (1010675 bytes)
                xml-apis.jar (124724 bytes)

                Tasks availability
                image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
                sshexec : Missing dependency com.jcraft.jsch.UserInfo
                scp : Missing dependency com.jcraft.jsch.UserInfo
                jdepend : Missing dependency jdepend.xmlui.JDepend
                junit : Missing dependency junit.framework.Test

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

                XML Parser information
                XML Parser : org.apache.crimson.jaxp.SAXParserImpl
                XML Parser Location: C:\jdom\dom\crimson.jar

                System properties
                java.runtime.name : Java(TM) SE Runtime Environment
                sun.boot.library.path : C:\Program Files\Java\jdk1.6.0_01\jre\bin
                java.vm.version : 1.6.0_01-b06
                ant.library.dir : C:\Ant\lib
                java.vm.vendor : Sun Microsystems Inc.
                java.vendor.url : http://java.sun.com/
                path.separator : ;
                java.vm.name : Java HotSpot(TM) Client VM
                file.encoding.pkg : sun.io
                user.country : AU
                sun.java.launcher : SUN_STANDARD
                sun.os.patch.level : Service Pack 2
                java.vm.specification.name : Java Virtual Machine Specification
                user.dir : C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\booking
                java.runtime.version : 1.6.0_01-b06
                java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
                java.endorsed.dirs : C:\Program Files\Java\jdk1.6.0_01\jre\lib\endorsed
                os.arch : x86
                java.io.tmpdir : C:\DOCUME~1\pronob\LOCALS~1\Temp\
                line.separator :

                java.vm.specification.vendor : Sun Microsystems Inc.
                user.variant :
                os.name : Windows XP
                ant.home : C:\ANT
                sun.jnu.encoding : Cp1252
                java.library.path : C:\Program Files\Java\jdk1.6.0_01\bin;.;C:\WINDOWS\Sun\Java\
                le\product\10.2.0\server\bin; C:\Blazix\;C:\TOM\Tomcat 5.5\bin;C:\Program Files\
                32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Com
                mon Files\Ulead Systems\MPEG;C:\Sun\jwsdp-1.5\jwsdp-shared\bin;C:\Program Files\
                MySQL\MySQL Server 5.0\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
                java.specification.name : Java Platform API Specification
                java.class.version : 50.0
                sun.management.compiler : HotSpot Client Compiler
                os.version : 5.1
                user.home : C:\Documents and Settings\pronob
                user.timezone : Australia/Sydney
                java.awt.printerjob : sun.awt.windows.WPrinterJob
                file.encoding : Cp1252
                java.specification.version : 1.6
                user.name : pronob
                java.class.path : C:\ANT\lib\ant-launcher.jar;c:\jfuge\jfugue.jar;C:\swing\swixm
                l_144\build\swixml.jar;C:\Program Files\Java\jdk1.5.0_03\bin;C:\velocity\velocit
                y-1.4\velocity-1.4\velocity-dep-1.4.jar;C:\flow\ff\abch.jar;C:\TOM\Tomcat 5.5\co
                amples\booking\ C:\Blazix\Blazix.jar;C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\bo
                \xercesImpl.jar;C:\Ant\lib\xml-apis.jar;C:\Program Files\Java\jdk1.6.0_01\lib\to
                java.vm.specification.version : 1.0
                sun.arch.data.model : 32
                java.home : C:\Program Files\Java\jdk1.6.0_01\jre
                java.specification.vendor : Sun Microsystems Inc.
                user.language : en
                awt.toolkit : sun.awt.windows.WToolkit
                java.vm.info : mixed mode, sharing
                java.version : 1.6.0_01
                java.ext.dirs : C:\Program Files\Java\jdk1.6.0_01\jre\lib\ext;C:\WINDOWS\Sun\Jav
                sun.boot.class.path : C:\Program Files\Java\jdk1.6.0_01\jre\lib\resources.jar;C:
                \Program Files\Java\jdk1.6.0_01\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_01
                \jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_01\jre\lib\jsse.jar;C:\Pr
                ogram Files\Java\jdk1.6.0_01\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_01\j
                re\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_01\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 : windows
                sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86


                • 5. Re: SEAM INSTALLATION
                  Christian Bauer Master


                  java.vm.version : 1.6.0_01-b06

                  Use JDK 5.0.

                  • 6. Re: SEAM INSTALLATION
                    Pronab Pal Newbie

                    I just found an old tools.jar sitting in my classpath; removing that has resolved the issue. Thanks for your help along the way.