Wiggis said:1.6 has been released, i believe you can now get 1.7 but it may still be pre-beta.
Also, nowadays there is no real need to bother learning java on the command line. Once you have a decent IDE you will never go back to it. For my money Eclipse is the best of the free IDE's, if you use the setup wizard then its pretty straight forward to start using right away. Point it to your java install and it works the rest out for itself.
Just make sure that Eclipse knows the name of the class that contains the main method and you should be good to go.
Also, I would really learn what a class is and the basics of what OO (Object Orientation) is before starting to actaully do any coding.
You don't have to name your file the same as you name your class but it is preffered as that way its easier to navigate through your code.
Good luck with it man, I remember what it was like to learn OO for the first time.
Install one? Eclipse is highly cross platform so unless, again, you're throwing a spanner in the works by talking about embedded development, then I can't see it being a problem.Visage said:And what happens when you move to a system that doesnt have an IDE?
Agreed, if you're still a novice programmer then it may worth avoid IDE's for a couple months. But sooner or later executing compilation batch files will become tiresome and they'll move on over to the dark sidePinkPig said:For the tiniest of programs, using the command prompt is the best idea. Most IDEs are astonishingly full-featured and incredibly complicated to a novice.
Hell yes, a very good point. Exception handling quite simply rocks and will make your life a lot simpler. C++ does have it but it just isn't as good as the exception handling you get in the managed world of Java or .NET.manic_man said:IOh, also, from the very start.... make use of the try/catch error handling structure, its one of Java's true strengths an again, my poor initial knowledge led me to not make use of it for far too long....
Visage said:And what happens when you move to a system that doesnt have an IDE?
Its a bugbear of mine that a lot of developers straight out of uni havent got the first clue about developing software in environments such as unix/linux. IDEs can have great productivity features, but when problem solving there's nothing better than having a decent knowledge of whats going on 'under the covers'
manic_man said:You have used C++ in the past so have a good inkling of the basics of classes etc but C++ is (arguably) not truly OO. It was a concept "tacked" onto C++ when it became popular.
Una said:Sure, I just fire up vim for small bits of code... Don't see the point in loading a bloated java ide if your only writing a couple of class files. If your doing a big project something like IntelliJ is great but not all the time. Its well worth learning how to develop on the command line.
manic_man said:You have used C++ in the past so have a good inkling of the basics of classes etc but C++ is (arguably) not truly OO. It was a concept "tacked" onto C++ when it became popular.
Una said:Or hmm, has that error message made all your code lower case.. Java is case sensive you need String[] for a start, likewise System.out.println();