How to Embed Java Into Flex

The Flex programming language is used to create applications that run on Web pages and interact with website visitors. If you have a Java script or program that you want to integrate into your website, you can do so by adding a callback to the Java script file in your Flex program. This callback causes the Java application to activate when the Flex program is run.

Instructions

    • 1

      Open your Flex project.

    • 2

      Go to the location in the Flex application where you want to embed your Java application.

    • 3

      Type "inc.ext["/path/to/java/file.jar"]->exc" (without the external quotes) into the Flex program. Replace the example path with the actual path of your Java file.

    • 4

      Save the Flex program, and ensure that the Java application is in the specified path on your server when you run the Flex file.

Related Searches:

References

  • Java The Complete Reference, 8th Edition; Herbert Schildt
  • Effortless Flex 4 Development; Larry Ullman

Comments

Related Ads

Featured