This version of java does not support the classic compiler; upgrading to modern

Posted on 2006-05-21
Medium Priority
Last Modified: 2008-02-20
This version of java does not support the classic compiler; upgrading to modern?

I  am getting the above error. Please let me know how to slove it.

I am tring to compile an existing java code using
ant "Apache Ant version 1.6.5"
JDK i am using is "jdk142_05"
Weblogic 8.1 sp4.

Please tell me how to slove this problem


Question by:ereaditechnologies
LVL 86

Accepted Solution

CEHJ earned 252 total points
ID: 16732010
Try searching the Ant build file for 'classic' and removing it
LVL 12

Expert Comment

ID: 16732154
What do you see using
ant -verbose
LVL 92

Assisted Solution

objects earned 248 total points
ID: 16732790
in your ant script set the ant build property 'build.compiler' to modern
and/or set the compiler property in the javac task to modern

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question