Basic Java #2 - "Hello World"
Loading...
164
views
Loading...
Uploader Comments (SynforgeGames)
see all
All Comments (17)
-
@SynforgeGames Yes i did recompile it, and since it works on eclipse i don't believe there is any typo. Oh well don't worry i will just have to use eclipse.
-
@AmarathOnline String needs to be capatilized
-
this is not working:
public class HelloWorld{
public static void main(string args[]){
system.out.println("HelloWorld
"); //prints stuff out }
}
-
I need help if your there can you go on skype, p.s This is GameTutorialsMaker1
Loading...
Does not work, i have compliled it and when i type:
java HelloWorld
it gives me an error
AmarathOnline 3 weeks ago
@AmarathOnline what did the error say?
System also needs to be capatilized. When you're following the tutorial you have to watch out for case because java is very strict on case
SynforgeGames 3 weeks ago
@SynforgeGames I have no idea what was happening so i downloaded Eclipse and it somehow works in there but only when i changed the version of java i use.
AmarathOnline 3 weeks ago
@AmarathOnline it shouldn't make a difference whether you use eclipse or not. Tell me what the error was or look it up so I can tell you what you did wrong. Did you update java like it my first video? I can't imagine why a different version would make a difference since the version I use is one of the newest versions
SynforgeGames 3 weeks ago
@SynforgeGames I can't remember what it said something like can't find main variable or something. I don't know why i looked it up and i can't find any answers but there are other people having the problem.
AmarathOnline 3 weeks ago
@AmarathOnline that's weird, according to that error I would say you made a typo when copying the definition to your main method but I don't see any typos other than the ones I mentioned earlier. Did you try recompiling it with String & System capitalized?
SynforgeGames 3 weeks ago