This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
My IT background is in Networking �Zero Programming Experience� due to some restructuring at work I need to gain some java proficiency. I bought �Head First Java� and �Thinking in Java� and downloaded and installed jdk1.5.0_06 and added the bin folder to the path. I am on a Windows XP pro machine and need a recommendation for a free text editor, or how to get Notepad to save a file without adding the .txt to the filename.
Thanks in advance for any help you can off the �Very Green Horn�
To answer your question directly (because I aim to please ,) put quotes around the filename like this "Foo.java" when you type it in.
Now that I've said that: don't use NotePad! A good programmer's editor is worth its weight in gold, and NotePad ain't one. A good programmer's editor can format your source; highlight different parts of the code in different colors so you know which words are keywords, which are comments, etc; find and replace text flexibly; compile your code with javac when you push one button, etc.
There are many, many choices. One very simple one is JPad. I'm sure other folks will chime in with their preferences.
The next tier up from simple text editors are the Integrated Development Environments like Eclipse. These have many more powerful features, but they do take a little time to learn.
Originally posted by John Iobst: how to get Notepad to save a file without adding the .txt to the filename.
In the "Save As" dialog click the "Save As Type" dropdown and select "All Files" instead of the default "Text Documents (*.txt)". Don't forget to remove the .txt from the filename.
If you feel adventurous you can always download Eclipse � however reasonably speaking you should hold off until you have wrapped your head around the concepts of classpath, JARs, package names etc. Once you do embark down that road, Dave Carlson�sEclipse Distilled will come in handy.
While I use Eclipse for large projects, I don't think you need the learning curve of an IDE on top of the language learning curve. I use JEdit for many tasks. It's simple enough not to get in your way and has tons of plugins so you can add functionality as needed.