Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Is there any forum where to consult error messages from Eclipse?(Need to find good cause for errors thrown from Eclipse.)
icon4.gif  Is there any forum where to consult error messages from Eclipse? [message #1072305] Mon, 22 July 2013 13:48 Go to next message
Carlos Pratt is currently offline Carlos PrattFriend
Messages: 2
Registered: July 2013
Junior Member
Hello All,
Although I am not new to Java I am a complete newbie on Eclipse.
I followed the tutorial for the "Hello World" and instead of running I am getting errors from Eclipse that I want to be able to resolve.
I have not seen any forum for new comers to Eclipse on how to handle errors thrown by Eclipse.
I am sure that for experienced Eclipse users what I am getting is a simple problem to solve, but for a new user it seems to be a complete show stopper, I can't run a simple program that only uses this:
System.out.println("Hello World")
I know that using other editors and running it from a command line I can run it in less than 5 minutes.
Can someone direct me to the right forum?
I will give extensive detail when I get to the right place to ask.

In advance thank you very much for any help you can provide.

Carlos
Re: Is there any forum where to consult error messages from Eclipse? [message #1072324 is a reply to message #1072305] Mon, 22 July 2013 14:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26237
Registered: July 2009
Senior Member
Carlos,

You can use this forum. Some basic questions for you. Does the file
build correctly? The file is in a Java source folder of a Java project?


On 22/07/2013 4:06 PM, Carlos Pratt wrote:
> Hello All,
> Although I am not new to Java I am a complete newbie on Eclipse.
> I followed the tutorial for the "Hello World" and instead of running I
> am getting errors from Eclipse that I want to be able to resolve.
> I have not seen any forum for new comers to Eclipse on how to handle
> errors thrown by Eclipse.
> I am sure that for experienced Eclipse users what I am getting is a
> simple problem to solve, but for a new user it seems to be a complete
> show stopper, I can't run a simple program that only uses this:
> System.out.println("Hello World")
> I know that using other editors and running it from a command line I
> can run it in less than 5 minutes. Can someone direct me to the right
> forum? I will give extensive detail when I get to the right place to ask.
>
> In advance thank you very much for any help you can provide.
>
> Carlos
>
Re: Is there any forum where to consult error messages from Eclipse? [message #1072563 is a reply to message #1072324] Tue, 23 July 2013 03:31 Go to previous messageGo to next message
Carlos Pratt is currently offline Carlos PrattFriend
Messages: 2
Registered: July 2013
Junior Member
Ed,
First, thank you for replying so quickly.
Let me try to answer your two questions:
Q1: Does the file build correctly?
A1: I am sure is not, why? That is my question.

Q2: The file is in a Java source folder of a Java project?
A2: I believe it is in a Java Source folder. On the package explorer I can see the next path:
Hello World -> src->default package->HelloWorld.java

The error I am getting when trying to run is:
"Could not find or load main class"

In my humble opinion it looks like I got a configuration problem, I just have not clue where to look and fix the problem.

Once again thank you and any help will be greatly appreciated.

Carlos
Re: Is there any forum where to consult error messages from Eclipse? [message #1072626 is a reply to message #1072563] Tue, 23 July 2013 06:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26237
Registered: July 2009
Senior Member
Carlos,

Comments below.

On 23/07/2013 5:31 AM, Carlos Pratt wrote:
> Ed,
> First, thank you for replying so quickly.
> Let me try to answer your two questions:
> Q1: Does the file build correctly?
> A1: I am sure is not, why? That is my question.
Without knowing your setup, it's hard to say. Perhaps you don't have an
appropriate JRE configured. Perhaps the file isn't in a source folder
that's compiled by JDT. Perhaps you don't have auto build enabled; it
should be enabled by default.
>
> Q2: The file is in a Java source folder of a Java project?
> A2: I believe it is in a Java Source folder. On the package explorer I
> can see the next path:
> Hello World -> src->default package->HelloWorld.java
>
> The error I am getting when trying to run is:
> "Could not find or load main class"
You could try using "Show In -> Navigator" on the project and then
looking in that view to see if there is a bin folder and whether there
is a HelloWorld.class in this bin folder? If the compiled file isn't
there, that's definitely a problem.

If you deliberately make a syntax error in the file, does it show red
problem markers in the editor?

If you save such errors, do these error markers appear in the Problems view?
>
> In my humble opinion it looks like I got a configuration problem, I
> just have not clue where to look and fix the problem.
>
> Once again thank you and any help will be greatly appreciated.
>
> Carlos
>
Previous Topic:Intermittent hanging when editing java files in eclipse
Next Topic:Model of Android Concepts
Goto Forum:
  


Current Time: Fri Nov 28 18:41:43 GMT 2014

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

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