HELP plz.

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
ch1nese
Posts: 1
Joined: Tue Oct 28, 2003 2:58 am

HELP plz.

Post by ch1nese »

hello anyone out there
i have d/led txtpd b4 on previous computers before and have had no problems. however, i got a new comp and i cannot run simple java programs that i create for school classes.

my comp is sony vaio windows xp home 2.4ghrtz 70gigHD, 512 ram......

i keep getting this error when i try to compile:

javac: invalid flag: C:\j2sdk1.4.2_01\ztextpad\test.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
-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
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options

Tool completed with exit code 2



can anyone tell me what this means??
thanks in advance
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

java source files must have the extension .java, not .txt
Post Reply