Hello everyone,
I’m experiencing an issue with Eclipse where it closes automatically when I use ‘System.out.println’.
Environment :
Eclipse Version: eclipse 2024-03 is the latest version of Eclipse today I reinstalled it.
I downloaded Eclipse from the official Eclipse Foundation website at Eclipse Downloads | The Eclipse Foundation.
JDK version : java 22.0.1 2024-04-16
Java™ SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot™ 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
Operating System: Ubuntu Ubuntu 22.04.4 LTS
Problem Description: Whenever I run a simple Java program that uses System.out.println. Eclipse hung and closed automatically without getting any error messages.
What I’ve Tried:
- Checked the console for any error messages before Eclipse closes, but didn’t find any.
- Reinstalled Eclipse.
- Updated to the latest JDK version.
- Created a new workspace in Eclipse.
- Checked system resources (CPU, memory usage) while running the program.
Additional Information: - Other simple programs without System.out.println run fine.
- I have no plugins installed other than the default ones.
- when I use vs code or intellij or cmd prompt it runs normally and I get the output
Questions:
- Has anyone else experienced this issue with Eclipse?
- Can I check any log files to understand why Eclipse is crashing?
- Could this be related to a specific configuration in Eclipse or my system setup?
- Any suggestions on how to fix or further troubleshoot this issue?
Thank you in advance for your help!