You are not logged in.

  • "Gerome GUILLEMIN" started this thread

Posts: 14

Date of registration: Feb 16th 2009

  • Send private message

1

Monday, February 16th 2009, 10:50pm

Home made JAR files

Hello,



I've found and tested your RAD, and I can sincerely say that your work is really amazing and a very good product, even in its beta stage!

BTW, I have a question...

I'm a C developer and know a bit in Java.

I've made a C DLL with a JNI interface + the folowing class file that I've compiled into a JAR file :

FBSL.java

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
class FBSL
{
    public native int    SetDLL( String s );
    public native int    ExecuteScriptBuffer( String s );
    public native int    ExecuteScriptFile( String s );
    public native String EvalScriptBuffer( String s );
    public native String EvalScriptFile( String s );
 
    static
    {
      //System.loadLibrary( "Java_FBSL" );
 System.load( "./Java_FBSL.DLL" );
    }
}




I've compiled successfully as a JAR file...



Now I wanted to test my JAR file, so I typed the following code :



Dim fbs As FBSL
fbs.SetDLL "C:/fbsl.dll"



but I got a JavaNullPointerException :/



So I tried with Class.forName("FBSL")

but nothing better :/



I know my JAR works, I've made another java code to test it and it works as expected, but unable to make it run from Jabaco or may be I'm missing something...



Any help would be greatly appreciated!



Yours,

Gerome

  • "Gerome GUILLEMIN" started this thread

Posts: 14

Date of registration: Feb 16th 2009

  • Send private message

2

Monday, February 16th 2009, 11:43pm

RE: Home made JAR files

Hey,



Finally I think I got it!

The Java class has to be turned to public :)

Here's the whole Zip pack : you can execute FBSL scripting language via the fabulous Jabaco interface!

It works nicely!



To get FBSL.DLL, you can grab the following Zip http://gedd123.free.fr/FBSLv3bin.zip
Gerome GUILLEMIN has attached the following file:
  • FBSL_Java.zip (21.34 kB - 415 times downloaded - latest: Yesterday, 3:15pm)

This post has been edited 1 times, last edit by "Gerome GUILLEMIN" (Feb 16th 2009, 11:49pm)


Rate this thread
WoltLab Burning Board