The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: shashank_tulsyan on November 01, 2006, 06:37:21 PM

Title: Java JNI
Post by: shashank_tulsyan on November 01, 2006, 06:37:21 PM
Hello,
I found an article in java.net : Invoking Assembly Language Programs from Java. Well I compiled the example. I was not able to use the dll. But, the dll that was provided by writter did the work. When I compared the two, they were of exactly equal number of bytes. I found some difference in a few places, but nevertheless they are equal in size. I am using masm32 ver8. Am I wrong somewhere. Pardon me if you consider this topic should have been posted in java.net forum. It is actually in the asm part where I am finding difficulty.
Title: Re: Java JNI
Post by: shashank_tulsyan on November 02, 2006, 04:45:00 AM
Well I found the solution myself. I had just never made a useful dll before, so I didn't know that one needs to make a module definition file. I did that and it worked. Thanks.
Title: Re: Java JNI
Post by: PBrennick on November 03, 2006, 12:46:43 AM
You should consider posting future questions of this sort in the Campus so we will see it and help you. As it is, I stumbled across this thread quite by accident.

By the way, there is an example that shows how you should build a DLL in Iczelion's Tutorials.


Paul
Title: Re: Java JNI
Post by: James Ladd on November 03, 2006, 10:17:53 PM
shashank,
Please could you post the full example. Id be interested in seeing it.