aspose file tools*
The moose likes Beginning Java and the fly likes Windows Text Editor Advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Windows Text Editor Advice " Watch "Windows Text Editor Advice " New topic
Author

Windows Text Editor Advice

John Iobst
Greenhorn

Joined: Mar 24, 2006
Posts: 3
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�


"Semper Fortis" - Always Courageous
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
When saving from Notepad change the "Save as File Type" from txt to all files.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Mar 24, 2006
Posts: 3
Tried That but still got the .TXT

Any advice on freeware text editors?
John Iobst
Greenhorn

Joined: Mar 24, 2006
Posts: 3
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by John Iobst:

This must be the fastest and friendliest place on the web



Thanks, we try!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Windows Text Editor Advice