Create Android Java JAR Interface Files For Delphi XE7 Firemonkey With Java2OP

Delphi XE7 Firemonkey Android Java To Object Pascal JAR Interface ConverterEmbarcadero has released the Delphi XE7 Firemonkey utility called Java2OP which will take a JAR or .java files and create Object Pascal interface files for them. David Intersimone from Embarcadero has a blog post about it here. If you want to use third party SDKs or use some Android API functionality that is not provided in the Firemonkey RTL this is the utility to use to make it easier to access. Previously for Delphi XE5 and Delphi XE6 there were three different utilities that provided different ways for creating Object Pascal interface files for Android JAR libraries. I used the Java2Pas utility to create interface files for the entire Android SDK. Java2OP allows you to define a subset of the specific Java sources and you can use it against either a JAR file or a directory of .java files. Java2OP requies Java and the JDK 1.7+ for it to run and the JDK must be in your path. As you may know Delphi XE7 provides the new option to add third party JAR files automatically into a project and this Java2OP creates the interface files you need. You should also be able to use it with AppMethod. Here is the Readme file from Java2OP:

Head over and download the full free Java to Object Pascal utility for Delphi XE7 Firemonkey from Embarcadero.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Create Android Java JAR Interface Files For Delphi XE7 Firemonkey With Java2OP by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

5 Responses to Create Android Java JAR Interface Files For Delphi XE7 Firemonkey With Java2OP

  1. Pingback: What’s New Roundup For Delphi XE7 Firemonkey On Android, Windows, OSX, And IOS | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

  2. Pingback: Gerando interfaces Object Pascal a partir de bibliotecas java com Java2OP | Regys Borges da Silveira

  3. Pingback: Access the StarIO SDK In This Demo With Java2OP In Delphi XE7 Firemonkey On Android | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

  4. Pingback: Object Pascal Android Lollipop SDK Interfaces Files For #Delphi XE8 Firemonkey | Delphi XE5 XE6 XE7 XE8 Firemonkey, Delphi Android, Delphi IOS

  5. Paul Gertzen says:

    I have used Java2OP to create header files for third party libraries which works great. I am now trying to create a pascal header file for the android.hardware.fingerprint class which is in the newer android api (using java2op -classes andoird.hardware.fingerprint). This does not work as it seems that Java2OP.exe is reliant on android-19.jar & android-19.xml which is packaged with java2op.exe. How do I update java2op to use the newer android.jar?

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Free Native Android Component Suite For Delphi XE7 Firemonkey

Developer Babak Yaghoobi has updated the DPF Android component suite for Delphi XE7 Firemonkey. If you haven't seen the DPF...

Close