Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What am I doing wrong?

 
alfredo navarro
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 app.java

Thank you in advance to all of you for all the ehlp I have got in the past months
 
Mike Gershman
Ranch Hand
Posts: 1272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you put the entire filename in quotes: "myApp.java", 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic