4 Replies Latest reply on Sep 24, 2004 11:09 AM by oissela

    unable to compile latest cvs

    oissela

      by following instructions reported here:

      http://www.jboss.org/developers/projects/nukes/build

      i got these errors when trying to build:

      F:\nukes\nukes>build
      Executing F:\nukes\nukes\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBa
      nnerLogger
      Buildfile: build.xml

      _buildmagic:init:
      Trying to override old definition of task property
      [echo] F:\nukes/build/etc/mysql.properties

      generate-classes:
      [ejbdoclet] (XDocletMain.start 47 ) Running

      [ejbdoclet] (XDocletMain.start 47 ) Running <localhomeinterfa
      ce/>
      [ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescri
      ptor/>
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] INFO: Some classes refer to other classes that were not found amo
      ng the sources or on the classpath.
      [ejbdoclet] (Perhaps the referred class doesn't exist? Hasn't been gene
      rated yet?)
      [ejbdoclet] The referring classes do not import any fully qualified cla
      sses matching these classes.
      [ejbdoclet] However, since no packages are imported, xjavadoc has assum
      ed that the referred classes
      [ejbdoclet] belong to the same package as the referring class. The clas
      ses are:
      [ejbdoclet] F:\nukes\nukes\src\main\org\jboss\nukes\core\ejb\FileEJB.java --> Co
      mmand qualified to org.jboss.nukes.core.ejb.Command
      [ejbdoclet] F:\nukes\nukes\src\main\org\jboss\nukes\core\ejb\FileEJB.java --> Ac
      tion qualified to org.jboss.nukes.core.ejb.Action
      [ejbdoclet] F:\nukes\nukes\src\main\org\jboss\nukes\core\ejb\FileEJB.java --> Fi
      leCommand qualified to org.jboss.nukes.core.ejb.FileCommand

      _default:compile-classes:
      [depend] Deleted 0 out of date files in 0 seconds
      [javac] Compiling 211 source files to F:\nukes\nukes\output\classes
      [javac] F:\nukes\nukes\src\main\org\jboss\nukes\io\HeadWriter.java:12: packa
      ge org.jboss.nukes.common.io does not exist
      [javac] import org.jboss.nukes.common.io.ReusableCharArrayReader;
      [javac] ^
      [javac] F:\nukes\nukes\src\main\org\jboss\nukes\io\HeadWriter.java:13: packa
      ge org.jboss.nukes.common.html does not exist
      [javac] import org.jboss.nukes.common.html.HeadAnalyzer;
      [javac] ^
      [javac] F:\nukes\nukes\src\main\org\jboss\nukes\io\HeadWriter.java:14: packa
      ge org.jboss.nukes.common.html does not exist
      [javac] import org.jboss.nukes.common.html.Token;
      [javac] ^
      [javac] F:\nukes\nukes\src\main\org\jboss\nukes\io\HeadWriter.java:15: packa
      ge org.jboss.nukes.common.chars does not exist
      [javac] import org.jboss.nukes.common.chars.MutableChars;
      [javac] ^

      (and so on...)

      what's wrong?

        • 1. Re: unable to compile latest cvs
          jae77

          did you compile the "common" package first?

          we should probably add some kind of check that will check if the common package has been compiled and if not, compile it before the core.

          • 2. Re: unable to compile latest cvs
            oissela

            The common build fails in this way:

            F:\nukes\common>build
            Executing F:\nukes\common\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoB
            annerLogger
            Buildfile: build.xml

            _buildmagic:init:
            Trying to override old definition of task property
            [echo] F:\nukes/build/etc/mysql.properties

            configure-defaults:
            Overriding previous definition of reference to javac.classpath

            generate-parsers:
            [mkdir] Created dir: F:\nukes\common\output\gen\classes\org\jboss\nukes\comm
            on\template
            [javacc] Java Compiler Compiler Version 2.0 (Parser Generator)
            [javacc] Copyright (c) 1996-2000 Sun Microsystems, Inc.
            [javacc] Copyright (c) 1997-2000 Metamata, Inc.
            [javacc] (type "javacc" with no arguments for help)
            [javacc] Reading from file F:\nukes\common\src\main\org\jboss\nukes\common\te
            mplate\TemplateAnalyzer.jj . . .
            [javacc] File "TokenMgrError.java" does not exist. Will create one.
            [javacc] File "ParseException.java" does not exist. Will create one.
            [javacc] File "Token.java" does not exist. Will create one.
            [javacc] File "ASCII_CharStream.java" does not exist. Will create one.
            [javacc] Parser generated successfully.
            [mkdir] Created dir: F:\nukes\common\output\gen\classes\org\jboss\nukes\comm
            on\format\code
            [jflex] Generated: Analyzer.java
            [mkdir] Created dir: F:\nukes\common\output\gen\classes\org\jboss\nukes\comm
            on\format\html
            [jflex] Generated: Analyzer.java
            [mkdir] Created dir: F:\nukes\common\output\gen\classes\org\jboss\nukes\comm
            on\html
            [jflex] Generated: HeadAnalyzer.java

            _default:compile-classes:
            [mkdir] Created dir: F:\nukes\common\output\classes
            [depend] Deleted 0 out of date files in 0 seconds
            [javac] Compiling 83 source files to F:\nukes\common\output\classes
            [javac] F:\nukes\common\src\main\org\jboss\nukes\common\ant\DirException.jav
            a:11: package org.apache.tools.ant does not exist
            [javac] import org.apache.tools.ant.BuildException;
            [javac] ^
            [javac] F:\nukes\common\src\main\org\jboss\nukes\common\ant\Explode.java:11:
            package org.apache.tools.ant does not exist
            [javac] import org.apache.tools.ant.BuildException;
            [javac] ^
            [javac] F:\nukes\common\src\main\org\jboss\nukes\common\ant\Explode.java:12:
            package org.apache.tools.ant does not exist
            [javac] import org.apache.tools.ant.Task;

            (...)

            • 3. Re: unable to compile latest cvs
              chasetec

              Try building from the build directory and not the nukes directory.

              You may also want to look at the build instructions at:
              http://www.jboss.org/wiki/Wiki.jsp?page=InstallUninstallUpgrade

              • 4. Re: unable to compile latest cvs
                oissela