Having issues with running Java application with tzdb.dat file

776 views Asked by At

I am using Java JDK 20.0.1 on IntelliJ 2023-1.

I am trying to run a Java application.

I get a very generic error about the tzdb.dat file.

The error is:

Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Copying resources... [JavaDesktopSudokuDemo]
Parsing java… [JavaDesktopSudokuDemo]
java: C:\Program Files\Java\jdk-20\lib\tzdb.dat <<<------
Checking dependencies… [JavaDesktopSudokuDemo]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'JavaDesktopSudokuDemo'
javac 20.0.1 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
27 Jun 2023 16:38 - Build completed with 1 error and 0 warnings in 1 sec, 173 ms

I tried to update the tzdb.dat file by directly downloading it from Oracle and by using tzupdater.jar. I've tried changing the file name to add .bak at the end, but that creates a file not found error.

0

There are 0 answers