Dear Wiki user, You have subscribed to a wiki page or wiki category on "James Wiki" for change notification.
The following page has been changed by VincenzoGianferrari: http://wiki.apache.org/james/NetBeansNotes ------------------------------------------------------------------------------ = A Rough Guide to James Development Using NetBeans = - Follow these steps to develop James code using the NetBeans IDE. Use the NetBeans Help and Tutorials to more fully understand the NetBeans concepts and actions described here. + Follow these steps to develop James code using the Net''''''Beans IDE. Use the Net''''''Beans Help and Tutorials to more fully understand the Net''''''Beans concepts and actions described here. - We assume that NetBeans has been downloaded and installed from http://www.netbeans.org/. The NetBeans release we refer to is 5.0+. + We assume that Net''''''Beans has been downloaded and installed from http://www.netbeans.org/. The Net''''''Beans release we refer to is 5.0+. We also assume that also the James project files have been downloaded from the Apache SVN repository and are available in a directory that we will refer to as {{{[james-prj]}}}. We will assume also that a working James server runtime instance has been already "deployed" in a directory that we will refer to as {{{[james-rt]}}}, and all configuration files are already set in the various subdirectories of {{{[james-rt]/apps/james}}}. @@ -11, +11 @@ The following notes apply to both https://svn.apache.org/repos/asf/james/server/branches/v2.3 and https://svn.apache.org/repos/asf/james/server/trunk as of November 2006. - The goal is to fully use NetBeans for editing, compiling, running, debugging and even profiling James, in "direct" mode (not "attached"). The James project will behave as any other NetBeans IDE Java project, and all the IDE tools and functionalities will be available. + The goal is to fully use Net''''''Beans for editing, compiling, running, debugging and even profiling James, in "direct" mode (not "attached"). The James project will behave as any other Net''''''Beans IDE Java project, and all the IDE tools and functionalities will be available. == Steps to follow == - 1. Create a NetBeans "General Java Application" project ("File>New Project...") as a "Main Project" but without a Main class, and let's call it {{{james-nb}}} in the {{{[james-nb]}}} Project Folder. + 1. Create a Net''''''Beans "General Java Application" project ("File>New Project...") as a "Main Project" but without a Main class, and let's call it {{{james-nb}}} in the {{{[james-nb]}}} Project Folder. 1. Select "Properties" from the project pop-up menu. @@ -35, +35 @@ 1. Choose "Build>Build Main Project" from the main menu and a new runnable and debuggable project will be built in the {{{[james-nb]/build}}} and {{{[james-nb]/dist}}} directories. - 1. Now you can either run James choosing "Run>Run Main Project" or debug it choosing "Run>Debug Main Project" from the main menu. It is even possible to profile James if the "NetBeans Profiler" module has been installed. + 1. Now you can either run James choosing "Run>Run Main Project" or debug it choosing "Run>Debug Main Project" from the main menu. It is even possible to profile James if the "Net''''''Beans Profiler" module has been installed. == A few notes == - 1. Using the NetBeans IDE as described above is not a substitution for the "standard" James ant scripts when building a working runtime distribution. It is useful for a faster code editing and for debugging etc. + 1. Using the Net''''''Beans IDE as described above is not a substitution for the "standard" James ant scripts when building a working runtime distribution. It is useful for a faster code editing and for debugging etc. 1. If redoing step 2.b.i above, make sure to fully rebuild the project at the end if changing the "Java Platform" ("Build>Clean and Build Main Project").