Why can't I compile my codes?

I downloaded JDK 1.3 together with textpad. why is it that whenever I want to compile my codes, the following error message appears.

javac: invalid argument: C:\izal\software design\practice\FrameWithPanel.txt
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -O                        Optimize; may hinder debugging or enlarge class file
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -target <release>         Generate class files for specific VM version


Tool completed with exit code 2

By the way, I'm using Windows ME.
heuerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
barrelConnect With a Mentor Commented:
Try to compile a java file instead of a text file, so start with renaming the FrameWithPanel.txt to FrameWithPanel.java.

BArrel
0
 
mohan_sekarCommented:
Dear heuer,

          You should first configure your TextPad editor by setting the class path to like c:\jdk1.2\lib;

bye
0
 
heuerAuthor Commented:
and how do i go about doing that?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rjackmanCommented:
hi
C:\izal\software design\practice\FrameWithPanel.txt
is this the file u are trying to compile?
then pls chage the .txt extension to .java
and try
javac urfilename.java optionsifatall there
chheers
RJ
0
 
objectsCommented:
mohan_sekar,

read the ee guidelines about proposing answers.
heuer has a lot better chance of solving their problem if the question is unlocked.

0
 
heuerAuthor Commented:
mohan_sekar sorry man, yours didn't work. barrel's solution is the right one. I made a 'stupid' mistake of ending my file with a .txt instead of .java
0
 
heuerAuthor Commented:
thanks barrel. Anyway, I've noticed my silly mistake even before you posted your comments. Thanks again.

cheers :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.