The problem is probabaly the capital J in the your file extension for MyDocument.Java You must be using windows, filenames are case insensite there and emacs will allow you to open a file called "MyDocument.Java" even if you originally created a "MyDocument.java". Javac, however, doesn't seem to treat its filename as case-insentive on windows.
Close the MyDocument.Java buffer and open MyDocument.java, and all should be fine. Suraj On Tue, 21 Sep 2004 23:22:44 -0700 (PDT), Allen Hsu <[EMAIL PROTECTED]> wrote: > When I did C-c C-v C-v, javac seems to think the source filename as a > flag. Is there a setting to correct this? > I'm using JDE2.3.4beta5, emacs21.2.1, JDK1.4.2_05. > Thanks. > Allen > > cd c:/Allen/DesignPatterns/FactoryMethod/ > c:/j2sdk1.4.2_05/bin/javac.exe -classpath > c:/Allen/DesignPatterns/FactoryMethod -g -deprecation -O -verbose > -source 1.4 MyDocument.Java > > javac: invalid flag: MyDocument.Java > Usage: javac <options> <source files> > where possible options include: > -g Generate all debugging info > ... > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com >
