• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Windows Text Editor Advice

 
John Iobst
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings All,

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�
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When saving from Notepad change the "Save as File Type" from txt to all files.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

Welcome to JavaRanch!

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.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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�s Eclipse Distilled will come in handy.

I know that "Thinking in Java" is fairly popular � but I can�t help but wonder if after "Head First Java" Jeff Langr�s Agile Java(TM) : Crafting Code with Test-Driven Development (Robert C. Martin Series) might not be a better choice.
[ March 24, 2006: Message edited by: Peer Reynders ]
 
John Iobst
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried That but still got the .TXT

Any advice on freeware text editors?
 
John Iobst
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest,

Thank you the "..." around the file name did the trick

This must be the fastest and friendliest place on the web
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Iobst:

This must be the fastest and friendliest place on the web



Thanks, we try!
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Iobst:
Any advice on freeware text editors?

For Mac (only): TextWrangler
For PC (only): Crimson Editor

These are both free, simple editors -- not big, complicated IDEs.

(As a Mac user, I haven't actually tried Crimson Editor, but it seems to be a popular choice for this level of functionality. I love TextWrangler.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic