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

The comment on the change is:
Minor enhancements

------------------------------------------------------------------------------
  
  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 developing, running, debugging and even 
profiling James, in "direct" mode (not "attached").
+ 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.
  
  == Steps to follow ==
  
@@ -32, +32 @@

     i. In the "VM Options" field enter (in a single line - no CR): 
      {{{-Djava.ext.dirs=[james-rt]/lib;[james-rt]/tools/lib 
-Dphoenix.home=[james-rt]}}}
      
{{{-Djava.security.policy=jar:file:///[james-rt]/bin/phoenix-loader.jar!/META-INF/java.policy}}}
- 
-     Warning: under Windows the {{{[james-rt]}}} entry in the 
{{{jar:file:///[james-rt]}}} url has a special convention to represent a disk 
drive: for example ''C:\james'' must be entered as {{{jar:file:///C|james}}}.
      
   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.
  
+ == 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. 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").
+ 
+  1. In step 2.c.iii, keep in mind that under Windows the {{{[james-rt]}}} 
entry in the {{{jar:file:///[james-rt]}}} url must use a special convention 
(see http://www.cs.tut.fi/~jkorpela/fileurl.html) to represent a disk drive: 
for example ''C:\james'' must be entered as {{{jar:file:///C|james}}}.
+ 

Reply via email to