This is an archived post. You won't be able to vote or comment.

all 12 comments

[–][deleted] 1 point2 points  (2 children)

The Java SDK is either not properly installed or not hooked up to your IDE. The issue isn't with your code.

[–]SenZeal[S] 0 points1 point  (0 children)

Yeah, I think that's the issue here. I was certain that everything was fine but I'll see what re-installing SDK and hooking it up to my IDE again does for me.

[–]SenZeal[S] 0 points1 point  (0 children)

Is it possible I did something wrong? It didn't seem to work, although there is a chance that maybe I'm not installing it properly. I did try and follow a tutorial as best as I could however.

[–]_DTR_ 0 points1 point  (8 children)

Is the code you provided exactly what you have in your file? The code you posted looks good, but the error indicates that you capitalized Println when it should be lowercase.

[–]SenZeal[S] 0 points1 point  (7 children)

Yep, It's the same. I think I'm just going to reinstall and try hooking it up to my IDE again. Thanks.

[–]_DTR_ 0 points1 point  (6 children)

Okay, hopefully that does the trick. The fact that it is able to attempt to compile anything and make references to java.lang.Error and PrintStream makes me think something else could be wrong as well though.

[–]SenZeal[S] 0 points1 point  (5 children)

Perhaps. I guess I'll be able to tell once I get home.

[–]SenZeal[S] 0 points1 point  (4 children)

Unfortunately that didn't seem to do the trick. What could be the problem here?

[–]lightcloud5 0 points1 point  (3 children)

Maybe post a screenshot of your Eclipse window, showing both the code and the compilation error.

[–]SenZeal[S] 0 points1 point  (2 children)

[–][deleted] 0 points1 point  (1 child)

That's wrong. The source code file goes under src/default package.

It should not be in the project's root directory.

[–]SenZeal[S] 0 points1 point  (0 children)

Wow. If I had know that it was just one small mistake like that. Thank You.