mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 21:00:55 +08:00
Add test Java example
This commit is contained in:
18
DesktopEditor/doctrenderer/docbuilder.java/test/Program.java
Normal file
18
DesktopEditor/doctrenderer/docbuilder.java/test/Program.java
Normal file
@ -0,0 +1,18 @@
|
||||
import docbuilder.CDocBuilder;
|
||||
|
||||
public class Program {
|
||||
public static void main(String[] args) {
|
||||
test();
|
||||
|
||||
// Need to explicitly call System.gc() because finalizers might not automatically get called
|
||||
// Note: Even System.gc() can not guarantee that finalizers will be actually called. Possible memory leaks!
|
||||
System.gc();
|
||||
}
|
||||
|
||||
public static void test() {
|
||||
CDocBuilder.initialize("C:\\Users\\mixa_\\main\\core\\build\\lib\\win_64\\debug");
|
||||
CDocBuilder builder = new CDocBuilder();
|
||||
System.out.println(builder.getVersion());
|
||||
CDocBuilder.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user