Generating Javadocs

A discussion forum for the JCommon class library.

Generating Javadocs

Postby R. Berliner » Wed Apr 16, 2008 1:51 am

Tried to follow the instructions for using JCommon and JFreeChart with NetBeans.

I am running Java Ver 1.6

I downloaded and installed ant, navigated to the JCommon ant directory and executed the command :

ant javadoc

What I got was an illegal argument exception (see below). This appears to be a problem with one of the source files. Would appreciate advice from someone more knowledgeable than me.

****************************************************


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>cd ..

C:\WINDOWS>cd ..

C:\>cd C:\Program Files\Java\jcommon\jcommon-1.0.12\ant

C:\Program Files\Java\jcommon\jcommon-1.0.12\ant>ant javadoc
Buildfile: build.xml

initialise:

javadoc:
[delete] Deleting directory C:\Program Files\Java\jcommon\jcommon-1.0.12\javadoc
[mkdir] Created dir: C:\Program Files\Java\jcommon\jcommon-1.0.12\javadoc
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.keypoint...
[javadoc] Loading source files for package org.jfree...
[javadoc] Loading source files for package org.jfree.base...
[javadoc] Loading source files for package org.jfree.date...
[javadoc] Loading source files for package org.jfree.io...
[javadoc] Loading source files for package org.jfree.layout...
[javadoc] Loading source files for package org.jfree.resources...
[javadoc] Loading source files for package org.jfree.text...
[javadoc] Loading source files for package org.jfree.threads...
[javadoc] Loading source files for package org.jfree.ui...
[javadoc] Loading source files for package org.jfree.ui.about...
[javadoc] Loading source files for package org.jfree.ui.about.resources...
[javadoc] Loading source files for package org.jfree.ui.action...
[javadoc] Loading source files for package org.jfree.ui.tabbedui...
[javadoc] Loading source files for package org.jfree.util...
[javadoc] Loading source files for package org.jfree.xml...
[javadoc] Loading source files for package org.jfree.xml.attributehandlers...
[javadoc] Loading source files for package org.jfree.xml.factory.objects...
[javadoc] Loading source files for package org.jfree.xml.generator...
[javadoc] Loading source files for package org.jfree.xml.generator.model...
[javadoc] Loading source files for package org.jfree.xml.parser...
[javadoc] Loading source files for package org.jfree.xml.parser.coretypes...
[javadoc] Loading source files for package org.jfree.xml.util...
[javadoc] Loading source files for package org.jfree.xml.writer...
[javadoc] Loading source files for package org.jfree.xml.writer.coretypes...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.6.0
[javadoc] Building tree for all the packages and classes...
[javadoc] java.lang.IllegalArgumentException
[javadoc] at sun.net.www.ParseUtil.decode(ParseUtil.java:185)
[javadoc] at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:953)
[javadoc] at sun.misc.URLClassPath$3.run(URLClassPath.java:326)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
[javadoc] at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
[javadoc] at sun.misc.URLClassPath.findResource(URLClassPath.java:144)
[javadoc] at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
[javadoc] at java.lang.ClassLoader.getResource(ClassLoader.java:977)
[javadoc] at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
[javadoc] at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
[javadoc] at java.security.AccessController.doPrivileged(Native Method)
[javadoc] at javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:89)
[javadoc] at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248)
[javadoc] at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:221)
[javadoc] at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:72)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)
[javadoc] com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:79)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)
[javadoc] com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:159)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31)

BUILD SUCCESSFUL
Total time: 9 seconds
C:\Program Files\Java\jcommon\jcommon-1.0.12\ant>
R. Berliner
Instrumentation Associates
2 Davis Drive
P.O. Box 13169
Research Triangle Park, N.C. 27709-3169
e-mail: rberliner@InstrumentationAssociates.com
Tel 919-765-0034
Fax 919-990-8561
Cell 734-646-5318
R. Berliner
 
Posts: 3
Joined: Wed Apr 16, 2008 1:35 am

Return to JCommon

Who is online

Users browsing this forum: No registered users and 2 guests