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 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.
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.
Uh oh, we're definitely being carded. Here, show him this tiny ad: