Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Running Ant from WebSphere Studio

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to run a couple ant build scripts to build and deploy java applications. The ant scripts run successfully when I execute them from the command line. However, if I try to run the same ant scripts from WebSphere Studio (version 5.1), the compile step fails with the message: "Modern compiler not found - looking for classic compiler".

I googled for this error, and found some IBM documentation that says I need to supply the following argument when executing the ant script from WebSphere Studio: -Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter

Well I tried supplying the above argument, but I still get the exact same error.

Has anyone encountered and found a solution to this problem?

Thanks very much!

Dom
 
author & internet detective
Posts: 39890
798
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dom,
When we used Ant from WSAD for the first time, we had to upgrade the version of Ant used and change the workspace preferences to point to it. I'm not sure if this is the same error though.
 
Dom Incollingo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,

Thanks for the response. Do you recall which version of Ant you had to upgrade to? Since the ant build works file when it is run from the command line, I figured (perhaps incorrectly) that the problem was with WSAD. But when I get to work tomorrow, I will check our version of Ant and try upgrading to a newer version.

Dom
 
Jeanne Boyarsky
author & internet detective
Posts: 39890
798
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dom,
We upgraded from Ant 1.5.3 to 1.6.1.2.
 
Dom Incollingo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,

Thanks very much for the info. I checked our Ant installation a few weeks ago, and we're running version 1.6.5. So I don't think that there is a more stable version for us go upgrade to.

I've since found a couple other people that had the same problem when trying to run a build script from WebSphere Studio, but one of them was able to run the same ant script on Eclipse. So I'm guessing that there is some WebSphere-specific setting that I need.

For now, I'm happily running the build script from the command line on one of our Linux servers.

Thanks again for your time and suggestions.

Dom
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!