Forget this I found rt.jar... my error now is 

    [javac] /home/echlinja/TestClasses/java/Test1.java:18: cannot access 
java.lang.Object
    [javac] bad class file: 
/sbcimp/run/tp/sun/jdk/v1.4.0/jre/lib/rt.jar(java/lang/Object.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the 
classpath.
    [javac]     public static void main(String[] args)
    [javac]                                 ^
    [javac] 1 error

which suggests it's got the 1.4 tools and rt but is not starting the 1.4 compiler...

ta, jamie

> -----Original Message-----
> From: Echlin, Jamie 
> Sent: 26 April 2002 11:01
> To: [EMAIL PROTECTED]
> Subject: RE: setting a specific compiler
> 
> 
> > 
> > What is not working?  What happens?
> 
> Sorry, hadn't really finished that mail before I sent it. It 
> appeared to me that it was still being compiled under the 1.3 
> compiler as it was not failing where I though it should be - 
> however my test case was flawed.
> 
> The problem I'm now getting is
>  [javac] Fatal Error: Unable to locate package java.lang in 
> classpath or bootclasspath
> 
> java.lang seems to be in src.zip which I put on the boot cp 
> as follows, but still same error..
> 
> <target name="compileAlternateJDK" depends="init" 
> if="javac.AlternateJDK">
>     <!-- Compile the java code from ${src} into ${build} -->
>     <javac 
>       srcdir="${src.dir.java}" 
>       destdir="${dest.dir.javaclasses}" 
>       debug="true" 
>       deprecation="false" 
>       failonerror="${javac.failOnError}"
>       includeJavaRuntime="false"
>       includeAntRuntime="false"
>       fork="no"
>      >
>       <bootclasspath>
>         <pathelement path="${javac.AlternateJDK}/lib/tools.jar"/>
>         <pathelement path="${javac.AlternateJDK}/src.zip"/>
>       </bootclasspath>
>  
>        <classpath refid="classpath"/>
>     </javac>
>   </target>
> 
> cheers, jmaie
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to