The libraries I mentioned help with that on JSE. It's highly likely that they use classes that are not present in JME, though, but looking at their code may still be helpful.
Personally, I'd look into getting a proper
doc viewer app that supports Word, Excel and PDF files instead of trying to do it in
Java. It seems rather uncertain whether such an effort will be successful.