Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Why does ant not compile(Why does ant not compile can not import into eclipse)
Why does ant not compile [message #1060038] Wed, 22 May 2013 15:23
Steve Howerton is currently offline Steve HowertonFriend
Messages: 5
Registered: April 2013
Junior Member
I just starting building projects with and and eclipse ide. everything I try to import does not compile. I have added jar files to the lib or eclipse and the program runs in eclipse fine.
Why does ant not compile and build the project? How would I begin to fix the compile errors listed?
thanks



compile:
     [echo] "
     [echo]
     [echo] ================================================
     [echo]       COMPILE
     [echo] ================================================
     [echo]
     [echo] "
     [echo] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src
     [echo] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\build
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\build.xml:120: warning: 'includeantruntime' was not set
, defaulting to build.sysclasspath=last; set to false for repeatable builds

    [javac] Compiling 8 source files to C:\Users\Steves\Documents\ceyesumma
\java_cache\my_projects\eclipse\com.cisumma.build.ant.first\target_com.cisu
mma.build.ant.first\com.cisumma.build.ant.first\build\classes
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Bar.java:3: error: package org.apache.log4j d
oes not exist
    [javac] import org.apache.log4j.Logger;
    [javac]                        ^
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Bar.java:6: error: cannot find symbol
    [javac]     public static Logger logger = Logger.getLogger(Bar.class);
    [javac]                   ^
    [javac]   symbol:   class Logger
    [javac]   location: class Bar
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:11: error: package org.apache.log4j
 does not exist
    [javac] import org.apache.log4j.Logger;
    [javac]                        ^
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:12: error: package org.apache.log4j
 does not exist
    [javac] import org.apache.log4j.BasicConfigurator;
    [javac]                        ^
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:14: error: package com.toedter.cale
ndar does not exist
    [javac] import com.toedter.calendar.JCalendar;
    [javac]                            ^
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:20: error: cannot find symbol
    [javac]     public static Logger logger = Logger.getLogger(Main.class);

    [javac]                   ^
    [javac]   symbol:   class Logger
    [javac]   location: class Main
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Bar.java:6: error: cannot find symbol
    [javac]     public static Logger logger = Logger.getLogger(Bar.class);
    [javac]                                   ^
    [javac]   symbol:   variable Logger
    [javac]   location: class Bar
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:20: error: cannot find symbol
    [javac]     public static Logger logger = Logger.getLogger(Main.class);

    [javac]                                   ^
    [javac]   symbol:   variable Logger
    [javac]   location: class Main
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:30: error: cannot find symbol
    [javac]             BasicConfigurator.configure();
    [javac]             ^
    [javac]   symbol:   variable BasicConfigurator
    [javac]   location: class Main
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:53: error: cannot find symbol
    [javac]             JCalendar myJCalendar = new JCalendar();
    [javac]             ^
    [javac]   symbol:   class JCalendar
    [javac]   location: class Main
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecli
pse\com.cisumma.build.ant.first\target_com.cisumma.build.ant.first\com.cisu
mma.build.ant.first\src\model\Main.java:53: error: cannot find symbol
    [javac]             JCalendar myJCalendar = new JCalendar();
    [javac]                                         ^
    [javac]   symbol:   class JCalendar
    [javac]   location: class Main
    [javac] 11 errors

BUILD FAILED
C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\eclipse\com.cisu
mma.build.ant.first\target_com.cisumma.build.ant.first\com.cisumma.build.an
t.first\build.xml:120: Compile failed; see the compiler error output for de
tails.

Total time: 2 seconds
C:\ant\apache-ant-1.8.1\bin>


Previous Topic:run jar file
Next Topic:Changing Native Logging Behavior
Goto Forum:
  


Current Time: Thu Mar 28 19:27:46 GMT 2024

Powered by FUDForum. Page generated in 0.03116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top