Community
Participate
Working Groups
Created attachment 285332 [details] Screen recording demonstrating the bug When creating a new project on some configurations, the project will not build and an error similar to the following is shown: "The project was not built due to "Failed to init ct.sym for C:\Users\Aditya\AppData\Local\Temp\eoiF5C1.tmp\plugins\org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_15.0.1.v20201027-0507\jre\lib\jrt-fs.jar". Fix the problem, then try refreshing this project and building it since it may be inconsistent" I'm reporting this issue for Eclipse IDE 2020-12 (4.18.0), build: 20201210-1552 on Windows 10 x64 19041.572 with Java SE JDK 15.0.1. This bug has also existed on previous versions and a workaround does exist as referenced here: https://www.pxdoc.fr/index.php/forum/87-issue-with-latest-release-of-eclipse-including-latest-jre The projects are created and built successfully after using the workaround. The bug is documented on a fresh installation of Eclipse with no preferences tweaked. Java appears to be correctly installed as java and javac commands work at the command prompt.
Please attach the error log. I assume the justj installation is incomplete and does not include ct.sym file, which is required by JDT to work if you specify - release option for compiler. I believe I've seen already such bug for justj, please check in bugzilla. Solution is either to use "fixed" justj or to start Eclipse with a valid JDK (not JRE, not Justj).
I'm quite sure this is caused by this problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=569513 I.e., from the path: C:\Users\Aditya\AppData\Local\Temp\eoiF5C1.tmp\plugins\org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_15.0.1.v20201027-0507\jre\lib\jrt-fs.jar I can see that it's using the JRE from the installer. I believe the eclipse.ini for this installation will not have a -vm option and the problem will go away if you exist the IDE and start run it again from the *.exe or your shortcut if you created one. So there is no need to reinstall. These versions of the installer have the fix: https://download.eclipse.org/justj/?file=oomph/products *** This bug has been marked as a duplicate of bug 569513 ***