Open excel file after create it and save it using java

I’m using a desktop app java using swing

I’m using JFilechooser to chose the folder to save my excel file

this 1st part is working,the file is well saved. But I need to open it directly after saving it;

I’m using this code the file is found but not open

File xlsx = new File(path + ".xls");
        FileInputStream is = null;
        try {
            is = new FileInputStream(xlsx);
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        try {
            HSSFWorkbook workbook2 = new HSSFWorkbook(is);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        if (xlsx.isFile() && xlsx.exists()) {
            System.out.println("hurray! We've just opened a workbook");
        } else {
            System.out.println("Ahh! there was an error. Please make sure that the file path is correct.");
        }

I found this Desktop.getDesktop().open(file); but it works just if I put my file in desktop I need to open it anywhere I save it

thanks for helping