[3089] in java-interest

home help back first fref pref prev next nref lref last post

Re: compiling in windows95

daemon@ATHENA.MIT.EDU (Thomas Ball)
Mon Oct 30 15:41:07 1995

Date: Mon, 30 Oct 1995 10:34:10 -0800
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: papyrus@name.net
Cc: java-interest@java.Eng.Sun.COM

FAQ writers: this is a recurring question -- can you add it to your lists?

>  I can't seem to compile a Java applet in the DOS command prompt under
>  Windows95. The problem seems to be that the the source filename is required
>  to have the ".java" extension, and the filename under DOS can't have a
>  four-character extension. The Windows95 long filenames are renamed in the
>  DOS command line shell and the javac program can no longer find it under
>  its original name.

We build under both Win95 and NT, using long filenames.  If the long
filename has been preserved (run DIR without parameters and check the
right-most column), javac will compile it just fine using the long
filename (DON'T use the shortened name).  If your editor or other old
Windows tool truncates the name, however, MOVE it in the shell from
the shortened name to the long name.  Consider using WordPad or the
shareware TextPad editors, both of which support long filenames, if
your editor is at fault.

The current javac has some bugs with case-sensitivity in filenames
(we were case-sensitive where we shouldn't have been), which we've 
fixed for the upcoming release.  In the meantime, type in the file
name with matching case (i.e., if the file is MyClassName.java, 
type that instead of myclassname.java).  It's easier to do this if
you use either a make or batch file.

Tom Ball
Java Products Group
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post