aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes error : Cannot use classic compiler, as it is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "error : Cannot use classic compiler, as it is not available" Watch "error : Cannot use classic compiler, as it is not available" New topic
Author

error : Cannot use classic compiler, as it is not available

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 576
I am trying to build poolman a tool that u can use with tomacat it pools databse connections>

When I try to build the application I get the following error message:


C:\poolman-2.0.3\build>build
Buildfile: build.xml

init:

prepare:

compile:
[javac] Compiling 48 source files to C:\poolman-2.0.3\bin
[javac] Modern compiler is not available - using classic compiler

BUILD FAILED

C:\poolman-2.0.3\build\build.xml:49: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your
jdk directory.

Total time: 1 second
C:\poolman-2.0.3\build>

when I do this:

C:\poolman-2.0.3\build>echo %JAVA_HOME%
C:\jdk1.3

C:\poolman-2.0.3\build>

Why is ant throwing up this message.

Thanks for any help Tony
Don Stadler
Ranch Hand

Joined: Feb 10, 2004
Posts: 451
Poolman may be expecting the jsdk 1.4.
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
I'm not sure why it's failing, but there are several links on google about it.

For Ant, modern compiler is anything 1.3 and above, so it should work. Classic is 1.1 and 1.2.
Don Stadler
Ranch Hand

Joined: Feb 10, 2004
Posts: 451
Originally posted by Tony Evans:


C:\poolman-2.0.3\build\build.xml:49: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your
jdk directory.

C:\poolman-2.0.3\build>echo %JAVA_HOME%
C:\jdk1.3

Why is ant throwing up this message.


Tony, I would check to make certain that %JAVA_HOME%/bin/javac exists and that the PATH environmental variable is set in your context and includes %JAVA_HOME%/bin .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error : Cannot use classic compiler, as it is not available