Reputation: 13499
I am used to Eclipse, in that when I save a file, it automatically generates the class file, so that when I run my application the change is already there.
Netbeans seems to be different unfortunately. Everytime I do a little change (and want to see that change), I have to go up to Run-->Clean And Build Project, then find my Java file and select 'Run File'.
Is there any way in Netbeans to speed up this process?
Upvotes: 1
Views: 4840
Reputation: 176
I would just like to mention in case it helps anyone, that for my "Maven Web Application" project, every time I checked "Compile On Save" and clicked OK, it would not save it. I would reopen the Project Properties to find it unselected. As it turns out the reason was that the nb-configuration.xml for the project was made read-only from source control.
Upvotes: 0
Reputation: 2255
For more details on Compile-On-Save see the official FAQ page http://wiki.netbeans.org/FaqCompileOnSave
Upvotes: 0
Reputation:
First: you don't need "Clean and build project" each time.
Just use "Run project" (or "Run Main Project") and NetBeans will take care of compiling whatever needs compiling.
But if you do want the "Compile on Save" feature you can enable that in the project's properties under the "Build -> Compiling" options:
Upvotes: 4