Changing Projects' JREs

Different Java Runtime Environments can be applied to projects by default or can be applied or changed for specific projects.
 

These procedures describe how to apply different JREs to a specific project. JRE settings can be set while creating a new project or changed once a project has been created.

 

Before JREs can be applied to a project they need to be configured in the Installed JREs Preferences page, accessible from Window | Preferences | PHP | Installed JREs.

 

 

Instructions on how to complete a procedure

To apply a JRE to a new project:

  1. Create a new PHP project by going to File | New | PHP Project.
    The New PHP Project dialog will open.

  2. Enter the project name and change the project contents or PHP version settings if required.

  3. Click Next until you reach the Java Bridge Support screen.

  1. Select the JRE System Library and click Edit.
    The Edit Project JRE dialog will appear.

  1. Select 'Alternate JRE' and choose the required JRE from the drop-down list.

  2. If the required JRE does not appear in the list, click Installed JREs to be taken to the Installed JREs Preferences page.

  3. Click OK.

  4. Click Finish to create the project.

Your new PHP project will be created with the required JRE applied to the project.

 

 

Instructions on how to complete a procedure

To apply a JRE to an existing project:

  1. Right-click your project in PHP Explorer view and select Properties -or- click Alt-Enter.

  2. Select PHP Java Bridge from the properties list.

  1. Select the JRE System Library and click Edit.

  2. The Edit Project JRE dialog will appear.

  1. Select 'Alternate JRE' and choose the required JRE from the drop-down list.

  2. If the required JRE does not appear in the list, click Installed JREs to be taken to the Installed JREs Preferences page.

  3. Click OK.

  4. Click Finish to create the project.

Your project properties will be altered to include the alternate JRE.

Note:

The JRE will have been changed for the specified project only.

 

 

Related Links

Related Links:
Using Java Bridge

Creating Java Objects

Adding External Java Archives

Installed JREs Preferences