Page 1 of 1

PB4Java

Posted: Fri Oct 09, 2009 12:22 am
by Bonne_den_kule
Hello!
It's along time since I was active on this forum and was coding PB. I have somehow return :P by experimenting with accessing PB procedures in Java (using JNI).
I was fascinated by the JNI example by Froggerprogger (http://www.purebasic.fr/english/viewtopic.php?t=23702).
So I made this tool to make the process of creating JNI compatible libraries easier. The PB4Java tool can parse both PB source code files and pure library files (even open multiple files at same the time).
Procedures in source files that are going to be exported must have a name starting with "Java_" (does not apply for pure library files).
All necessary boilerplate code and includes are created without much hassle by clicking on the "Save" button. More information in the readme.
If you have any question, bugs to report or any ideas, please post here :)

Image

Download here.

The tool is created in Java, so you need the Java SE 6 JRE (a whopping 16 MB ;) ).

Re: PB4Java

Posted: Fri Oct 09, 2009 1:00 am
by Fred
Very interesting, look like dead easy to map PB dll with JNI now.

Re: PB4Java

Posted: Fri Oct 09, 2009 6:21 pm
by GeoTrail
Very cool. Works great on Mac OS X Snow Leopard :)

Re: PB4Java

Posted: Sat Oct 31, 2009 8:51 pm
by Bonne_den_kule
I have now updated the tool. Many new features are added, with the greatest one being is the possibility to parse pure library files.
Rows can be removed from table with the new remove button. A sort function to the table has also been added.

Re: PB4Java

Posted: Tue Nov 03, 2009 4:37 am
by Rook Zimbabwe
This does look incredibly ineresting... do you have any small examples you have created to show it off? 8)

Re: PB4Java

Posted: Tue Nov 03, 2009 10:17 am
by Bonne_den_kule
Rook Zimbabwe wrote:This does look incredibly ineresting... do you have any small examples you have created to show it off? 8)
Thanks :) There is an example file in the zip file. But I can make some more examples with usage of pure libraries functions, and then make a new release or post the examples here.

Re: PB4Java

Posted: Thu Nov 05, 2009 10:36 pm
by Bonne_den_kule
Bonne_den_kule wrote:
Rook Zimbabwe wrote:This does look incredibly ineresting... do you have any small examples you have created to show it off? 8)
Thanks :) There is an example file in the zip file. But I can make some more examples with usage of pure libraries functions, and then make a new release or post the examples here.
I have added a quick guide and one more example to the zip file. You'll find the stash in the example directory :)