Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why aren the memory flags (-J-m) recognized in Windows?

0
10 Posted

Why aren the memory flags (-J-m) recognized in Windows?

0

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.

0

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.

0

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).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.