Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Hello World(Hello World tutorial does not work)
Hello World [message #1656397] Sat, 07 March 2015 13:44 Go to next message
Boris Ender is currently offline Boris EnderFriend
Messages: 2
Registered: March 2015
Junior Member
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] Mon, 09 March 2015 01:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Hello World [message #1661568 is a reply to message #1659853] Mon, 09 March 2015 17:46 Go to previous message
Boris Ender is currently offline Boris EnderFriend
Messages: 2
Registered: March 2015
Junior Member
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: Tue Apr 23 15:47:51 GMT 2024

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

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

Back to the top