Java over JNI using a PB-dll

Share your advanced PureBasic knowledge/code with the community.
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Java over JNI using a PB-dll

Post by Froggerprogger »

Hi there!
In the last two days I made several experiments in Java on how to call native methods via JNI (Java Native Interface) that are implemented inside a dll made by PureBasic.

All is running fine, so if you are interested in, download the .zip containing compiled examples & sources at:

http://www.2mal2mal.de/public/purebasic ... NI_1.0.zip

The next thing will be to do the other way round: Creating and handling a JVM-instance from inside PB to control the whole Java-Environment :)
%1>>1+1*1/1-1!1|1&1<<$1=1
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Good job! Keep it up - I am particularly interested in the other-way. I currently have a hybrid PB/Java app, but PB only manages the JARs not the JVM.
Image Image
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

Post by pcfreak »

great job, thanks for sharing :)
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Thanks for sharing :)
EDIT: Does someone know if this still works 100% with current version of PB?
User avatar
Tombmyst
User
User
Posts: 11
Joined: Thu Jul 04, 2013 2:34 am
Location: Québec

Re: Java over JNI using a PB-dll

Post by Tombmyst »

Is there anybody having the zip file? The link is dead now :(
Tombmyst
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Java over JNI using a PB-dll

Post by jack »

I found a copy PBJNI_1.0
User avatar
Tombmyst
User
User
Posts: 11
Joined: Thu Jul 04, 2013 2:34 am
Location: Québec

Re: Java over JNI using a PB-dll

Post by Tombmyst »

jack wrote:I found a copy PBJNI_1.0
Thanks!
Tombmyst
Post Reply