Hello,
to have a workaround for a x64 python api I tried to use java (x86).
I have a application named klbindex.db. Within this application I have a db/form named songindex
I adjusted the given examples:
public class main
{
static
{
System.loadLibrary("sesame_java_api");
}
public static void main(String argv[])
{
if(sesame_java_api.SesameConnect("jpfg") > 0)
{
System.out.println("Connected");
int rs = sesame_java_api.SesameSearch("klbindex.db", "songindex", 0, 2, "", "", "");
System.out.printf("rs: %d\n", rs);
if(rs > -1)
{
sesame_java_api.SesameClose(rs);
}
else
{
System.out.printf("Error: %d\n", sesame_java_api.SesameError() );
}
sesame_java_api.SesameDisconnect();
}
}
}
When I run it I get the following output:
Connected
rs: -1
Error: 0
1
2
3
4
5
6
7
In my understanding I should retrieve all existing records. The database is filled and has more than 0 records.
I can't explain the numbers 1 to 7. My code doesn't output the numbers
I use Sesame 2.6.3 Plus with the latest Sesame Api (2.6.2).
It would be nice if someone can give me a hint
Thanks