Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / July 2004

Tip: Looking for answers? Try searching our database.

Integrating ant and Installanywhere

Thread view: 
Roedy Green - 23 Jul 2004 23:08 GMT
I am trying to invoke installAnywhere from ant.

I get this error message

W:\source\com\immuexa\tidepool\build2.xml:87: taskdef A class needed
by class com.zerog.ia.integration.ant.InstallAnywhereAntTask cannot be
found: org/apache/tools/ant/taskdefs/ExecTask

ExecTask is part of ant. What can't it find its own class files?

<taskdef name="buildinstaller"
classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask"/>

  <target name="ia" depends="build">
  <buildinstaller
  IAlocation="e:\program files\installanywhere 6 standard"

IAProjectFile="w:\deploy\immuexa\tidepool\tidepool\tidepool.iap_xml"
  />

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Roedy Green - 24 Jul 2004 00:07 GMT
>ExecTask is part of ant. What can't it find its own class files?

I was able to fix the problem by copying all the ant/lib/*.jar files
to the ext directory, but the docs say this should not be necessary.

However, now ANT can't find the javac main class.

Arggh.
Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Roedy Green - 24 Jul 2004 01:51 GMT
>However, now ANT can't find the javac main class.

using the -v option I discovered

"Detected Java version: 1.4 in: E:\j2sdk1.4.2_05\jre"

I would have expected it to use E:\j2sdk1.4.2_05\bin\java.exe
so that it could find the com.sun.tools.javac.Main
class more easily.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Roedy Green - 24 Jul 2004 02:27 GMT
>W:\source\com\immuexa\tidepool\build2.xml:87: taskdef A class needed
>by class com.zerog.ia.integration.ant.InstallAnywhereAntTask cannot be
>found: org/apache/tools/ant/taskdefs/ExecTask

Turns out the InstallAnywhere docs are wrong. They say in one place to
put iaant.jar on the classpath and in another in ANT_HOME/lib/ext.

Both are wrong.  You supposed to put it in ANT_HOME/lib.

The error message is misleading. I suspect the class it is having
trouble finding is com.zerog.ia.integration.ant.InstallAnywhereAntTask
not org/apache/tools/ant/taskdefs/ExecTask

InstallAnywhere is a piece of CRAP. Have a look at
http://mindprod.com/jgloss/installanwhere.html for why I say this.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

P.Hill - 24 Jul 2004 17:18 GMT
> InstallAnywhere is a piece of CRAP. Have a look at
> http://mindprod.com/jgloss/installanwhere.html for why I say this.

http://mindprod.com/jgloss/installanywhere.html

Note the extra "y".

-Paul


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.