RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!
TIME LEFT
11 12 hrs 17 18 mins 55 56 secs

Upgrade Pricing Extended to September 30

DelphiTech Partner

Convert Java Class Files and .jar Archive Files into Delphi Modules Using the Java4Delphi Tool

Intro

Java4Delphi converter tool helps to convert Java .class files and Java .jar archives to Delphi .pas files. So, Java classes and libraries can be used from Delphi projects easily.

Java4Delphi by WINSOFT is a commercial tool and gives all the functionalities when you get a license. All the source code of JNI and Delphi4Java units will be included in it.

The best thing about this tool is it utilizes classes with automatic reference-counting memory management.

Currently, this tool is available all the Delphi versions except the latest one Sydney, but be sure to check in near future for a new update.

Specifications

  • Supported OSs: All
  • Available for Delphi & C++ Builder 6-10.4

How to use it?

If you would like to learn more about this tool here you can watch the demo action video which shows how to convert Java files into Delphi .pas units.

Java4Delphi in action

To convert Java files, you should use the command-line tool to execute the java4delphi.exe program. Just go to the folder which java4delphi.exe is on and write java4delphi.exe and give the Java file name or path.

CMD

Here is our result:

So how we can use this module in our projects? The answer is simple. First, you should call CreateJavaVM before starting to use the converted unit.

Then you can create an instance from the Itest_Test interface:

And here is our full implementation and use case:

Head over and check out the full WINSOFT Java4Delphi tool!

Like what you see? You can get the Java4Delphi and over 100 other fantastic WinSoft components with our Enterprise Component Pack. For a limited time, when you purchase RAD Studio Enterprise or Architect Edition at special Upgrade Pricing, you will also get this package of third-party software worth over $13,000, including the full WinSoft Component Library, at NO EXTRA COST! Step up to RAD Studio 10.4.1 today!


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy. Start Free Trial   Free Delphi Community Edition   Free C++Builder Community Edition   Upgrade Today
About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES