Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » I feel so embarrassed....(simple code not working)
I feel so embarrassed.... [message #1705310] Thu, 13 August 2015 16:18 Go to next message
Alexander Sjostrom is currently offline Alexander SjostromFriend
Messages: 3
Registered: August 2015
Junior Member
Hey! I am new to Java and new to eclipse.

I heard that eclipse is awesome for java programming so i wanted to try it out.
So first thing i started to follow a simple tutorial on youtube. Derek Banas tutorial series on Java.

Right off the bat the most simple code in the universe fails to work... I Can't figure out why. index.php/fa/22893/0/

Sorry for being the biggest noob in here... But I can't get stuck on something as stupid as this... help please!

[Updated on: Thu, 13 August 2015 18:50]

Report message to a moderator

Re: I feel so embarrassed.... [message #1705323 is a reply to message #1705310] Thu, 13 August 2015 18:51 Go to previous messageGo to next message
Alexander Sjostrom is currently offline Alexander SjostromFriend
Messages: 3
Registered: August 2015
Junior Member
this is the error messages i get in the problems tab:
Description Resource Path Location Type
The project cannot be built until build path errors are resolved sample java Unknown Java Problem
And:
Description Resource Path Location Type
Unbound classpath container: 'JRE System Library [OSGi/Minimum-1.2]' in project 'sample java' sample java Build path Build Path Problem
Re: I feel so embarrassed.... [message #1705333 is a reply to message #1705310] Thu, 13 August 2015 19:49 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/13/2015 11:49 AM, Alexander Sjostrom wrote:
> Hey! I am new to Java and new to eclipse.
>
> I heard that eclipse is awesome for java programming so i wanted to try it out.
> So first thing i started to follow a simple tutorial on youtube. Derek Banas tutorial series on Java.
>
> Right off the bat the most simple code in the universe fails to work... I Can't figure out why.
>
> Sorry for being the biggest noob in here... But I can't get stuck on something as stupid as this... help please!
>

Alexander,

You need to tell Eclipse where your JDK is. Window -> Preferences ->
Java -> Installed JREs.

After that, if it's still not working ('cause you should have done that
first thing before creating the project), if you still have trouble,
then right-click the project (sample java), choose Build Path ->
Configure Build Path -> Libraries -> Add Library... -> JRE System
Library. That should do it.


Hope this helps.
Re: I feel so embarrassed.... [message #1705335 is a reply to message #1705333] Thu, 13 August 2015 20:12 Go to previous messageGo to next message
Alexander Sjostrom is currently offline Alexander SjostromFriend
Messages: 3
Registered: August 2015
Junior Member
Didn't work. But might have helped. Depends. I've already told eclipse where my jdk is. index.php/fa/22896/0/

Maybe that particular jre won't work? I have eclipse indigo if that makes a difference... I tried configuring the build path and it looks like this now: index.php/fa/22897/0/

No luck so far

[Updated on: Thu, 13 August 2015 20:13]

Report message to a moderator

Re: I feel so embarrassed.... [message #1705336 is a reply to message #1705335] Thu, 13 August 2015 20:24 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/13/2015 02:12 PM, Alexander Sjostrom wrote:
> Didn't work. But might have helped. Depends. I've already told eclipse
> where my jdk is.
> Maybe that particular jre won't work? I have eclipse indigo if that
> makes a difference... I tried configuring the build path and it looks
> like this now:
> No luck so far

Did you check your Build Path Libraries to ensure the JRE System Library
is listed for the project?
Previous Topic:Eclipse - Resource Hog?
Next Topic:Java Error
Goto Forum:
  


Current Time: Thu Apr 25 03:45:48 GMT 2024

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

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

Back to the top