Hi,
Is it possible to access and utilize Java classes from a native
Windows application, specifically one written in Delphi. There is
some functionality that exists in Java classes and to avoid having to
re-write this logic in Delphi again, is there a way to "re-use" these
classes.
Any help would be welcome.
Thanks,
Shubeer
Gordon Beaton - 03 Dec 2007 12:52 GMT
> Is it possible to access and utilize Java classes from a native
> Windows application, specifically one written in Delphi. There is
> some functionality that exists in Java classes and to avoid having
> to re-write this logic in Delphi again, is there a way to "re-use"
> these classes.
Delphi seems to have a C-binding, which means that you should be able
to use JNI to make calls between Delphi and Java.
Google "Delphi JNI" to get lots more info.
/gordon
--
Arne Vajhøj - 04 Dec 2007 03:10 GMT
> Is it possible to access and utilize Java classes from a native
> Windows application, specifically one written in Delphi. There is
> some functionality that exists in Java classes and to avoid having to
> re-write this logic in Delphi again, is there a way to "re-use" these
> classes.
The hard way is:
Delphi--(normal call)--C--(JNI call)--Java
The easy way is two processes and network:
Delphi--(socket)--Java
If you could expose your Java functionality as a web service, then
it would be very easy to use it from Delphi.
Arne