mirror of
				https://github.com/platformio/platformio-core.git
				synced 2025-11-03 15:31:42 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
..  Copyright 2014-2016 Ivan Kravets <me@ikravets.com>
 | 
						|
    Licensed under the Apache License, Version 2.0 (the "License");
 | 
						|
    you may not use this file except in compliance with the License.
 | 
						|
    You may obtain a copy of the License at
 | 
						|
       http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
    Unless required by applicable law or agreed to in writing, software
 | 
						|
    distributed under the License is distributed on an "AS IS" BASIS,
 | 
						|
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
						|
    See the License for the specific language governing permissions and
 | 
						|
    limitations under the License.
 | 
						|
 | 
						|
.. _ide_netbeans:
 | 
						|
 | 
						|
NetBeans
 | 
						|
========
 | 
						|
 | 
						|
NetBeans is a Java-based integrated development environment (IDE). It provides
 | 
						|
out-of-the-box code analyzers and editors for working with the latest Java 8
 | 
						|
technologies--Java SE 8, Java SE Embedded 8, and Java ME Embedded 8. The IDE
 | 
						|
also has a range of new tools for HTML5/JavaScript, in particular for Node.js,
 | 
						|
KnockoutJS, and AngularJS; enhancements that further improve its support for
 | 
						|
Maven and Java EE with PrimeFaces; and improvements to PHP and C/C++ support.
 | 
						|
 | 
						|
NetBeans IDE can be downloaded from `here <https://netbeans.org/downloads/>`_.
 | 
						|
Just make sure you download the C/C++ version (or if you already use NetBeans,
 | 
						|
install the C/C++ development plugins).
 | 
						|
 | 
						|
.. image:: ../_static/ide-platformio-netbeans.png
 | 
						|
    :target: http://docs.platformio.org/en/latest/_images/ide-platformio-netbeans.png
 | 
						|
 | 
						|
.. contents::
 | 
						|
 | 
						|
Integration
 | 
						|
-----------
 | 
						|
 | 
						|
Choose board ``type`` using :ref:`cmd_boards` or `Embedded Boards Explorer <http://platformio.org/boards>`_
 | 
						|
command and generate project via :option:`platformio init --ide` command:
 | 
						|
 | 
						|
.. code-block:: shell
 | 
						|
 | 
						|
    platformio init --ide netbeans --board %TYPE%
 | 
						|
 | 
						|
    # For example, generate project for Arduino UNO
 | 
						|
    platformio init --ide netbeans --board uno
 | 
						|
 | 
						|
Then:
 | 
						|
 | 
						|
1. Open this project via ``Menu: File > Open Project...``
 | 
						|
2. Add new files to ``src`` directory (``*.c, *.cpp, *.ino, etc.``) via
 | 
						|
   right-click on ``src`` folder in the "Projects" pane
 | 
						|
3. Build project using ``Menu: Run > Build Project``
 | 
						|
4. Upload firmware using ``Menu: Run > Run Project``
 | 
						|
 | 
						|
.. warning::
 | 
						|
    The libraries which are added, installed or used in the project
 | 
						|
    after generating process wont be reflected in IDE. To fix it you
 | 
						|
    need to reinitialize project using :ref:`cmd_init` (repeat it).
 | 
						|
 | 
						|
Articles / Manuals
 | 
						|
------------------
 | 
						|
 | 
						|
* Feb 22, 2016 - **Grzegorz Hołdys** - `How to Integrate PlatformIO with Netbeans <http://www.instructables.com/id/How-to-Integrate-PlatformIO-With-Netbeans/>`_
 | 
						|
 | 
						|
See the full list with :ref:`articles`.
 |