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:ListSubjectsAuthorsBodies (mustpickalistfirst) Topic Forum Directory > Rational > Forum: Development Tools (RAD, RSA, RDA, RSM, RWD) > Topic: Ant build does not work in WSAD 5.1 1 reply Latest Post - 2003-09-02T04:25:41Z by 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. Eclipse can sometimes do this for you but it doesn't do a great job, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=50452 . “„ Larry L (2) Offline Feb 4, 2004 @ 3:13 PM #3 Re: Modern this contact form
Messenger. 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... If you're starting Ant some other way, such as java -Dant.home=c:\ant org.apache.tools.ant.Main [options] [target] then, you're not invoking the launcher and need to have tools.jar in your CLASSPATH manually. 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?
Easy fix is move that noise > to the end of your path. > > ------------------------------------------------------------ -------------- -- > ----------- > > compile: > > [javac] Compiling 2045 source files to Regards. Any other uses are prohibited. javac Modern compiler not found - looking for classic compiler Cannot use classic compiler, as it is not available.
Updated on 2003-09-02T04:25:41Z at 2003-09-02T04:25:41Z by SystemAdmin SystemAdmin 110000D4XK 14225 Posts Re: Ant build does not work in WSAD 5.1 2003-09-02T04:25:41Z This is the accepted answer. I actually had tools.jar in mypath previously, but it was blown away by another installthat was done on my machine.I also read a comment that putting tools.jar in thejre/lib/ext directory will 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 I can use the same build.xml and the same version > of ant on my PC and it works fine.
All Rights Reserved. Yours, still baffled Joe -------------------------------- ant Searching for build.xml ... I'm as puzzled as you are. HTH, Gary > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of McNeal, John > Sent: Friday, August 22, 2003 8:37 AM > To: '[email protected]' > Subject: Modern compiler not
I decided to delete the 1.3.1 JRE. At that point I realized my PATH environment variable had the Microsoft directories ahead of the java distribution directories. http://im.yahoo.com Adam Murdoch at Dec 1, 2000 at 1:54 am ⇧ Hi,A mismatched JVM and tools.jar can cause the problem you're seeing.Check that your PATH is set up so that you're 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.
Is there somewhere that the mailing list archive can be searched? We would like to have the > same implementation for our Java code, but setting it up > right in the IFS to preserve the package directory tree seems > to Full details are available here. Oracle's installer uses Stone Age JDKs.
HTH Darins "Rod Macpherson"
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'). 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] Ant file does not work in WSAD 5.1 with the following error. http://sonoportal.net/cannot-use/cannot-use-parentheses-when-calling-a-sub-asp-classic.html 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
Thanks again. 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
A common solution is to set the environment variable JAVA_HOME to your jdk directory. 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 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. The one in Sun's jdk118_v1 uses JAVA_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.
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 Please try this and let us know. I have set the *SYS level JAVA_HOME > environment variable to /QIBM/ProdData/Java400/jdk13/. I have the 1.4.2 SDK installed on my system but I also have the 1.3.1 JRE installed (I needed it for a visualization tool I was evaluating).
com> Date: 2000-11-30 18:50:26 [Download message RAW] Are you sure you've set the JAVA_HOME environment variable? You should set it to /usr/java (assuming that you'vegot the tree /usr/java/jre.....). Also, if you're using the PDE to run Ant, PDE has its own source/class version settings in the preferences. 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
I reviewed my jar settings system wide and then made sure I was completely up to date with a better understanding of the classpath etc. Hopefully this will assist the real engineers in diagnosing why there are problems with the various ant/xindice builds. Back to the top Grokbase › Groups › Ant › user › November 2000 FAQ Badges Users Groups [Ant-user] Cannot use classic compiler, as it is not available Joe FaithNov 30, Unanswered question This question has not been answered yet.
Messenger.http://im.yahoo.com reply | permalink Matthew Geis Are you sure you've set the JAVA_HOME environment variable? 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 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'). The first two Google links returned for a search Matthew Sinclair at Dec 21, 2000 at 12:51 am ⇧ I have a vague feeling that this is a stupid question, andfor
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) Use this Solofnen 2. 2001-04-14 Cannot use classic compiler, as it is not available ant-user Michael Stanley 3. 2000-12-21 RE: Cannot use classic compiler, as it is not availab ant-user Matthew Sinclair 4. 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. Realizing this work is unfunded :-), it would be nice if when some of the common files were updated as binary distributions, the supported projects would be re-zipped with the most
© Copyright 2017 sonoportal.net. All rights reserved.