Hello
I'm trying to open a word doc file with this code:
I Have this error: java.lang.ClassNotFoundException: org.apache$poi xwpf$usermodel$XWPFDocument
I'm using jdk 11.0.1 but i have the same error using 1.8.0_141
Libraries JPOI ( 5.0 ) and XLUtils ( 1.14) are checked. B4j version is 9.0
I also add the dependencies for poi 5.0 into libraries and also into addlibraries.
Searching with browser I find that may be ooxml jar not updated. If yes how to repair ?
What can I do ?
Thanks for your help.
Regards
S.Viola
I'm trying to open a word doc file with this code:
B4X:
Sub OpenDocx As JavaObject
Dim in As InputStream = File.OpenInput(dir, filename)
Dim document As JavaObject
Try
document.InitializeNewInstance("org.apache.poi xwpf.usermodel.XWPFDocument", Array(in))
Return document
Catch
fx.Msgbox(Null,LastException.Message,"Error")
Log(LastException.Message)
End Try
End Sub
I Have this error: java.lang.ClassNotFoundException: org.apache$poi xwpf$usermodel$XWPFDocument
I'm using jdk 11.0.1 but i have the same error using 1.8.0_141
Libraries JPOI ( 5.0 ) and XLUtils ( 1.14) are checked. B4j version is 9.0
I also add the dependencies for poi 5.0 into libraries and also into addlibraries.
Searching with browser I find that may be ooxml jar not updated. If yes how to repair ?
What can I do ?
Thanks for your help.
Regards
S.Viola
Last edited: