Why aren the memory flags (-J-m) recognized in Windows?
In JDK 1.1.x, 1.2 Beta 1 and 1.2 Beta 2 on Microsoft Windows, there is a bug in the Javadoc wrapper that prevents the -J flags from being passed on to the virtual machine. The symptom is that when you specify the -J option, it says “invalid flag”, as follows: C:\> javadoc -J-mx40m MyClass.java javadoc: invalid flag: -J-mx40m usage: javadoc flags* [class | package]* -sourcepath Colon-separated list of source-file directories -classpath Synonym for -sourcepath … Workaround – Switch to Javadoc 1.2 Beta3 or later (you can use the -1.1 switch to make it look like the 1.1 javadoc output with gray background and GIF images for headers). Otherwise, bypass the wrapper script in JDK 1.1.x by running the Main class (which contains a “main” method) in the sun.tools.javadoc package, assuming the destination directory is “C:\html”: C:\> java -mx40m sun.tools.javadoc.Main -d html MyClass.
In JDK 1.1.x, 1.2 Beta 1 and 1.2 Beta 2 on Microsoft Windows, there is a bug in the Javadoc wrapper that prevents the -J flags from being passed on to the virtual machine. The symptom is that when you specify the -J option, it says “invalid flag”, as follows: C:\> javadoc -J-mx40m MyClass.java javadoc: invalid flag: -J-mx40m usage: javadoc flags* [class | package]* -sourcepath Colon-separated list of source-file directories -classpath Synonym for -sourcepath … Workaround – Switch to Javadoc 1.2 Beta3 or later (you can use the -1.1 switch to make it look like the 1.1 javadoc output with gray background and GIF images for headers). Otherwise, bypass the wrapper script in JDK 1.1.x by running the Main class (which contains a “main” method) in the sun.tools.javadoc package, assuming the destination directory is “C:\html”: C:\> java -mx40m sun.tools.javadoc.Main -d html MyClass.
In JDK 1.1.x, 1.2 Beta 1 and 1.2 Beta 2 on Microsoft Windows, there is a bug in the Javadoc wrapper that prevents the -J flags from being passed on to the virtual machine. The symptom is that when you specify the -J option, it says “invalid flag”, as follows: C:\> javadoc -J-mx40m MyClass.java javadoc: invalid flag: -J-mx40m usage: javadoc flags* [class | package]* -sourcepath Colon-separated list of source-file directories -classpath Synonym for -sourcepath … Workaround – Switch to Javadoc 1.2 Beta3 or later (you can use the -1.1 switch to make it look like the 1.1 javadoc output with gray background and GIF images for headers).