Netbeans & J2SDK 1.4.2 compiling problem

I've just downloaded the Netbeans & J2SDK 1.4.2 bundle and when i go to compile my programs i get this dumb console compiling error:

javac: invalid target release: 1.6

Usage: javac <options> <source files>

where possible options include:

-gGenerate all debugging info

-g:noneGenerate no debugging info

-g:{lines,vars,source}Generate only some debugging info

-nowarnGenerate no warnings

-verboseOutput messages about what the compiler is doing

-deprecation Output source locations where deprecated APIs are used

-classpath <path> Specify where to find user class files

-sourcepath <path>Specify where to find input source files

-bootclasspath <path>Override location of bootstrap class files

-extdirs <dirs>Override location of installed extensions

-d <directory>Specify where to place generated class files

-encoding <encoding>Specify character encoding used by source files

-source <release> Provide source compatibility with specified release

-target <release> Generate class files for specific VM version

-help Print a synopsis of standard options

BUILD FAILED (total time: 0 seconds)

Anyone got any ideas or solutions?

Thanks in advance

[1339 byte] By [Cascadea] at [2007-11-27 4:27:36]
# 1

The best guess I can give you is that Netbeans instructs the 1.4.2 java compiler to generate 1.6 bytecode, which obviously it cannot. How that has come about, I can't tell when you say you've downloaded them as a bundle.

I'm no Netbeans guru, and I'm afraid there are several places in Netbeans to look for a setting that would cause this. The one I can find at the moment is in the project properties, under build and compiling, there's a field for Additional Compiler Options. If that field has -target 1.6 in it, delete it. I'm looking in Netbeans version 5.5.

OleVVa at 2007-7-12 9:36:16 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi thanks...i've found the problem

If you go to project propeties, click on source and select the appropiate source level. i found that by default it is set to 1.6 when its 1.4 that came with the bundle 8-(

all done and sorted now...

thanks for you help mate 8-D

Message was edited by:

Cascade

Cascadea at 2007-7-12 9:36:16 > top of Java-index,Java Essentials,Java Programming...