last modified: 2018-01-13
The Codename One plugin is the tool that enables us to apps with NetBeans.
You have installed the plugin, but the creators of the plugin continue to make it evolve, adding new functionalities to it.
It is important to have the latest version of the plugin installed.
When you open NetBeans, it actually checks for you if there is any update available:
If there is a notification, it means updates are available. Click on the bubble and follow the instructions to download and install the updates.
You can have updates for the Codename One plugin, but also for other components of NetBeans you are not familiar with.
I advise you to install all the updates available.
Now, what if you already had created an app in NetBeans? It will not automatically benefit from the updated plugin.
Follow these steps:
Right click on the project’s name, select 'Properties'
In the window that opens, click on “Update project libs”. Close the window
Right click again on the project’s name. Click on “Clean and Build”. You should be good to go!
It sometimes happens that the address that NetBeans checks for plugin updates is incorrect.
In this case, NetBeans will never find updates and you’ll be stuck with an old version of the plugin!
Here is how to make sure you have everything correctly setup (explanations follow the picture below)
In the NetBeans menu, click on Tools → Plugin
In the window that opens, click on tab “Settings” (last tab on the right)
Select the line “CodenameOnePlugin Update Center”, it should be highlighted
Verify that the url (web address) on the right is:
If it’s not, then click on “edit” and put this address above instead.
By default, updates are checked every week. Change this for “every startup”.
That’s it! You have to do it just once, next time NetBeans will now how to search plugin updates by itself! 🎉
Just check if there is a bubble at the bottom right corner when you open NetBeans.
Questions? Want to open a discussion on this lesson? Visit the forum here (need a free Github account).
Find references for this lesson, and other lessons, here.
Licence: Creative Commons, Attribution 4.0 International (CC BY 4.0). You are free to:
copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material
⇒ for any purpose, even commercially.
This course is designed by Clement Levallois.
Discover my other courses in data / tech for business: http://www.clementlevallois.net
Or get in touch via Twitter: @seinecle