File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant: earExport is not working with Jdk 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant: earExport is not working with Jdk 1.4" Watch "Ant: earExport is not working with Jdk 1.4" New topic
Author

Ant: earExport is not working with Jdk 1.4

Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Hi,

I am new to Ant technology. I am working with Java 1.4, when I am trying to create a ear file for my project with the command earExport. It's giving below error:

BUILD FAILED
C:\Ngen_POS_Src_Code\RMS\build.xml:82: Problem: failed to create task or type ea
rExport
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Could anyone please analyze what may be the root causes of this error.

Ok I am also attaching the script for your convinence



To run this build I have a batch file which is listed below



Now I think I have given enough evidence to investigate this issue. Please help me out.


The Best way to predict your future is to create it - Every great individual common man
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Ankur,
Who supplies earExport? Do they have any documentation of how to reference their tasks? For example, do you need to include a taskdef in the build file or add it to the classpath/ant home.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by Jeanne Boyarsky:
Ankur,
Who supplies earExport? Do they have any documentation of how to reference their tasks? For example, do you need to include a taskdef in the build file or add it to the classpath/ant home.


Hi Jeanne,

I really don't understand what does this means

Who supplies earExport?


Did you mean is this is ANT Api or JAVA Api ?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

I mean "what jar file did it come in".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant: earExport is not working with Jdk 1.4
 
Similar Threads
Problem in ServiceGen task
Session not bound?
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat
ANT Script Example for Websphere Application Server
can't generate JUnit report