Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Hello world will not work, Failed to init ct.sym(First time trying Java, Please help)
Hello world will not work, Failed to init ct.sym [message #1835693] Thu, 10 December 2020 14:38 Go to next message
Steve Aimes is currently offline Steve AimesFriend
Messages: 1
Registered: December 2020
Junior Member
index.php/fa/39518/0/index.php/fa/39518/0/Hi,

I'm very very new to Java, and I am finding the whole experience hard to understand.

For starters, I was trying to run the hello world application on Eclipse. This is a fresh install of the latest Java 15, followed by the latest install of Eclipse 2020-09 (4.17.0).

As soon as I try to create the HelloWorld project following the built-in tutorial, I am confronted with the following error.

The project was not built due to "Failed to init ct.sym for C:\Users\Owner\AppData\Local\Temp\eoi6CE0.tmp\plugins\org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_14.0.2.v20200815-0932\jre\lib\jrt-fs.jar". Fix the problem, then try refreshing this project and building it since it may be inconsistent


This error message happens as soon as I create the project (Step 1). I haven't even entered in any code yet.

Thanks

index.php/fa/39518/0/index.php/fa/39518/0/
Re: Hello world will not work, Failed to init ct.sym [message #1835731 is a reply to message #1835693] Fri, 11 December 2020 05:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31702
Registered: July 2009
Senior Member
Is there a -vm option in your eclipse.ini? What does it point at?

What is in your Window -> Preferences -> Java -> Installed JVMs? Are you referencing your Java 15 installation there?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Hello world will not work, Failed to init ct.sym [message #1835940 is a reply to message #1835731] Wed, 16 December 2020 21:56 Go to previous messageGo to next message
Phil Freihofner is currently offline Phil FreihofnerFriend
Messages: 42
Registered: May 2010
Member
The following fixed the issue for me.

- Installed OpenJDK 15.0.1 on my computer.
- In Window/Preferences/Java/Installed JREs, I added a link to the new Java version (and named it "openjdk-15" to help identify it). I unchecked the existing jre and selected the newly installed.
- I started a NEW PROJECT, and for the JRE, made sure to select the new default jre.
- I copied over the source code of the failing project into the new project.

There may be a way to reconfigure a project that fails in this manner, rather than having to start anew. But putting the new openjdk-15 library on the module path with the "Build Path" configuration tool didn't help. It was only when I started a new project and made sure to specify the newly installed OpenJDK 15 that I was able to get my project to run.

I'm just another Eclipse User, and there is likely another way to fix this or a better explanation of what went wrong. But I thought it would be worth sharing the solution I found for anyone who also runs into this.
Re: Hello world will not work, Failed to init ct.sym [message #1835949 is a reply to message #1835940] Thu, 17 December 2020 04:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31702
Registered: July 2009
Senior Member
You can use Properties... from the context menu of a Java project and go to the Java Build Path. On the Libraries tab, you can use Edit... when selecting the JRE System Library entries. Here you have various ways of choosing/specifying the JRE. I.e., either by the mapping you have between your installed JREs and the Execution Environments (preferences nested under the Installed JREs preferences) or by choosing a very specific one.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Hello world will not work, Failed to init ct.sym [message #1836316 is a reply to message #1835731] Mon, 28 December 2020 23:52 Go to previous messageGo to next message
Nazish Basir is currently offline Nazish BasirFriend
Messages: 1
Registered: December 2020
Junior Member
Ed Merks wrote on Fri, 11 December 2020 05:10
Is there a -vm option in your eclipse.ini? What does it point at?

What is in your Window -> Preferences -> Java -> Installed JVMs? Are you referencing your Java 15 installation there?



Dear Ed Merks

I have Installed jdk 15.0.1
Then Installed Eclipse 2020 12
and facing same problem

and when I close the IDE and start it again it wont start and shows a white screen with JVM terminated Exit code = 2 and lots of other lines

  • Attachment: 1.png
    (Size: 49.23KB, Downloaded 25 times)
Re: Hello world will not work, Failed to init ct.sym [message #1836929 is a reply to message #1836316] Tue, 19 January 2021 05:05 Go to previous message
Pallavi Walhekar is currently offline Pallavi WalhekarFriend
Messages: 1
Registered: January 2021
Junior Member
The workaround is the following: open the project properties by right-clicking on it in the package explorer. Go to the Java Compiler section and uncheck the Use '--release' option box. Select Yes to rebuild the project.
Previous Topic:Opening an XML file launches another copy of Eclipse
Next Topic:Eclipse is damaged while installing RTC602
Goto Forum:
  


Current Time: Tue Jan 19 22:49:27 GMT 2021

Powered by FUDForum. Page generated in 0.02600 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top