Using Java classes from Native Applications

S

shubeer

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
 
G

Gordon Beaton

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

--
 
A

Arne Vajhøj

shubeer said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top