Author Topic: C JNI DLL Example.  (Read 1051 times)

Offline thiefmn6092

  • Leecher
  • Posts: 6
  • Rep: 0
    • View Profile
    • Email
C JNI DLL Example.
« on: May 31, 2007, 11:54:50 am »
I created a classic hello world example with JNI and made a library, it has the visual studio project and some batch scripts since i was to lazy to manually do everything, lol. You might find it interesting!

http://www.mooload.com/new/file.php?file=/data/310507/1180615618/JNI+DLL.rar

Some of the uses include

1.) People can't just *decompile* a dll, which means the source is safe :-)
2.) Fast execution time ( except loading the library )
3.) Allows you to use native code
4.) You reap the benefits of how a DLL works.

Disadvantages

1.) Only usable on Windows
2.) Some other shit i don't want to explain

Freddy1990.com

C JNI DLL Example.
« on: May 31, 2007, 11:54:50 am »

Offline Freddy

  • Owner
  • *****
  • Posts: 2614
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: C JNI DLL Example.
« Reply #1 on: June 01, 2007, 07:20:43 am »
Doesn't JNI allow you to create librarys which are loaded by java?

Freddy1990.com

Re: C JNI DLL Example.
« Reply #1 on: June 01, 2007, 07:20:43 am »

Offline thiefmn6092

  • Leecher
  • Posts: 6
  • Rep: 0
    • View Profile
    • Email
Re: C JNI DLL Example.
« Reply #2 on: September 05, 2007, 06:33:57 pm »
Yes, and this is a windows specific example.

Freddy1990.com

Re: C JNI DLL Example.
« Reply #2 on: September 05, 2007, 06:33:57 pm »