Skip to main content

class com.microfocus.ant.TypeFileList cannot be found

  • May 4, 2016
  • 2 replies
  • 1 view

Hi,


I'm trying to build a project using ant. For that I started the "enterprise developer command prompt". Then I invoked:

ant -f .cobolBuild

This gives me:


C:\\projects\\>ant -f .cobolBuild
Buildfile: C:\\projects\\.cobolBuild

BUILD FAILED
C:\\projects\\.cobolBuild:3: typedef class com.microfocus.ant.TypeFileList cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

How can I resolve this?

Thanks.


#EnterpriseDeveloper

2 replies

Yvon Abgrall
  • Rocketeer
  • 37 replies
  • May 4, 2016

Hi,


I'm trying to build a project using ant. For that I started the "enterprise developer command prompt". Then I invoked:

ant -f .cobolBuild

This gives me:


C:\\projects\\>ant -f .cobolBuild
Buildfile: C:\\projects\\.cobolBuild

BUILD FAILED
C:\\projects\\.cobolBuild:3: typedef class com.microfocus.ant.TypeFileList cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

How can I resolve this?

Thanks.


#EnterpriseDeveloper

add .jar ant-contrib-1.0b3.jar  & mfant.jar in your ant command.

These are located on the bin directory of Visual COBOL/Enterprise Developer

e.g.

ant -f .cobolBuild -lib [MFinstallDIR]\\bin\\ant-contrib-1.0b3.jar -lib [MFinstallDIR]\\bin\\mfant.jar

Regards

Yvon


  • Author
  • Rocketeer
  • 19312 replies
  • May 4, 2016

Hi,


I'm trying to build a project using ant. For that I started the "enterprise developer command prompt". Then I invoked:

ant -f .cobolBuild

This gives me:


C:\\projects\\>ant -f .cobolBuild
Buildfile: C:\\projects\\.cobolBuild

BUILD FAILED
C:\\projects\\.cobolBuild:3: typedef class com.microfocus.ant.TypeFileList cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

How can I resolve this?

Thanks.


#EnterpriseDeveloper

Thanks!

ant-contrib is not included in my micro focus installation but mfant.jar is and if I add mfant.jar to the commandline as you suggested, then it works!

I noticed that i can only build from the "enterprise developer command prompt", even if ran createenv.bat first (this is just a note for other people trying to build from ant).