dimis283
dimis283

Reputation: 222

netbeans project and ant script

I am trying to built a java web application at netbeans (using ant) but there is the error error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later. BUILD FAILED (total time: 23 seconds) I thing I have to change a 6 to 7 at built.xml but I can not find the solution,what is wrong?

Upvotes: 0

Views: 884

Answers (1)

user330315
user330315

Reputation:

You don't need to edit the IDE generated Ant script. You need to change that in the project properties.

Right click on your project (in the "Projects" window) and select Properties

In the "Sources" section you need to select JDK 7 in the drop down at the bottom:

enter image description here

You should also use a JDK 7 to run and test your application. You can change that in the "Libraries" section of the project (after registering the JDK 7 through Tools -> Java Platforms)

Upvotes: 2

Related Questions