Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error - Java Developement(I hava a problem with the Eclipse Java Developement)
Error - Java Developement [message #1838892] Mon, 08 March 2021 11:27 Go to next message
Bella Jesse is currently offline Bella JesseFriend
Messages: 1
Registered: March 2021
Junior Member
Hello guys! I am completely new to all this... so yeah. I tried yesterday to write my first Java "Hello World" program. I entered the code and the error was "Error: Could not find or load main class program
Caused by: java.lang.ClassNotFoundException: program" The name of my class is program. I red here and found the solution to reopen Eclipse. That failed, my JVM was not up to date. I have Java Version 8 and JRE Version 1.8.281. I changed the JVM to my downloaded JDK 15 which I have manually downloaded. I could open Eclipse again but the errors still apears.

Oh, and I also changed the Eclipse encoding to UTF-8.

I would really appreciate if one of you guys could give me a tip how to solve it! Thanks <3
Re: Error - Java Developement [message #1838902 is a reply to message #1838892] Mon, 08 March 2021 20:44 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 401
Registered: August 2016
Senior Member
Hard to say without seeing your code. I would guess your code had errors, could not be compiled because of that, and you tried to run it all the same.

Errors are shown by error marker icons in the editor, and in the package or project explorer. By default, they show a white "x" in a red square. Check if there are any, and fix the errors indicated. Then try again.
Previous Topic:problema de intalacion
Next Topic:Working with C++ and Python in one Project
Goto Forum:

Current Time: Wed Aug 04 20:12:16 GMT 2021

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

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

Back to the top