|
I get an OutOfMemoryError while building a project having more than 6000 source files. What do I do? |
|
|
You need to increase the memory allocated to the compiler. In order to do this:
- Right click on the project node in the Projects window and select Properties
- In the project properties dialog, click on Build -> Compiling
- In the Additional Compiler Options text box, enter the Xms and Xms switches as needed (for example -J-Xms128m -J-Xmx512m)
- Click OK in the dialog
- Make sure external Javac compiler will be executed by entering the following line to private.properties of the project (Important Files/Per-user Project Properties):
build.compiler=extJavac
That should resolve the issue.
Source: NetBeans User FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.