Note
Starting with release 7.3.0, the instructions on this page to use Java 5 instead of Java 6 are deprecated. This functionality is expected to be removed in a future release.
As of release 6.3, both StreamBase Server and StreamBase Studio must be run with a Java 6 JDK. However, the StreamBase Client API still supports using Java 5 to develop StreamBase extensions, which include custom operators, adapters, client applications, and monitor applications. If you are starting a new project or you have no third-party dependencies, StreamBase Systems recommends using a supported Java 6 JDK to develop your client code.
StreamBase Studio ships with new projects configured by default to build with Java 6. However, you may have a site policy that requires the use of Java 5, or you may be developing an adapter or other extension that integrates with third-party JAR files built with Java 5. In these cases, follow the steps on this page to specify Java 5 for building your StreamBase extensions.
-
In Studio, in the Package Explorer, select the project that contains the Java code for your StreamBase extension.
-
Right-click and select Properties from the context menu (or press Alt+Enter).
-
In the Properties dialog, select Java Compiler in the left side navigation column.
-
In the Java Compiler page of the dialog, select the Enable project specific settings check box. This activates the JDK Compliance section.
-
Select 5.0 in the Compiler compliance level drop-down list.
-
Click . This raises a dialog prompting for permission to rebuild the selected project. You can rebuild now or postpone until later.
-
Click to close the Properties dialog.
If appropriate for your site policies, you can also set the compiler compliance level for all of Studio to 5.0, instead of making the change project by project. This does not affect how StreamBase Studio or Server runs with JDK 6. To make this setting across all Studio projects, follow these steps:
-
In Studio, invoke → .
-
Select Java Compiler in the left side navigation column.
-
Select 5.0 in the Compiler compliance level drop-down list.
-
Click . This raises a dialog prompting for permission to rebuild the selected project. You can rebuild now or postpone until later.
-
Click to close the Preferences dialog.
