I am just starting to learn java and my supervisor has told me to go
away and decide which environment to use to program in java. What
exactly is an environment and what does it matter which one I choose?
He seemed to suggest that some had big advantages over others etc. I am
going to be writing a couple of applets and hopefully a java
application as well.
Thanks
He probably means an IDE - Integrated Development Environment. Typically
this is an editor (a place to type your code), a debugger (to get logic
errors out of your code), and a compiler (I hope you already know what that
is). And most IDEs offer a lot of extras like JUnit integration (to create
tests on parts of your code), refactoring (improving the design and
readability of your code after it's written), code completion (the IDE
helps you by giving lists of possibilities), etc.
It may sound like all these things are a great help - and in fact they are,
for experienced programmers. For beginners, I (and many others) suggest
you use only a good text editor, no IDE. You can justify this to your
supervisor with 2 main arguments: 1. learning an IDE is non-trivial, and
should not be combined with learning a language; 2. when learning it's
better to find things out for yourself, and not have the IDE point out what
you did wrong. For more arguments, have a look at this group's archives,
this question comes up a lot.
For a good text editor, I suggest textpad:
http://www.textpad.com/
If you still want an IDE, have a look at these:
http://www.eclipse.org/
http://java.sun.com/j2se/1.5.0/download.jsp (netBeans)
http://www.bluej.org/