Assuming that you installed GanttProject, not some other software:
- Make sure that you have Java Runtime. We recommend using Java 8 from Oracle, however if you have any concerns about the license, you can download Java 8 or Java 11 from other vendors, e.g. from Amazon
- If you’re on macOS, you may want to read this knowledge base article
- If you’re on Windows, you may want to read this and this