jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons 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!
It is sorta covered in the JavaRanch Style Guide.
subject: Calling C/ASM from Java?
Similar Threads
in which language java is written
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
Its not Java, its you (an opinion)
i'm sure you answered this a million times...just one more try:)
Bytecode into my code?