Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

JNI + COM

Thread view: 
gripusa - 03 Jul 2007 10:05 GMT
I am tyring to workaround a dll written in Visualbasic (or you can say
a standard component) , is that possible that i can access that dll's
methods in java (my confusion is that i have only found examples
written in C++).
Roedy Green - 03 Jul 2007 14:04 GMT
>I am tyring to workaround a dll written in Visualbasic (or you can say
>a standard component) , is that possible that i can access that dll's
>methods in java (my confusion is that i have only found examples
>written in C++).

You will need to write some glue in C++ to call the VB methods. The
C++ methods will have special signatures generated by the Javah
utility.  Java declares the C++ methods as "native".  Java calls C++
which in turn calls VB.

So you have everything you need.

See http://mindprod.com/jgloss/jni.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
timjowers - 03 Jul 2007 15:10 GMT
On Jul 3, 9:04 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:

> >I am tyring to workaround a dll written in Visualbasic (or you can say
> >a standard component) , is that possible that i can access that dll's
[quoted text clipped - 12 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com

There is also a Java to COM bridge somewhere. http://danadler.com/jacob/
Java integration support was de-featured from the base windows+IIS
bundle with the demise of J++.

TimJowers
Roedy Green - 04 Jul 2007 03:19 GMT
>There is also a Java to COM bridge somewhere. http://danadler.com/jacob/
>Java integration support was de-featured from the base windows+IIS
>bundle with the demise of J++.

There is a fair bit of pre-written JNI out there for the taking.  You
don't have to do everything from scratch.  However I have found most
of the time all you are doing is a few Windows system calls to give
access to an API from Java. The glue code is pretty trivial.

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
gripusa - 04 Jul 2007 09:51 GMT
On Jul 4, 3:19 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:

> >There is also a Java to COM bridge somewhere.http://danadler.com/jacob/
> >Java integration support was de-featured from the base windows+IIS
[quoted text clipped - 8 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com

Hi Roedy!
Yup , i found few bridges that let me do the functionlity but i
decided to apply the same formula to bridge things up in a c++ dll of
my own to call COM components rather then using a heavy bridge
between. (The actual decision is to create efficiency rather then
ease.)
Thanks for your replies.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.