Before importing the BIRT source code into a workspace, check that the Java compiler settings on the workspace are compatible with BIRT. The 4.3.1 version of the BIRT SDK source code uses some features that are only present in JDK version 1.6 and higher. In order for BIRT to build successfully, you can now set the Eclipse compiler compliance to Java 1.7. Set this version for your Eclipse workspace by starting Eclipse and setting Eclipse preferences.
How to set Eclipse workspace compiler preferences
1 In BIRT Report Designer, choose Window➛Preferences.
2 In Preferences, expand the Java entry in the tree and select Installed JREs. In Installed JREs, select a Java 1.7 JRE, as shown in Figure 6‑1.
Figure 6‑1 Selecting a Java 1.7 JRE
You can use this screen to install additional JREs to eliminate the warnings from plug-ins that require previous Java levels. Note that BIRT 4.3.1 builds error-free using Java 1.7.
3 Select Compiler. In Compiler, as shown in Figure 6‑2, perform the following steps:
In JDK Compliance, select 1.7 in Compiler compliance level.
In Classfile Generation, select all the available options.
Figure 6‑2 Compiler preferences
Choose OK.
If a message appears asking if you want to do a full rebuild now, choose No. This message is applicable only if you changed the compiler settings and there are Java projects in the workspace.