Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » building a project(ide runs project yet the build file does not compile : import prob)
building a project [message #1039037] Thu, 11 April 2013 17:07
Steve Howerton is currently offline Steve HowertonFriend
Messages: 5
Registered: April 2013
Junior Member
I just started using eclipse and I am learning build.xml etc.

I had to comment out code below because the ant build would not compile the class.
I have junit.jar in the path and JUNIT4 in the project and I have imported every library that eclipse had.

> ant f  build.xml main

package model.test;

import model.math.MyMath;

import com.toedter.calendar.JCalendar;

public class Main {
	public static JCalendar myJCalendar;
  public static void main(String[] args) {
    MyMath math = new MyMath();
    System.out.println("Result is: " + math.multi(5, 10));
  private static void displayCalendar() {
      myJCalendar = new com.toedter.calendar.JCalendar();


when it is commented out it does the basic operations. Here is some output

     [echo] "================ COMPILE ================="
     [echo] =================== Create a classpath container =============
     [echo] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
     [echo] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
pse\\\com.cis\build.xml:88: warning: 'includeantruntime' was not set
 defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 3 source files to C:\Users\Steves\Documents\ceyesumm
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
pse\\\com.cis\src\model\test\ error: package com.toedter
calendar does not exist
    [javac] import com.toedter.calendar.JCalendar;
    [javac]                            ^
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
pse\\\com.cis\src\model\test\ error: cannot find symbol
    [javac]     public static JCalendar myJCalendar;
    [javac]                   ^
    [javac]   symbol:   class JCalendar
    [javac]   location: class Main
    [javac] C:\Users\Steves\Documents\ceyesumma\java_cache\my_projects\ecl
pse\\\com.cis\src\model\test\ error: package com.toedte
.calendar does not exist
    [javac]       myJCalendar = new com.toedter.calendar.JCalendar();
    [javac]                                             ^
    [javac] 3 errors

t.first\build.xml:88: Compile failed; see the compiler error output for de

Total time: 1 second


Previous Topic:How do I include a custom file in the generated javadoc output?
Next Topic:javadoc eror: illegal package name
Goto Forum:

Current Time: Mon Nov 30 19:11:18 GMT 2015

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

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