You cannot create an Excel document without third-party JARs
.
This is because Excel is owned and copyrighted by Microsoft (R). They have APIs and people have applied this to Java, one of which is JExcelApi .
JExcelApi does not support password protection. For this, I only know commercially available products, such as Aspose.Total for Java . However, keep in mind that with Java you can easily get around password protection: (see here) . It might be worth rethinking how you make password protection :)
Summary of responses: Java itself does not have a built-in way to manage Excel; you will need to use an external library.
source share