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.
Hi: I am a new java learner. I intalled Windows 98 ( no Dos intalled) on my computer. Then I installed the JDK1.2.2, and set up the path. After writting the code using Notepad, I selected 'All Files' under the extenstion menu,and tried to save it as a *.java. However, the file remains as a text file, not a java file. Does anyone know how to fix this problem? Any insight would be highly appreciated. Thank u very much!
Hi Jane, Welcome to JavaRanch. I see you had some problem posting this as four instances resulted. It would be nice if you would delete the other three posts. You can do that by selecting each and clicking on the Edit/Delete icon and choosing Delete Post in the resulting window. Now for your problem, you'll be much better served to forget about notepad and try something like TextPad which is for writing programs. You can even launch the compiler directly from it. You can download it here
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I've deleted three of the posts. Jane please press the little button with an icon that looks like a letter and a pencil. You can then edit your post. Thanks [ May 06, 2003: Message edited by: Barry Gaunt ]
I have just done that on Windows ME and found the same problem if you do not speciy the file type explicitly as .java So if your class is MyClass, you must specify MyClass.java in the "filename" box. The other "extension" box should be "All Files". Hope that helps, -Barry
Joined: May 06, 2003
Many thanks for your help. I used the way leo posted, and solved the problem. thanks again everyone.