Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OFBIZ in Netbean 6

...

 I tried following the instructions in OFBIZ for netbeans 5. I could compile ofbiz en run it. I just couldn't get the debugger to work.

.7

The latest OFBIZ 9.04 can loaded into Netbeans IDE in a few steps. The steps shown here are just one way of doing it, and there are probably other's better ways to accomplish it.

Steps

  1. Checkout a copy of OFBiz from SVN or download a copy of it to your local computer
  2. Fire up Netbeans 6.7 and select "New Project" (Crtl + Shift - N)
  3. The New Project dialog window will popup. Select "Java" from the categories section, and "Java Free-Form Project" from projects section, and hit "Next"
  4. On the next screen set the location to the OFBiz folder and Netbeans will automatically fill up the information for the other fields (Build Script, Project Name, and Project Folder). Hit "Next"
  5. The next screen shows the ANT actions mapping. Leave all settings as it, except change "Test Project" mapping to "run". Hit "Next"
  6. The following screen asks for the location for all the java source files. For the "Source Package Folders" listing, you have to add the "src" folder of each subfolders found in "applications", "framework", and "specialpurpose" folders if present. Example: framework/base/src, applications/accounting/src, etc. Some subfolders may not have a "src" folder, so they can be skipped. This step is a bit tedious, so try selecting multiple "src" folders by holding the "Ctrl" key and clicking on the folder name to add multiple folders at once. Leave the "Test Package Folders" listing empty. Hit "Next"
  7. The next screen shows the listing of java source classpaths. Here you have to add all the *.jar files found in all "lib" folders. Example: framework/base/lib/freemarker-2.3.15.jar. Similar to the previous step, this is very tedious. By adding these classpaths, Netbeans IDE will be able to resolve any reference to external libraries in the OFBiz source code.
  8. Finally, the last screen asks for the output folders for the compiled code. Select all the "build" folders found in the subdirectories of "applications", "framework", and "specialpurpose" folders. Example: framework/base/build.
    #Done

Once the project is created, you can right click on the OFBiz project icon (OFBiz Main Build) and select "Run", "Build", "Clean" to run, build, or clean the program.

Debug Run

TODOSo i started a fresh and tried to get it to work. After about a day of trial and error i finaly managed to get evertything to work (breakpoints etc). I have put everything in a zip file just unzip it in de ofbiz root directory. Open the project in netbeans. It should work.