• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Accessing a windows dll from java, JNI ?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

Being puzzled.
I am not quite sure to handle my problem, not knowing where to start.
I have a dll written in C or C++, a speech engine from a third party, that I want to access from Java.
How do I access those C functions from my Java code, will I have to
write som kind of 'adapter' using JNI as some kind of middle-layer.
Are there any godod articles on the subject besides the Tutorial on the java.sun.com site ? or books ?

Using Netbeans for coding at the moment, is there any kind ( if there is use for that) of plug-in regarding problems as this ?
Could switch to any other kind of tool here, if it helps me.

regards, i
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

There are some packages that take the pain out of using JNI to communicate with a DLL. If you have a COM object, take a look at the JACOB and JCOM projects.
[ January 27, 2006: Message edited by: Ulf Dittmer ]
 
ing erl
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply!
Start looking there!

regards, i
http://pay-and-play.org/
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic