|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Jul 2000
Location: URup
Posts: 152
|
Hi
I am using Windows ME have already set the class path. If I download a file from the Java Tutorial and compile it, the program works well. However if I copy the code into notepad and save it as a .java the file cannot be read or I get an error that won't allow me compile. I remember there is something to do with " " when saving the name but it doesn't help Can anyone please advise me quickly as I need to write a prog by Thursday Night. Cheers
|
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
maybe notepad is saving the file as prog.java.txt, when you save the file, select "all files (*.*)" from the dropdown menu below the text field where you type the filename.
Or you can use a better editor, like JCreator, it's free, and makes it a lot easier to program: http://www.jcreator.com/ |
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Sep 2003
Posts: 90
|
are you using "javac
is it failing on "javac" or "java"? what is the error? does the file end with an empty line? some compilers require this and gui's tend to do stuff behind your back. it could be the ".txt" extension being added, also. i have never used windows millennium. AS |
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Oct 2003
Location: NorthEastern USA
Posts: 369
|
when you save the file you need to put "filename.java" otherwise it can't be read by the compiler
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|