> Not sure if my post posted or not but I'll restate it again.
>
[quoted text clipped - 3 lines]
> used to compile the project). What and how would I be able to compile
> using 1.5 on the updated computer?
>> Not sure if my post posted or not but I'll restate it again.
>>
[quoted text clipped - 10 lines]
> Tell the project to use Java 5 by setting the project properties'
> - "Sources" : "Source / _B_inary Format" to Java 5.
In Netbeans 5 this was Sources, Source Level.
> - Libraries : "_J_ava Platform" to Java 5.
> (I'm not 100% sure this step is necessary, but it sure makes certain of things.)
>
> NetBeans itself can continue to run on Java 6.
It may not be necessary to install a Java 5 platform. I have successfully built
applications/jars, using just the Java 6 platform, which run perfectly well in
a 1.5 JRE. I have also built some jars with the Libraries setting still on 1.6,
but with the Source Level set to 1.5 and these have caused me no problems.
Either NetBeans does the "right thing", or I've just been lucky so far...

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Lew - 11 Dec 2007 15:22 GMT
Justin wrote:
>>> Compiling the program using Java 1.5 did the trick. However, I am
>>> unsure what settings to change in Netbeans to compile using 1.5 (I
>>> have an old laptop that hasn't been updated in 6-12 months which I
>>> used to compile the project). What and how would I be able to compile
>>> using 1.5 on the updated computer?
> It may not be necessary to install a Java 5 platform. I have successfully built
> applications/jars, using just the Java 6 platform, which run perfectly well in
> a 1.5 JRE. I have also built some jars with the Libraries setting still on 1.6,
> but with the Source Level set to 1.5 and these have caused me no problems.
>
> Either NetBeans does the "right thing", or I've just been lucky so far...
I believe that Java 5 and 6 use the same class file format, don't they? Not
sure. The language itself didn't change between, either. The only danger I
see would be using API calls that didn't exist in Java 5.

Signature
Lew
Andrew Thompson - 11 Dec 2007 15:43 GMT
...
>I believe that Java 5 and 6 use the same class file format, don't they? Not
>sure. The language itself didn't change between, either. The only danger I
>see would be using API calls that didn't exist in Java 5.
Using methods (or attributes) of later versions internally
in the binary produced, was the actual reason I 1st heard,
that convinced me to use -bootclasspath for *ensuring*
compatibility with earlier runtime versions.
Anything else that works, is simply good luck (though
perhaps not 'buy a lottery ticket' good luck - the possibilities
of such mishaps are few and far between..).

Signature
Andrew Thompson
http://www.physci.org/