0

I created an excel file using POI but now I need to open it using the default .xslx app (MS Excel in my case). I want to specify that I don't need to parse it or read its contents, but just open it in MS Excel.

1 Answer 1

1

I figured it out after a while, putting this here in case anyone googles it and this page comes up :

try {
    File excelFile = new File(filePath);
    Desktop.getDesktop().open(excelFile);
} catch (IOException e) {
    e.printStackTrace();
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.