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

Posted on 2006-05-21
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

    Try searching the Ant build file for 'classic' and removing it
    LVL 12

    Expert Comment

    What do you see using
    ant -verbose
    LVL 92

    Assisted Solution

    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

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    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.

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now