How Do I: Add a Non-WebLogic Workshop JAR File to an Application?

When you have a JAR file with Java classes that was not created with WebLogic Workshop, you can still use these classes in your application. To do so, you must add the JAR file as a library to your application.

Note. To use Java classes in a JAR file, they must be organized in one or more packages. For more information on Java packages, see Introduction To Java.

To Add a Non-WebLogic Workshop JAR File to Your Application

  1. Go to the Application pane, right-click the Libraries folder in the root of the application folder, and select Add Library.
  2. In the Add Library dialog, navigate to and select the JAR file. Click Open.

To Use a Java Class from a Non-WebLogic Workshop JAR File

To use a Java class, you must handle it like any regular Java class in a package. That is, you can add an import statement at the beginning of the source file or you can refer to the class by its long name. For more information, see Introduction To Java.

Related Topics

How Do I: Create and Use a Java Control Within a Control Project? Or should it be How Do I: Reuse Existing Java Code??