Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-03-2004, 05:14 AM   #1
Member (8 bit)
 
oisin's Avatar
 
Join Date: Jul 2000
Location: URup
Posts: 152
Boom Compiling Java from Notepad

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
oisin is offline   Reply With Quote
Old 03-03-2004, 06:10 AM   #2
aym
Registered User
 
aym's Avatar
 
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/
aym is offline   Reply With Quote
Old 03-03-2004, 10:25 AM   #3
Member (7 bit)
 
Join Date: Sep 2003
Posts: 90
are you using "javac .java" and "java "?

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
AerynSedai is offline   Reply With Quote
Old 03-09-2004, 11:50 AM   #4
Member (9 bit)
 
ThePoor's Avatar
 
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
ThePoor is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:48 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2