Java2OP.exe for RAD Studio, Delphi and C++Builder XE7 » Developer.Team - Developers Paradise!

Java2OP.exe for RAD Studio, Delphi and C++Builder XE7

Java2OP.exe for RAD Studio, Delphi and C++Builder XE7
Java2OP.exe for RAD Studio, Delphi and C++Builder XE7 | 20 Mb


Java2OP.exe ("Java To Object Pascal") is a command-line tool that you can use to generate Delphi native bridge files from Java libraries (JAR or class files). You can use the generated files to provide your Delphi applications access to those Java libraries on Android. See Using a Custom Set of Java Libraries In Your RAD Studio Android Apps.

Usage

To use this tool, simply call the tool with any combination of options that you like:

Java2OP.exe [options]

You must specify at least one input option that indicates what content you want to include in the output Delphi native bridge file.

Your output native bridge file does not include members that are part of the built-in RAD Studio Java libraries for Android unless you explicitly specify those members using the -classes parameter. If any of the classes that you specified depends on members from the built-in RAD Studio Java libraries for Android, the resulting native bridge file does not redeclare those members; instead, it includes the RAD Studio units that already declare those members.


Examples

Exporting some classes and packages from the Android API:

Java2OP.exe -classes android.net.ConnectivityManager android.location.*

Exporting all classes from mylib.jar:

Java2OP.exe -jar mylib.jar

Exporting a single class from mylib.jar:

Java2OP.exe -jar mylib.jar -classes com.mypackage.ClassName

Exporting all the classes from a folder of Java sources specifying the file name of the output Delphi unit:

Java2OP.exe -source myproject/src -unit Android.JNI.UnitName


Home:
http://docwiki.embarcadero.com/RADStudio/XE7/en/Java2OP.exe,_the_Native_Bridge_File_Generator_for_Android


[/b]


[b] Only for V.I.P
Warning! You are not allowed to view this text.