Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant giving package does not exists error

 
Harish Malavade
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm compiling a java classs say "JAVACLASS1" in package "com.test.codegen" and another java class "JAVACLASS2" in package "com.test.locator" using ant task. My JAVACLASS2 uses class from 3rd package say "com.test.components". The problem is while compiling JAVACLASS2 i'm getting package not found error for com.test.package3 import. Please help me in resolving this. here is my ant script.

<javac debug="on" memoryMaximumSize="512m" memoryInitialSize="256m" fork="true"
destdir="${build.dir.classes}" nowarn="true"
sourcepath=""
srcdir="${java.src.dir}"
classpathref="my.classpath">
<include name="**/codegen/**"/>
<include name="com/tmobile/retail/locator/**"/>
</javac>

Thanks and regards
Harish Malavade(harish.malavade@gmail.com)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without the definition of my.classpath (the value of classpathref), we can't be of much help. But apparently it doesn't include the directory where com.test.package3 is located.

Also, it would help if you provided full paths for both classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic