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: 2
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: 31864
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: 44
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: 31864
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 110 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 messageGo to next 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.
Re: Hello world will not work, Failed to init ct.sym [message #1837854 is a reply to message #1835693] Mon, 08 February 2021 16:32 Go to previous messageGo to next message
Svjatoslavs Isajevs is currently offline Svjatoslavs IsajevsFriend
Messages: 1
Registered: February 2021
Junior Member
I am a complete noob, but this fixed problem for me:

window-preferences-java(dropdown)-installed JREs(dropdown)-execution environments

there i clicked on last execution environment (JavaSE-15)
then in Compatible JREs I put a check mark at jre
then apply and close
done :)

index.php/fa/39965/0/
  • Attachment: Untitled.png
    (Size: 71.27KB, Downloaded 2878 times)
Re: Hello world will not work, Failed to init ct.sym [message #1838284 is a reply to message #1836316] Sat, 20 February 2021 13:12 Go to previous messageGo to next message
Michael Knort is currently offline Michael KnortFriend
Messages: 4
Registered: February 2021
Junior Member
What about uninstalling and then reinstalling, it sounds stupid but it's effective.
Re: Hello world will not work, Failed to init ct.sym [message #1838606 is a reply to message #1836316] Tue, 02 March 2021 10:58 Go to previous messageGo to next message
Shakthi PJ is currently offline Shakthi PJFriend
Messages: 1
Registered: March 2021
Junior Member
Hi ,

Did you find the fix. I am facing the same trouble
Re: Hello world will not work, Failed to init ct.sym [message #1838631 is a reply to message #1838606] Tue, 02 March 2021 17:17 Go to previous message
Steve Aimes is currently offline Steve AimesFriend
Messages: 2
Registered: December 2020
Junior Member
I gave up on Java a long time ago.
Previous Topic:Unable to install Glassfish plugin on Eclipse Photon & Oxygen
Next Topic:I need help with displaying messages.
Goto Forum:
  


Current Time: Mon May 10 19:59:51 GMT 2021

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

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

Back to the top