I'm not talking about compiling but about running. If you have a Java class file compiled with 1.5 you can run it with 1.4 (AFAIK, at least).
Bye Paolo Rizzi > -----Messaggio originale----- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] conto di > Andreas Schmitz > Inviato: martedì 25 settembre 2007 11.58 > A: List for discussion of JPP development and use. > Oggetto: Re: [JPP-Devel] R: Checking Java version? > > > P.Rizzi Ag.Mobilità Ambiente wrote: > > Hello, > > > > In the JUMP launcher we can look at the SystemProperty > > > java.specification.version to make sure it is >= 1.5 if not > > > we display a > > > window that says you must have version 1.5 or greater and > > > maybe provide > > > a clickable link to the Java site. Unfortunately if we > compile that > > > class with 1.5 they won't even get that far. > > A Java class file compiled with 1.5 should run with 1.4. > > All new construct of 1.5 are, AFAIK, only sintactic sugar. > > That's unfortunately not true: > > [EMAIL PROTECTED]:/tmp$ javac -target 1.4 -source 1.5 > javac: source release 1.5 requires target release 1.5 > > Best regards, Andreas > -- > l a t / l o n GmbH > Aennchenstrasse 19 53177 Bonn, Germany > phone ++49 +228 18496-11 fax ++49 +228 1849629 > http://www.lat-lon.de http://www.deegree.org > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel