Closed hafedh-trimeche closed 2 years ago
I think your application is having a problem to load the java classes from the classpath... I would compile the PageGrabber.java and put the resulting PageGrabber.class to the same location of the Delphi executable, then you can pass the classpath string like this:
Options[0].optionString := PAnsiChar(AnsiString('-Djava.class.path=' + ExtractFilePath(ParamStr(0))));
And the options array should be declared like: Options: array [0 .. 4] of JavaVMOption;
Hello,
Please note that JNI can't find the class PageGrabber from PageGrabber.zip
Best regards.