Adding External Java Archives

 

These procedure describe how to add external Java Archives (JARs) to your new or existing PHP projects' Java Bridge classpaths so that additional Java objects can be created.

 

 

Instructions on how to complete a procedure

To add JARs 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.

  4. Add variables to the project's PHP Include Path if required.

  5. Click Next.
    The Java Bridge Support dialog will open containing the list of available JAR libraries.

  1. Click Add External JARs.

  2. Browse for the JARs on your file system and click Open.
    Your JAR will be added to the list.

  3. Click Finish.

Your new PHP project will be created including the new JAR archive. Elements within the JAR will be available for use within Java objects for that project.

 

 

Instructions on how to complete a procedure

To add JARs 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.
    The list of available JAR libraries will be displayed.

  1. Click Add External JARs.

  2. Browse for the JARs on your file system and click Open.

Your JAR will be added to the list and will be available for use within Java objects for that project.

Note:

The JAR will have been added for the specified project only.

 

 

Related Links

Related Links:
Using Java Bridge

Creating Java Objects

Changing Projects' JREs

Installed JREs Preferences