India income tax returns filing utilities are created using Java 8 SDK and use Java FX. These can only be run using Java 8 as Java FX was bundled with it. Newer versions of Java from Oracle do not bundle Java Fx anymore. Therefore, when running the Java income tax utilities, the following error (in red) would appear.
java -jar ITR-1_AY202021_PR2.jar <enter>
Error: Could not find or load main class com.itd.efiling.offline.common.player.ctrl.ThreeRedLightsIlluminate
To set up the Java 8 version as the default Java environment in Fedora Linux, open a linux terminal and run the following command and select Java 8.
sudo update-alternatives --config java <enter>
To install openjfx in Fedora Linux, do following
sudo dnf install java-1.8.0-openjdk-openjfx <enter>
After this, run the income tax java utility again and see if the error went away.
2 thoughts on “Error running Income Tax India ITR utility on Fedora 32 Linux”
The above solution did not work for me. I use linux mint and I was able to get the ITR Utility to run by following the below steps:
1. Download the supported Java Version for the utility. The compatibility details are published on the e-filing website here: https://www.incometaxindiaefiling.gov.in/eFiling/Portal/StaticPDF/How_to_use_ITR_Utilities_Other.pdf
2. Install the Java package on your system. Ensure when you run java –version in the terminal it prints something like this:
java version “1.8.0_202”
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
3. Alternatively you can download the tar.gz file and unzip in your home directory. Browse into the bin directory and then run this in the terminal ./java –version. This should print the above output.
4. Now to run the ITR Jar utility, type the following in the terminal
java -jar /path/to/ITR/Jar/file.jar
Thanks. Happy to know you did it with Oracle Java. I did not want to use Oracle Java 1.8, therefore, used zulu.
Comments are closed.