Re: Java 6 Mac
Ouabaine wrote:
Hello,
Does anyone know if Java 6 is available on the Mac (even as a beta) ?
Could you give me a link?
I don't believe so at the moment.
Other question :
My Netbeans project is compiled for Java 6. Is there a way to compile for
Java 5? I do not use any fancy stuff so I see no reason why it woudl not
work under Java 5. Is there a setting in the IDE somewhere? Do I have tio
download the Java 5 SDK?
There are several ways depending on what your desired goal is. If you want the
IDE to continue to be a "1.6" IDE, and just build one project for 1.5 then you
can set the properties for that project. In the project's Properties dialog, on
the Sources page, there is a Source Level JList at the bottom. Select 1.5. 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.
Alternatively, if you have both the 1.6 and 1.5 JDKs installed on your
development platform you can add a 1.5 platform to the IDE. Select Tools->Java
Platform Manager, and then the "Add Platform..." button. Point the file
selector at the root of the 1.5 JDK installation. Now you can set the platform
to use for each project, again in the project Properties dialog. This time,
however, it's in the Libraries page. At the top of the page the Java Platform
JList should now contain the 1.5 JDK. Select that. Your project should now be
built using the 1.5 JDK.
The above assumes that your project is a standard project, not a free-form
project. A free-form project has a custom build.xml, and you must manage the
compiler platform from that manually.
--
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