About the Package "org.apache.tools.ant.BuildException&
wusun
Joined: 2004-08-10
Posts: 6 |
![]() |
Hi, professional developers: I am writing the a java application using Ant, but stucked on dealing with the Ant Task. error: Class or interface `org.apache.tools.ant.BuildException' not found in import. error: Superclass `org.apache.tools.ant.Task' of class `com.gal lery.GalleryRemote.util.PostChangeLog' not found. error: Class `BuildException' not found Could someone help me to fix these bugs? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
The ant.jar file from Ant must be in your classpath when you build GR with ant. May I inquire what you're going to use GR for, out of curiosity? |
|
wusun
Joined: 2004-08-10
Posts: 6 |
![]() |
Hello, paour: export ANT_HOME=/usr/local/ant The Ant I am using was installed when I installed the Linux system. I really appreciate you help Best regards!!! |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Thanks for the info. You should find 'ant.jar' using the locate command to find out where it is in your system. |
|
wusun
Joined: 2004-08-10
Posts: 6 |
![]() |
Thanks for your patientence: I tried the command "locate ant.jar" in the console windows, and the result is Then I copied the "ant.jar" file from the first folder above to the folder /usr/local/ant Thanks a lot for your replying. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
I'm no longer sure I understand what you're trying to do... Are you trying to get an unmodified version of GR to build? Are you modifying it and it no longer builds? |
|
wusun
Joined: 2004-08-10
Posts: 6 |
![]() |
I am trying to get an unmodified version of GR to build to see how the image is processed. Thank you very much! :D |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
OK. The easier solution to that is to simply remove the com/gallery/GalleryRemote/util/PostChangeLog.java file. It's not necessary to run GR (it's used in the process that creates the nightly builds). That should solve the ant.jar dependancy. |
|
wusun
Joined: 2004-08-10
Posts: 6 |
![]() |
Hi, paour I really appreciate your help and patientence. Thanks a lot. |
|