0 Replies Latest reply on Jan 22, 2004 11:10 PM by casiso

    "package org.apache.log4j does not exist" error compiling nu

    casiso Newbie

       

      "casiso" wrote:
      Greetings.

      I am trying to compile Nukes, but I get the the following error:

       ==============================================================
       ==
       == Executing 'most' in module 'common'...
       ==
       ==
      
      configure-defaults:
      Overriding previous definition of reference to javac.classpath
      
      generate-parsers:
       [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 /home/casiso/tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeAnalyzer.jj . . .
       [javacc] Parser generated successfully.
       [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 /home/casiso/tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagAnalyzer.jj . . .
       [javacc] Parser generated successfully.
      
      _default:compile-classes:
       [depend] Deleted 0 out of date files in 0 seconds
       [javac] Compiling 49 source files to /home/casiso/tmp/nukes-snapshot/common/output/classes
      [execmodules] /home/casiso/tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/util/Tools.java:12: package org.apache.log4j does not exist
      [execmodules] import org.apache.log4j.Logger;
      [execmodules] ^
      [execmodules] /home/casiso/tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/util/Tools.java:28: cannot resolve symbol
      [execmodules] symbol : class Logger
      


      I am running Gentoo Linux with:
      blackdown-jdk-1.4.1
      jboss-3.2.3
      nukes-snapshot

      My enviroment is:
      CLASSPATH=/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:.:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/op
      tional.jar:/usr/share/jboss/client/jboss-common-client.jar:/usr/share/jboss/client/jboss-system-clie
      nt.jar:/usr/share/jboss/client/log4j.jar:/usr/share/jboss/client/getopt.jar:/usr/share/jboss/client/
      jboss-j2ee.jar:/usr/share/jboss/client/jnp-client.jar:/usr/share/jboss/client/jboss-transaction-clie
      nt.jar:/usr/share/jboss/client/jmx-invoker-adaptor-client.jar:/usr/share/jboss/client/jmx-rmi-connec
      tor-client.jar:/usr/share/jboss/client/jmx-ejb-connector-client.jar:/usr/share/jboss/client/jmx-conn
      ector-client-factory.jar:/usr/share/jboss/client/jboss-client.jar:/usr/share/jboss/client/gnu-regexp
      .jar:/usr/share/jboss/client/concurrent.jar:/usr/share/jboss/client/jboss-jaas.jar:/usr/share/jboss/
      client/jbosssx-client.jar:/usr/share/jboss/client/jsse.jar:/usr/share/jboss/client/jnet.jar:/usr/sha
      re/jboss/client/jcert.jar:/usr/share/jboss/client/jbossmq-client.jar:/usr/share/jboss/client/jbosscx
      -client.jar:/usr/share/jboss/client/jbossha-client.jar:/usr/share/jboss/client/jbossjmx-ant.jar:/usr
      /share/jboss/client/xdoclet-module-jboss-net.jar:/usr/share/jboss/client/jboss-net-client.jar:/usr/s
      hare/jboss/client/jboss-iiop-client.jar:/usr/share/jboss/client/jacorb.jar:/usr/share/jboss/client/j
      boss-jsr77-client.jar:/usr/share/jboss/client/jbossall-client.jar:/usr/share/postgresql/lib/postgres
      ql.jar:.
      JAVAC=/opt/blackdown-jdk-1.4.1/bin/javac
      JAVA_HOME=/opt/blackdown-jdk-1.4.1
      JBOSS_HOME=/usr/share/jboss
      JDK_HOME=/opt/blackdown-jdk-1.4.1

      Package log4j exist in "/usr/share/jboss/client/log4j.jar" and have read access. I tried to compile it as a normal user first, then as root but it reports the same problem.

      Can anybody help me resolve this?
      TIA