javac: invalid target ? help me pls?

hi.

first time, i have not encounter any problem about my ide ( netbeans 5.5 ) . but this time i need to build my old project i encounter a problem :

it is :

============

javac: invalid target release: 1.6

Usage: javac <options> <source files>

where possible options include:

-g Generate 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

-deprecationOutput source locations where deprecated APIs are used

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

-cp <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

-endorseddirs <dirs>Override location of endorsed standards path

-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

-versionVersion information

-help Print a synopsis of standard options

-X Print a synopsis of nonstandard options

-J<flag>Pass <flag> directly to the runtime system

BUILD FAILED (total time: 0 seconds)

==================

what can i do? please help me .. thanx

[1706 byte] By [futia] at [2007-11-27 6:37:21]
# 1
Whatever you are running was made on another netbeans ide which had set the platform for running the project to be jdk 1.6. You probably have a jdk 1.5 or lower. Go to the project properties then runtime and modify appropriately.
Jamwaa at 2007-7-12 18:05:42 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi!

I have the similar issue with the project configured for java 1.4. I fixed it by setting java version to 1.3, closing project properties window, opening it again and setting back to 1.4. We still do not know how it happens but it is caused by reinstalling some revision of our product and creating a new project to debug it. You can also say -target 1.5 in javac options window. Let me know, please, if you figure out anything.

Boris

bshukhata at 2007-7-12 18:05:42 > top of Java-index,Java Essentials,Java Programming...
# 3

Go to the project properties. ( right lick => properties )

then select "sources" on left side & now on the right pane BOTTOM you'll see something like "source level" with a drop down menu.

Select the version you're using right now from the drop down menu.

Hope this will help.

Cheers :)

AlienX

p.s - U can find the java version you're running by entering "javac -version" in the cmd prompt.

AlienXa at 2007-7-12 18:05:42 > top of Java-index,Java Essentials,Java Programming...
# 4

> Go to the project properties. ( right lick =>

> properties )

>

> then select "sources" on left side & now on the right

> pane BOTTOM you'll see something like "source level"

> with a drop down menu.

>

> Select the version you're using right now from the

> drop down menu.

>

> Hope this will help.

>

> Cheers :)

> AlienX

>

> p.s - U can find the java version you're running by

> entering "javac -version" in the cmd prompt.

This is the problem I have. Souce level in Project's properties is 1.4, error says about 1.6. If I override it as a compiler option it works. If I reset it as I have described previously it works.

Boris

bshukhata at 2007-7-12 18:05:42 > top of Java-index,Java Essentials,Java Programming...