Home > Cannot Use > Cannot Use Classic Compiler

Cannot Use Classic Compiler

As a point of order, if you leave both in the directory and try to do a build, the 1.4.1 version is used. Since it's not, that product you evaluated clobbered your 1.4 install and it might cause other problems later (not just in Eclipse). “„ Reply to this topic © 2016 Manning Publications awt.toolkit : sun.awt.windows.WToolkit java.vm.info : mixed mode java.version : 1.4.1_02 java.ext.dirs : c:\j2sdk\jre\lib\ext sun.boot.class.path : c:\j2sdk\jre\lib\rt.jar;c:\j2sdk\jre\lib\i18n.jar;c:\j2sdk\jre\lib\sunrsasig n.jar;c:\j2sdk\jre\lib\jsse.jar;c:\j2sdk\jre\lib\jce.jar;c:\j2sdk\jre\lib\ch arsets.jar;c:\j2sdk\jre\classes java.vendor : Sun Microsystems Inc. Report message to a moderator Re: ANT Compile Error in Eclipse: Modern compiler not found [message #117794 is a reply to message #117783] Mon, 17 November 2003 20:58 weblink

I have set the *SYS level JAVA_HOME > environment variable to /QIBM/ProdData/Java400/jdk13/. Could you tell which version of Ant you use and what is in your classpath. (Try Ant -version then you get the version an compile date of your Ant) >Is there That is to say Eclipse isn't using javac from the PATH but the Ant it launches most definitely is. Talk to your friends online with Yahoo! https://coderanch.com/t/107581/tools/error-classic-compiler

The error msg pointed to a javaw.exe in C:WINNTsystem32. Classic is 1.1 and 1.2. To verify its availability, Ant tries to load sun.tools.javac.Main. Regards.

  • Log in to reply.
  • If you add it into your CLASSPATH, Ant should work okay.
  • For Ant, modern compiler is anything 1.3 and above, so it should work.
  • Stefan Stefan Bodewig at Nov 30, 2000 at 3:54 pm ⇧ Joe Faith wrote:I keep getting the error messageCannot use classic compiler, as it is not availablewhen trying to compile Java
  • Also, if you're using the PDE to run Ant, PDE has its own source/class version settings in the preferences.
  • I added the tools.jar for Java SDK 1.4.2 to Ant's classpath via the Window->Preferences menu.
  • That is to say Eclipse isn't using javac from the PATH but the > Ant it launches most definitely is.
  • I have ensured my classpath includes > %JAVA_HOME%/lib/tools.jar as well.... > Your classpath should not have %JAVA_HOME%/lib/tools.jar, in fact your classpath is best left empty.
  • Your buildfile may causes changes in the behavior that is beyond Eclipse's control...but I have not seen your buildfile.
  • At that point I realized my PATH environment variable had the Microsoft directories ahead of the java distribution directories.

ibm ! Messenger. 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 . Use this link http://marc.theaimsgroup.com/?l=ant-user&r=1&w=2 Yours Stefan S [prev in list] [next in list] [prev in thread] [next in thread] Configure | About | News | Addalist | SponsoredbyKoreLogic Search:[]List[]Subjects[]Authors[]Bodies (mustpickalistfirst)

Post Reply Bookmark Topic Watch Topic New Topic programming forums Java Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Ant, Maven I am using Eclipse 2.1.2. Ant file does not work in WSAD 5.1 with the following error. http://grokbase.com/t/ant/user/00by19415b/cannot-use-classic-compiler-as-it-is-not-available Total time: 1 second ____________________________________________ Report message to a moderator Re: ANT Compile Error in Eclipse: Modern compiler not found [message #117747 is a reply to message #117724]

A common solution is to > set the environment variable JAVA_HOME to your jdk directory. > > Total time: 1 second > > ____________________________________________ > > Report message to a moderator Perhaps JAVA_HOME does not point to the JDK Total time: 1 second -----Original Message----- From: Jesse Stockall [mailto:[email protected]] Sent: Monday, May 05, 2003 5:10 PM To: Ant Users List Subject: RE: The second message comes because Ant tries to fallback to the classic compiler. The best solution in my opinion is to start Eclipse using the -vm arg to point to a specific JDK install.

