Home > Cannot Use > Cannot Use Classic Compiler As It Is Not Available Ant

Cannot Use Classic Compiler As It Is Not Available Ant

The one in Sun's jdk118_v1 usesJAVA_HOME if it is set,and consequently fails if used from an "exec" in ant under jdk1.2.(I modified .java_wrapper to solve the problem.)Doug.--------------------------------------------------------------------Douglas Guptill [email protected] Assurance Specialist Another possibility is that if you have set it, you've only set it as a shell variable, rather than an actual environment variable (the difference between 'set' and 'setenv'). Thanks again. 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: http://optimisersonpc.com/cannot-use/cannot-use-classic-compiler.html

I've been using Ant on manyprojects for a long time and all of a sudden I get this error from one ofmy builds. See if tools.jar is there and no typo occurred. Mail about any other subject will be silently ignored. We currently do not have nightly builds including the optional tasks. see here

Total time: 1 second ant 1.5 attempt (I copied ant.jar from c:\ant\lib into the XINDICE_HOME\java\lib and deleted ant-1.4.1.jar for the attempt). Post Reply Bookmark Topic Watch Topic New Topic Similar Threads Classic Compiler error while running ant. Cannot use classic compiler, as it is not available "Cannot use classic compiler, as it is not available" problem Cant compile Please help - "Cannot use classic compiler" Ant compile Recall: Talk to your friends online with Yahoo!

  • anyone?
  • Thank You, Comment 1 Steve Loughran 2002-06-17 20:23:40 UTC we had this conversation before.
  • Messenger.
  • java.vendor.url : http://java.sun.com/ path.separator : ; java.vm.name : Java HotSpot(TM) Client VM file.encoding.pkg : sun.io user.country : US sun.os.patch.level : Service Pack 2 java.vm.specification.name : Java Virtual Machine Specification user.dir :
  • The workaround is to fork when invoking the compiler.
  • HTH Darins "Rod Macpherson" wrote in message news:bpb4hr$qar$1@eclipse.org... > > > The reason for this error is that the ANT launced in Eclipse uses the JDK on > the path
  • package javax.ejb does not exist Problem running ant script chapter 1 of ejb 3 in action with weblogic 10 Error while executing build.xml All times are in JavaRanch time: GMT-6 in
  • javac Modern compiler not found - looking for classic compiler Cannot use classic compiler, as it is not available.
  • [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

That will depend on the task in question and the nature of your problem. A preventative measure might be to uninstall all JRE's you have on your machine except the one you're using. Thanks for any help Tony Don Stadler Ranch Hand Posts: 451 posted 12 years ago Poolman may be expecting the jsdk 1.4. Dennis Post Reply Bookmark Topic Watch Topic New Topic Similar Threads echo classpath in build Classic Compiler error while running ant.

Apache Ant, Apache Ivy, Apache EasyAnt, Ant, Ivy, EasyAnt, Apache, the Apache feather logo, and the Apache Ant project logos are trademarks of The Apache Software Foundation. Comment 6 Stefan Bodewig 2002-07-05 09:13:27 UTC *** Bug 10376 has been marked as a duplicate of this bug. *** Comment 7 Martin Gainty 2002-07-05 19:51:45 UTC Accordint to Stephan discovered Andy Bowes
SCJP, SCWCD
I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams Brad Baker Greenhorn Posts: 15 posted 13 years https://coderanch.com/t/107072/Modern-compiler Try running Ant with the verbose flag: ant -verbose or ant -v This will produce output that starts like the following: Ant version 1.4.1 compiled on October 11 2001 Buildfile: build.xml

Hope this helps. “„ Larry L (2) Offline Feb 6, 2004 @ 8:31 AM #5 Re: Modern compiler not found Your pointing to the issue of multiple JREs seems to be Solofnenko at Apr 15, 2001 at 3:49 am ⇧ Maybe you use JRE instead of JDK? 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. reply | permalink Related Discussions Cannot use classic compiler Error: Cannot use classic compiler jdk 1.4 classic Cannot user classic compiler... "Cannot use classic compiler, as it is not available" problem

To set it up permanently do the following: In Window -> Preferences -> External tools -> Ant you have to add the jar file: C:/Program files/ibm/WebSphere Studio/runtimes/base_v5/java/lib/tools.jar Alternatively every time you http://grokbase.com/t/ant/user/014ega7j86/cannot-use-classic-compiler-as-it-is-not-available That is to say Eclipse isn't using javac from the PATH but the Ant it launches most definitely is. Brad Baker Greenhorn Posts: 15 posted 13 years ago I don't undstand why I am geting this: [javac] Modern compiler is not available - using classic compiler Here is my build.xml 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 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. A common solution is to set the environment variable JAVA_HOME to your jdk directory. Thanks a bunch. The issue does seem to be ant related.

I also read a comment that putting tools.jar in the jre/lib/ext directory will work as well, but I haven't tried that technique as yet. Repeating my original questions from my 1st reply: Can you please confirm the following: JAVA_HOME is set? %JAVA_HOME%\lib\tools.jar exists? %JAVA_HOME%\bin\javac.exe exists? 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. Skip to main content Download Getting Started Members Projects Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute Working Groups Automotive

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 yes Please provide some more details: Value of %JAVA_HOME% c:\j2sdk Version of Ant, running on system 1.4.1 (does not seem to work for XINDICE) 1.5.3-1 (seems to work fine in a Basically, it's the install dir for the jdk, not for the jre (which is what many other programs expect when they see JAVA_HOME) Matt -----Original Message----- From: Joe Faith Matthew Geis

After installing something like the Oracle client you will have a zoo of JDKs and JREs in the front of your path and your ANT build is no longer going to

JustInTime Compiler Version 4.00.005(x) for JDK 1.2 Copyright (C) 2000 WebGain, Inc. The ant script doesn't use $JAVA_HOME to decide which 'java' to use to launch ant, it uses $PATH instead. __________________________________________________ Do You Yahoo!? Page generated in 0.03045 seconds .:: Contact :: Home ::. Is there somewhere that the mailing list archive can be searched?

Does "jar tf /home/java/jdk1.2.2/lib/tools.jar" show sun.tools.javac.Main? D:\GameServe\build.xml:43: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory. Put the following right in front of your javac task: This will give you the CLASSPATH Ant has been invoked with. What have I missed?

file.separator : \ java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding : UnicodeLittle sun.cpu.endian : little sun.cpu.isalist : pentium i486 i386 ant 1.4 attempt: Xindice Build System -------------------- Building with classpath c:\j2sdk\lib\tools.jar;.\java\lib\ant-1.4.1.jar;.\java\lib\examples.jar;.\ja va\lib\infozone-tools.jar;.\java\lib\openorb-1.2.0.jar;.\java\lib\openorb_to ols-1.2.0.jar;.\java\lib\xalan-2.0.1.jar;.\java\lib\xerces-1.4.3.jar;.\java\ lib\xindice.jar;.\java\lib\xml-apis-1.0.jar;.\java\lib\xmldb-sdk.jar;.\java\ C:\poolman-2.0.3\build>echo %JAVA_HOME% C:\jdk1.3 Why is ant throwing up this message. 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. I actually had tools.jar in my path previously, but it was blown away by another install that was done on my machine.

You should set it to /usr/java (assuming that you'vegot the tree /usr/java/jre.....). Download it at http://xml.apache.org/commons/ ------------------------------------------- System properties ------------------------------------------- java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path : c:\j2sdk\jre\bin java.vm.version : 1.4.1_02-b06 java.vm.vendor : Sun Microsystems Inc. The error msg pointed to a javaw.exe in C:WINNTsystem32. Don Stadler Ranch Hand Posts: 451 posted 12 years ago 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

This page details some steps you can take to try and resolve any problems you may be having with Apache Ant. The target from your build file. -- Jesse Stockall --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Mime Unnamed text/plain (inline, None, 9992 bytes) View raw message The side effect of this is that you will not be able to delete or move those files later on in the build. The next step, therefore, would be to download the sources of ant, see svn.

If you have problems with the manual itself, you can submit a documentation bug report (see below) to help us improve the Ant documentation. You should set it to /usr/java (assuming that you've got the tree /usr/java/jre.....). Show: 10 25 50 100 items per page Previous Next Feed for this topic

Back to Top