Skip to main content



      Home
Home » Newcomers » Newcomers » Hello World(Hello World tutorial does not work)
Hello World [message #1656397] Sat, 07 March 2015 08:44 Go to next message
Eclipse UserFriend
Hello eclipse user. I'm Boris from Germany and would like to learn eclipse (JAVA). Since I have dirctly a problem with the first tutorial I would like to ask you for help.

I have created the project and this is my program:
public class TESTWORLD {

public static void main(String[] args) {
// TODO Auto-generated method stub

}
System.out.println("Hello world!");
}
When I compile the program the following message appears:

Errors exist in requires projects:
Hello World
Proceed with launch?

When I proceed the following message appears within the compiler:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

at TESTWORLD.main(TESTWORLD.java:4)

Can someone help? Thank you!
Best regards,

Boris
Re: Hello World [message #1659853 is a reply to message #1656397] Sun, 08 March 2015 21:09 Go to previous messageGo to next message
Eclipse UserFriend
Boris,

Use something like Stackoverflow for beginner Java questions. This form
is for asking questions about Eclipse itself. Note that your print
statement is outside the curly braces for the main method...


On 09/03/2015 12:37 AM, Boris Ender wrote:
> Hello eclipse user. I'm Boris from Germany and would like to learn
> eclipse (JAVA). Since I have dirctly a problem with the first tutorial
> I would like to ask you for help.
>
> I have created the project and this is my program:
> public class TESTWORLD {
>
> public static void main(String[] args) {
> // TODO Auto-generated method stub
>
> }
> System.out.println("Hello world!");
> }
> When I compile the program the following message appears:
>
> Errors exist in requires projects:
> Hello World
> Proceed with launch?
>
> When I proceed the following message appears within the compiler:
>
> Exception in thread "main" java.lang.Error: Unresolved compilation
> problem:
> at TESTWORLD.main(TESTWORLD.java:4)
>
> Can someone help? Thank you!
> Best regards,
>
> Boris
>
Re: Hello World [message #1661568 is a reply to message #1659853] Mon, 09 March 2015 13:46 Go to previous message
Eclipse UserFriend
Thank you for the initial support! Figured out my damn failure. I'll use stackoverflow by now....

Boris Razz
Previous Topic:Multiple instalations or multiple perspectives?
Next Topic:Eclipse issue in compare with head revision
Goto Forum:
  


Current Time: Thu Jul 17 07:39:13 EDT 2025

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

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

Back to the top