Check that your PATH is set up so that you're picking up the 'java' command (not javac) from the same JDK that you're getting tools.jar from. http://marc.info/?l=ant-user&m=97738282223257 As a result however, Eclipse no longer started. A common solution is to set the environment variable JAVA_HOME to your jdk directory. Thanks for any help Tony Don Stadler Ranch Hand Posts: 451 posted 12 years ago Poolman may be expecting the jsdk 1.4.

All Rights Reserved. [email protected] Matthew Sinclair at Dec 21, 2000 at 10:08 pm ⇧ Stefan,Ok one reason of this problem could be thattools.jar is missing in the classpath ...Almost as soon as I sent Did anybody have the same before? See iftools.jar is there and no typo occurred.The easiest way to ensure that Ant will pick up tools.jar is settingJAVA_HOME correctly and invoke Ant via its ant shell script BTW, noneed

The external Ant build works fine and building with Eclipse itself works fine. I haven't seen this error before but since it says "class version error", it could mean that you're trying to run a jar file from one JRE version (say, 1.4.2) using Anotherpossibility is that if you have set it, you've only set it as a shellvariable, rather than an actual environment variable (the difference between'set' and 'setenv'). You should set it to /usr/java (assuming that you've got the tree /usr/java/jre.....).

Please provide some more details: Value of %JAVA_HOME% Version of Ant, Value of %ANT_HOME% if you are running Ant 1.5.1 or greater, the output from 'ant -diagnostics' would be useful as I suspect it would do that even if you give Eclipse a JDK with the -vm switch -- have not tried that. Even though I defined JAVA_HOME-C:jdk1.3.1_09 and PATH C:jdk1.3.1_09in Can you help me ?

Buildfile: build.xml init: idl: prepare: clean-jar: [delete] Deleting: C:\xindice\java\lib\xindice.jar [delete] Unable to delete file C:\xindice\java\lib\xindice.jar src: [echo] Compiling Source [javac] Compiling 324 source files to C:\xindice\java\classes BUILD FAILED file:c:/xindice/build.xml:123: Unable to

Xindice Build System -------------------- Building with classpath c:\j2sdk\lib\tools.jar;.\java\lib\ant.jar;.\java\lib\examples.jar;.\java\lib \infozone-tools.jar;.\java\lib\openorb-1.2.0.jar;.\java\lib\openorb_tools-1. 2.0.jar;.\java\lib\xalan-2.0.1.jar;.\java\lib\xerces-1.4.3.jar;.\java\lib\xi ndice.jar;.\java\lib\xml-apis-1.0.jar;.\java\lib\xmldb-sdk.jar;.\java\lib\xm ldb-xupdate.jar;.\java\lib\xmldb.jar Starting Ant... The external Ant build works fine and building with Eclipse itself > works fine. I decided to delete the 1.3.1 JRE. Is there somewhere that the mailing list archive can be searched?

This is what is invoked on your PC via ant.bat and it is this class that automatically adds tools.jar into your classpath. The conclusion is that the Ant Eclipse is using gets its javac from the PATH. Post Reply Bookmark Topic Watch Topic New Topic Similar Threads Classic Compiler error while running ant. We use WSDc 5.0 > to develop our project.

Page generated in 0.03877 seconds .:: Contact :: Home ::. The antscript doesn't use $JAVA_HOME to decide which 'java' to use to launch ant,it uses $PATH instead.-----Original Message-----From: faith [mailto:faith]On Behalf Of Joe FaithSent: Friday, 1 December 2000 3:11 AMTo: [email protected]: Does "jar tf /home/java/jdk1.2.2/lib/tools.jar" show sun.tools.javac.Main? Buildfile: build.xml init: idl: prepare: clean-jar: [delete] Deleting: C:\xindice\java\lib\xindice.jar [delete] Unable to delete file C:\xindice\java\lib\xindice.jar src: [echo] Compiling Source [javac] Modern compiler is not available - using classic compiler [javac] Compiling

The issue does seem to be ant related. Thanks for the help. “„ burnette (33) Offline Feb 6, 2004 @ 8:41 PM #6 Re: Modern compiler not found Great, I'd recommend though that you reinstall the latest JDK since C:\poolman-2.0.3\build>echo %JAVA_HOME% C:\jdk1.3 Why is ant throwing up this message. Using ant version > apache-ant-1.5.3-1.

If you have questions about this, please contact yes %JAVA_HOME%\bin\javac.exe exists?

Back to Top