I've just got the head first Java book and have been using IDE's to compile work so far, but all the SDKs on the Java website are a bit confusing!what file do i need to download, "java ee SDK5" is it, about 100mb?? what about this API DOCUMENTATION??? Why do i need that???
any suggestions/help would be much appreciated as I am all over the place...
You need access to the API documentation which Samuel has already told you about. Suggest you find the Java Tutorials. You can download Java here, but as Samuel has already told you, you most probably have already installed Java. Open a command prompt or terminal window and type both of the following.
java -version javac -version
If you get a sensible response (usually starting with 1.6) you are all right, if not, download JDK6 update 6, and follow the instructions, particularly the bit about updating the PATH variable.
Joined: May 16, 2008
Thanks guys... i know it sounds a bit peculiar using IDE's and then not having a clue about going back to basics, but as a part of going through the book head first java it says not to bother with any IDE's at all and stick to the SDK... also the java -version works fine but i am unable to execute the javac -version command? do i need to download the JDK 6 update 6?
Joined: Oct 13, 2005
If you are a newcomer to Java, then an IDE is liable to confuse you. If you get a sensible response from java -version and not from javac -version, then yes, you need to download and install JDK 6 update 6.
Get a decent text editor, not NotePad. On Linux try gedit or kate. On Windows google for NotePad2 and NotePad++. Make sure they have automatic indentation, convert tab to (4) spaces, and syntax highlighting all enabled, whichever sort you use.