Versions Compared

Key

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

...

  • Select Remote Java Application from the tree on the left.
  • Click New (button on the bottom left).
  • Type a name at the top (OFBiz, perhaps?)
  • On the Connect tab
    • Pick ofbiz for the project
    • Select Standard (Socket Attach) for Connection Type
    • Type localhost for host
    • Type 8091 (or whatever port you chose) for port
  • On the Source tab
    • Click Add Projects... (buttons on the right)
    • Select the ofbiz project
  • Click ApplyIf you have OFBiz running debug (Step 1 above) you can start debugging by clicking Debug (on the bottom) now.

    You know that you are connected when you see a start/stop button in the debug perspective of Eclipse.
    No Format
    
    First created by Jarrod Ribble.
    



...

Running (or debugging) OFBiz in Eclipse

  • Select OFBiz project, right-click on it -> Run As -> Run ... (alike for Debug)
  • Select Java Application and click on New
  • Set Run configuration name to OFBiz
    • Main tab:
      • Project: OFBiz
      • Main class: org.ofbiz.base.start.Start
    • Arguments:
      • Wiki Markup
        VM arguments: \-Xms128MXms(minValue)M \-Xmx256MXmx(maxValue)M  + \["-Duser.language=en only if using another locale on Windows\] (typically minValue = 128, maxValue = 512, more is better of course)
      • Working directory: Use default working directory
    • Classpath
      • Bootstrap Entries: JRE System Library
      • User Entries: ofbiz.jar from OFBiz project
        • Don't forget to remove the entry "ofbiz (default classpath)" else you may have a message "Can't find bundle for base name cache, locale ..."
    • Source tab
      • Click Add Projects... (buttons on the right)
      • Select the ofbiz project
    • Environment
      • Add environment variable LC_ALL=C (Optional, Linux only)
  • Click on Apply and Run (or Debug)
    No Format
    
    Thanks to Peter Goron of Néréides
    



...