| Author |
How can I use java class in other languages
|
Andrew Romanenco
Greenhorn
Joined: Feb 28, 2006
Posts: 5
|
|
Hi, All I have java class which I want to use in other system (for example delphi). I would like to use class as COM or DCOM object. This will allow using it in any windows application. I have found a lot of bridges, but they allow access to com/dcom objects from java. Not to java classes as COM. Could anybody give me a link? Thanks
|
 |
Peter Chase
Ranch Hand
Joined: Oct 30, 2001
Posts: 1970
|
|
You certainly can call Java from other languages. However, because Java code is not native code, you can't call it directly. You have to invoke a JVM then ask it to run Java code. You want the Invocation API, which is part of Java Native Interface (JNI). There may be ready-made products to help you to do this, and to make your Java classes look like DCOM objects, but I don't know of these, since I wouldn't want to do any DCOM.
|
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P
|
 |
Chetan Parekh
Ranch Hand
Joined: Sep 16, 2004
Posts: 3636
|
|
|
For PHP people, php-java-bridge is there.
|
My blood is tested +ve for Java.
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
Google for "java com bridge" and find many free and commercial products. I think most would have to flow from Java calling COM to get hooked up. Also read up on JNI. You could make a COM object that talks to Java that way. Again, you'd have to fire up the JVM and get the JNI hooked up before you could call them from an MS language.
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
 |
|
|
subject: How can I use java class in other languages
|
|
|