This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What am I doing wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What am I doing wrong? " Watch "What am I doing wrong? " New topic

What am I doing wrong?

alfredo navarro

Joined: Sep 20, 2003
Posts: 2
I'm new at this and the only thing I how to do is "hello World' and stuff like that.
Since yesterday every time I try to save a file. To later "compile" it will not show in the file.
This is what i did

public class app

public static void main (String [] args)


System.out.println("hello world");



Then I save teh fiel as follows:

save as: app. ""java""
save as type: ""All files""

When I try to compile the file is there but as app.txt and only in windows will show not on DOS (command prompt). In DOS it will not show as app.txt or

Thank you in advance to all of you for all the ehlp I have got in the past months
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
If you put the entire filename in quotes: "", the editor will not add .txt to the end of the filename.

If you can find the file in an open window of your editor, right click on the fileame, then select properties. There will be a field caled location. Write it down.

Now open an MS-DOS window and type cd location, using the location you wrote down. Now type dir and you will see your program.
[ August 28, 2004: Message edited by: Mike Gershman ]

Mike Gershman
SCJP 1.4, SCWCD in process
Don't get me started about those stupid light bulbs.
subject: What am I doing wrong?
Similar Threads
java website application
What am I doing worng??????
Java beginning
Mock exam questions section 3
I want to import single-spaced code