Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  • Click the "+" next to the ofbiz project.
  • Right click on the "build.xml" in the root of the ofbiz project and select "Run Ant..."
  • The defaults are fine for the initial build. Click Finish. If you get the following error message:

Wiki Markup[javac]\[ BUILD FAILED: file:<Project Dir>/build.xml:32: Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

...

  • Bring up the "SVN Repository" panel in Eclipse (Window/Open Perspective/SVN Repository Exploring)
  • Right-Click within panel/New/Repository Location
    • Wiki MarkupUrl:http://svn.apache.org/repos/asf/ofbiz/trunk\[\]
  • Click on Finish. Now, do the initial checkout:

...

Additional Eclipse and OFBiz resources

Changing Eclipse's JVM

...

[javac]\[ BUILD FAILED: file:<Project Dir>/build.xml:32: Unable to find a javac compiler;
If you have received the above error, you most likely have more than one JVM (e.g. a JRE and a JDK) installed. Eclipse uses the first Java VM it finds on your computer's PATH variable. In this case, it is most likely a JRE, not a JDK. Ant uses the same Java environment as Eclipse, no matter what you may specify in the compiler attribute. Because it is a JRE, you will not be able to compile.

To correct this, you must tell Eclipse to use the SDK. To do this, modify the shortcut you use to launch Eclipse and change the target to the following:

...

You don't need anything else than Eclipse 3.4+ version. The feature itself uses the standard java regular expressions and is actually fairly simple to understand. I would recommend to have a go at regular expressions before trying that feature. You may use these plugins Bastian Bergerhoff's Brosinski's to help your work. You may also use online tools like gskinner's or regextester to test the results. Another great read is also: http://java.sun.com/developer/technicalArticles/releases/1.4regexImage Removed

Be aware that there are different types of regexp. So not all commands may work (luckily, eclipse displays the available commands on the input dialog)

...