How do I upgrade an existing NetBeans Java EE 6 Web project to Java EE 7?
java, java-ee-6, java-ee-7, netbeans-7
Solution
I just had to do the same thing, I had an Java EE 6 Application and wanted to go to Java EE 7.
I just made a new project in Netbeans, then I selected Java Web in Categories and then Web Application with existing sources. Then Netbeans will present you a wizard, where you choose your EE6 project. After that you also can set an other Java EE Version.
Problem
The project uses JavaServer Faces and JPA. NetBeans 7.3.1 IDE does not allow to change the Java EE version. I already found this question: How do I upgrade an existing enterprise project from Java EE5 to Java EE 6 in Netbeans (6.9) tries to apply the changes as described. I have updated project.properties. ``` endorsed.classpath=\ ${libs.javaee-endorsed-api-7.0.classpath} ``` ... ``` j2ee.platform=1.7-web ``` ... ``` javac.source=1.7 javac.target=1.7 ```