permaculture playing cards*
The moose likes Ant, Maven and Other Build Tools and the fly likes Help: Modern compiler is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Help: Modern compiler is not available." Watch "Help: Modern compiler is not available." New topic
Author

Help: Modern compiler is not available.

Brad Baker
Greenhorn

Joined: Aug 12, 2002
Posts: 15
I don't undstand why I am geting this:
[javac] Modern compiler is not available - using classic compiler
Here is my build.xml

This is the full output:

My path is:
PATH=d:\java\jdk1.4.1\bin;d:\apache\ant-1.5.2\bin
So why does it say "Modern compiler is not available - using classic compiler"?
anyone?
Thanks,
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Have you tried setting your JAVA_HOME environment variable as it suggests in the output ?


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Brad Baker
Greenhorn

Joined: Aug 12, 2002
Posts: 15
Hello Andy,
My OS is Win2k with:
Set JAVA_HOME=d:\java\1.4.1
in my system environment.
I have:

in my build.xml and it gives me:
[echo] JavaHome: d:\java\jdk1.4.1
So as far as I can tell I have JAVA_HOME set.
What have I missed?
Dennis Rosa
Greenhorn

Joined: Apr 07, 2004
Posts: 1
Try this ..

<target name="compile" depends="init">
<javac srcdir="src"
destdir="build"
classpathref="siacc.class.path"
fork="true"
/>
</target>
ANT-Help....
Windows Note:When the modern compiler is used in unforked mode on Windows, it locks up the files present in the classpath of the <javac> task, and does not release them. The side effect of this is that you will not be able to delete or move those files later on in the build. The workaround is to fork when invoking the compiler.
Dennis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help: Modern compiler is not available.
 
Similar Threads
Problem running ant script chapter 1 of ejb 3 in action with weblogic 10
echo classpath in build
Error while executing build.xml
package javax.ejb does not exist
Classic Compiler error while running ant.