It is currently Thu Jul 29, 2010 5:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PB4Java
PostPosted: Fri Oct 09, 2009 12:22 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 07, 2004 7:10 pm
Posts: 846
Location: Bergen, Norway
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 (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 ;) ).

_________________
Sun Certified Java Programmer (SCJP 6)
PB4Java


Last edited by Bonne_den_kule on Sat Oct 31, 2009 8:30 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Fri Oct 09, 2009 1:00 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 6229
Location: France
Very interesting, look like dead easy to map PB dll with JNI now.


Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Fri Oct 09, 2009 6:21 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2657
Location: Bergen, Norway
Very cool. Works great on Mac OS X Snow Leopard :)

_________________
GeoTrail >------> Rool Software


Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Sat Oct 31, 2009 8:51 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 07, 2004 7:10 pm
Posts: 846
Location: Bergen, Norway
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.

_________________
Sun Certified Java Programmer (SCJP 6)
PB4Java


Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Tue Nov 03, 2009 4:37 am 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 3788
Location: Houston TX
This does look incredibly ineresting... do you have any small examples you have created to show it off? 8)

_________________
INFINITY... it doesn't seem to work both ways!!!
Image
http://www.bluemesapc.com/


Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Tue Nov 03, 2009 10:17 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 07, 2004 7:10 pm
Posts: 846
Location: Bergen, Norway
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.

_________________
Sun Certified Java Programmer (SCJP 6)
PB4Java


Top
 Profile  
 
 Post subject: Re: PB4Java
PostPosted: Thu Nov 05, 2009 10:36 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 07, 2004 7:10 pm
Posts: 846
Location: Bergen, Norway
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 :)

_________________
Sun Certified Java Programmer (SCJP 6)
PB4Java


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye