Adding/Updating Java projects from existing sources to Netbeans Project

Task:  To update Java projects from existing sources to Netbeans Project

Solution :
Once you have an updated Java Project, you need to change it also in the Netbeans projects which have dependency on it. So First remove the java project from the sources of Java Project in the Netbeans Platform. Then download the updated version of the java project (e.g, from CVS) and then again add it to the sources of java project of Netbeans.
Now, remove/delete the old jar for the java project, to remove the dependency on the old jar.
Build and clean the java project as well as the whole netbeans project and again in the nebeans module, add the dependency on the new java project jar.

Steps in detail:

=> Make all the changes in your Java Project and Save it.
=> right click on the Java Project and go to Properties.
=> Go to Sources, check the source in which you just made the changes and Remove it.    Click OK
=> Now go to the folder where it stored and delete it
=> Delete the builds from the project folders (in my case...alifea.build, alifea_nt.build)
=> Now checkout the project again from the CVS and save it in the same folder where it was stored before
=> now again go to the properties of the Java project and add the updated project in the sources and click Ok.
=> Build and Clean the Java Project (alifea_nt)
=> Build and Clean the Netbeans Project (alifea)
=> Go to Properties of the module (projectManager) ->Libraries -> Wrapped Jar, first delete the old jar file of the java project (i.e., delete the alifea.jar), and then add the new jar of the updated java project  (i.e., add the alifea.jar)
=> Build and Clean the Netbeans Project (alifea) again
=> Now the project is set and the changes in the java project will be updated!

Comments

Popular posts from this blog

Printing of large double values in JAVA with or without scientific notation

To increase the size of heap memory for a Netbeans project