Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getting started with Generate Javadoc
Getting started with Generate Javadoc [message #219138] Thu, 17 November 2005 06:16 Go to next message
Eclipse UserFriend
Hi,
I am trying the Project > Generate Javadoc facility for the first time and
I can't get off the ground.

I picked a project that doesn't refer to any other projects, although it
does use Eclipse plug-ins such as ui and swt and some external jars and
tried to run it on this with default options. I didn't tick any
referenced archives or projects.

The javadoc is from Sun J2SE1.5.0_04.

It gives the following exception:

Constructing Javadoc information...
Standard Doclet version 1.5.0_04
Building tree for all the packages and classes...
Generating C:\Distribution Modeller
Workspace\ch.actuary.dmodeller\doc\ch/actuary/maths/\FastMat hs.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:183)
at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:863)
...

This exception appears to refer to number-format errors.

The preferences are set to process Javadoc comments and there are no
errors or warnings in this project.

Is there a way of finding out the precise command that Eclipse has issued
to Javadoc programme or running the generate command in debug mode to
investigate further?

Many thanks
Roger
Re: Getting started with Generate Javadoc [message #219263 is a reply to message #219138] Thu, 17 November 2005 10:51 Go to previous message
Eclipse UserFriend
Hi,
I have answered my previous question, but it still didn't help.

I have now set up a new clean workspace, a simple Java project, with a few
simple classes.
Nothing refers to anything external.
I can run com.sun.tools.javadoc.Main.execute(javadocargs) on this without
any errors or warnings and nice Javadoc is created correctly.

If I try "Generate Javadoc" on the project with what appear to be the same
settings, it throws an IllegalArgumentException (see below).

Any ideas what could be causing this?

The only settings I have changed are the reference to javadoc.exe and the
location for the output. Should I be changing other settings?

I am using Eclipse 3.1.1 release and Sun J2SE 1.5.0_04

Thanks
Roger


The full exception message is:

Loading source files for package creational.abstractfactory...
Constructing Javadoc information...
Standard Doclet version 1.5.0_04
Building tree for all the packages and classes...
Generating C:\RCP
Library\Test\doc2\creational/abstractfactory/\AbstractFactor y.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:183)
at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:863)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359 )
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1 159)
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java :72)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.xml.parsers.SecuritySupport.getResourceAsStream(Securi tySupport.java:65)
at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(Facto ryFinder.java:213)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFact ory.java:107)
at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser .parseXML(LayoutParser.java:72)
at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder .build(ClassBuilder.java:108)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassF iles(HtmlDoclet.java:155)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.genera teClassFiles(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startG eneration(AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start( AbstractDoclet.java:64)
at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDocl et.java:42)
at com.sun.tools.doclets.standard.Standard.start(Standard.java: 23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.jav a:269)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java :143)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortExcep tion
at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser .parseXML(LayoutParser.java:79)
at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder .build(ClassBuilder.java:108)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassF iles(HtmlDoclet.java:155)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.genera teClassFiles(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startG eneration(AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start( AbstractDoclet.java:64)
at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDocl et.java:42)
at com.sun.tools.doclets.standard.Standard.start(Standard.java: 23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.jav a:269)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java :143)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortExcep tion
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassF iles(HtmlDoclet.java:159)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.genera teClassFiles(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startG eneration(AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start( AbstractDoclet.java:64)
at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDocl et.java:42)
at com.sun.tools.doclets.standard.Standard.start(Standard.java: 23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.jav a:269)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java :143)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
Previous Topic:add external .zip files for plugin deployment
Next Topic:"Open implementation" missing in 3.2M3?
Goto Forum:
  


Current Time: Sun Nov 09 13:56:10 EST 2025

Powered by FUDForum. Page generated in 0.05088 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top