Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Utility To Generate Java Android Class And JAR File Interfaces For Delphi XE5 Firemonkey

Delphi XE5 Firemonkey Java Class Jar To PascalThere is a utility that was recently released called Java2Pas and it creates an interface out of a Java class or Jar file for Delphi XE5 Firemonkey. The goal being that it will allow you to create interface files for all kinds of Android JAR libraries. There is not much information about the utility but it appears to come from a company called Software Union in Luxembourg. It seems like the utility is a paid utility with a free version but I don’t see anywhere to register it. When you create an interface file it is labeled with “unregistered evaluation copy” text (there is also an ini file with a place for a key). Update: You can email them to purchase via Paypal or wire (the cost is EUR 50 + VAT). In any event the utility creates interface(JObjectClass)’s for all class files but will only create interface(JObject)’s for classes in the Android namespace. I’m not sure how useful it is without the JObject interfaces however. There is a post up on DelphiPraxis where the author explains the utility here. On the forum post the example interface is the AlarmManager from Android. I used the utility against the SQLCipher JAR file and this is some of what it created:

There are two other utilities that I know of that will create interface files out of class files for Android. The first one, Android 2 Delphi Import tool, has no free trial and has to be purchased with Bitcoins. The second one, JavaImport For Android, has a free trial but only works on Java class files directly and not on JAR files. I’d like to see JavaImport handle JAR files directly.

Head over and download the Java2pas utility from the Software Union website.


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

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed


Leave a Reply