Regarding the Ant issue:

Ant issues the first message when it can't load
(the modern compiler).  This class is located in
/QIBM/ProdData/Java400/jdk13/lib/tools.jar which is apparently not in your
CLASSPATH or BOOTCLASSPATH while you're running Ant.  If you add it into
your CLASSPATH, Ant should work okay.

The second message comes because Ant tries to fallback to the classic
compiler.  To verify its availability, Ant tries to load  Unfortunately, this is also in tools.jar so you have
the same problem as above.

How are you starting Ant?  Are you using  This is what is invoked on your PC
via ant.bat and it is this class that automatically adds tools.jar into your
classpath.  If you're starting Ant some other way, such as 

  java -Dant.home=c:\ant [options] [target]

then, you're not invoking the launcher and need to have tools.jar in your
CLASSPATH manually.

Please try this and let us know.


> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx 
> [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of McNeal, John
> Sent: Friday, August 22, 2003 8:37 AM
> To: 'java400-l@xxxxxxxxxxxx'
> Subject: Modern compiler not found - looking for classic 
> compiler error when using ant on the as/400
> Has anyone had this problem when using ant on the As/400 to 
> build their java applications ?  I keep running into this 
> problem.  Were are using the 1.3.1 version of the JDK.  
> Running V5R1.  I have set the *SYS level JAVA_HOME 
> environment variable to /QIBM/ProdData/Java400/jdk13/.  I still get 
>     [javac] Modern compiler not found - looking for classic compiler 
> Cannot use classic compiler, as it is not available. A common 
> solution is to set the environment variable JAVA_HOME to your 
> jdk directory.
>         Does anyone have any ideas as to what is causing this 
> and why ?  I can use the same build.xml and the same version 
> of ant on my PC and it works fine.  Using ant version 
> apache-ant-1.5.3-1.  Any ideas  ?  
>             Also,  have any of you guys used turnover for 
> source control of java objects in the IFS ?  We use WSDc 5.0 
> to develop our project. Currently we are using Sourcesafe for 
> source control,  but it has no methods for distribution.  In 
> our normal RPG development,  we use turnover for source 
> control as well as distribution.  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 be difficult.  
>       John McNeal 

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].