This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Calling C/ASM from Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calling C/ASM from Java?" Watch "Calling C/ASM from Java?" New topic

Calling C/ASM from Java?

Chris Stewart
Ranch Hand

Joined: Sep 14, 2002
Posts: 184
Does anyone know how I can import a dll I've written in C/ASM and use it within my Java app?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
It's called JNI or the Java Native Interface.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Chris Stewart
Ranch Hand

Joined: Sep 14, 2002
Posts: 184
I knew there was something for it, I just couldn't remember the name. I was thinking RMI first. unno: Thanks!
I agree. Here's the link:
subject: Calling C/ASM from Java?
It's not a secret anymore!