Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

Java JDK

OFBiz is written in Java and requires a full Java Development Kit (JDK) from Sun/Oracle or OpenJDK to run.

WARNING: It won't run on a Java Runtime Environment (JRE) alone — a full JDK is required to build it. OpenJDK is fully supported and is the JDK most contributors use day to day.

Sun's Java version numbering was a bit schizophrenic-- Java 6 means version 1.6, while Java 5 means version 1.5. From Java 8 Oracle is only labeled this way. OFBiz Java version requirements are as follows:

  • trunk requires Java SDK 17
  • 24.09 requires Java SDK 17
  • 22.01 requires Java SDK 17
  • 18.12 requires Java SDK 8
  • 17.12 requires Java SDK 8
  • 16.11 requires Java SDK 8
  • 15.12 requires Java SDK 8
  • 12.04, 13.07, 14.12: requires Java SDK version 1.6
  • 11.04, 10.04: requires Java SDK version 1.6
  • 9.04: requires Java SDK version 1.5 (or greater)

Also if you get an error like "class file has wrong version 50.0, should be 49.0", below is a list of some of the version numbers and their corresponding Java runtimes:

  • Version 53.0 = Java 1.9.x
  • Version 52.0 = Java 1.8.x
  • Version 51.0 = Java 1.7.x
  • Version 50.0 = Java 1.6.x
  • Version 49.0 = Java 1.5.x
  • Version 48.0 = Java 1.4.x

You can get the latest Oracle Java SDK here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

If Java is already installed on your target machine, make sure it is the full JDK and appropriate running version. You can check this by typing "java -version" (you may also check javac -version) at a command prompt.

Operating system

OFBiz will run on any operating system that supports Sun Java SDK.

  • Microsoft Windows (recent versions)
  • Apple Macintosh (macOS)
  • Linux (most recent distributions)
  • Unix (FreeBSD, OpenBSD, NetBSD)

are all supported.

Hardware

OFBiz can operate for evaluation and testing purposes on a modest server. A current trunk build and install takes about 590MB of disk space (plus roughly 1.3GB of Gradle-managed dependency cache the first time you build, shared across builds). Given the Java 17 runtime requirement, a couple of CPU cores and at least 2–4GB of RAM is recommended for a comfortable development/evaluation setup; production servers will want more, commensurate with expected load.

Database

OFBiz comes with an embedded Java database built in — Apache Derby on release24.09 and earlier, H2 on trunk. This is usually fine for evaluation, development, and testing. Production servers will probably want a more powerful database. A variety of databases are supported, including PostgreSQL, MySQL, Oracle, Microsoft SQL Server, and others.

  • No labels