You are unable to switch between platforms because there is probably only one set in the IDE settings.
The @Diegofelipe suggested a way to resolve, but in addition it is possible to include and/or remove platforms directly from the IDE. In the top menu there is the option Tools, inside there’s another call Java platforms:
Accessing this option will be possible to manage existing platforms.
To add a new one just click on Add Platform... and select the directory (local or remote) where the JDK is located.
After that you’ll be able to switch between platforms by accessing the properties of any Java project.
In Maven projects, to change the JDK, right-click on the project name and on the tab Compile options for existing platforms - and the button Manage Java Platforms... that will take you to the same window that I explained above.
If you still need to change the format of the source code, access the project properties and in the tab Source code, change the source code format to 1.8 if you are writing in Java8:
Thanks for the attention! Even in a web Maven project? I think I’ve done it !! And it hasn’t changed at all!!
– Pena Pintada
I’ve already made the change through etc netbeans.conf !! In this example of yours it’s easy to switch from IDE without problems, try doing the same with a Maven web project!
– Pena Pintada
For platform change with java if there is no error this is the way you taught, but I want platform change for a web project Maven !!
– Pena Pintada
I’ve edited once more, if not this... I can’t imagine what your question is.
– Renan Gomes
That’s right, thanks for the patience man!! Just one more thing when I click on the project with the right click not leaving the option to compile, you have the option Set Configuration and then Customize and only then there is Compile tab .
– Pena Pintada
That’s right, thanks for the patience man!! Just one more thing when I click on the project with the right click not leaving the option to compile, you have the option Set Configuration and then Customize and only then there is Compile tab .
– Pena Pintada
Don’t worry anymore !! It’s all worked out well friend!! Your answer helped a lot!! A hug!! The fight for everything!
– Pena Pintada