Bug 570510 - Projects will not build. "Failed to init ct.sym" error
Summary: Projects will not build. "Failed to init ct.sym" error
Status: CLOSED DUPLICATE of bug 569513
Alias: None
Product: Justj
Classification: Technology
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 08:22 EST by Aditya Painuly CLA
Modified: 2021-01-20 09:49 EST (History)
3 users (show)

See Also:


Attachments
Screen recording demonstrating the bug (4.30 MB, video/mp4)
2021-01-20 08:22 EST, Aditya Painuly CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Painuly CLA 2021-01-20 08:22:39 EST
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.
Comment 1 Andrey Loskutov CLA 2021-01-20 08:40:43 EST
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).
Comment 2 Ed Merks CLA 2021-01-20 09:49:29 EST
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 ***