Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java
I am try to run Javadoc command from my command Prompt but it does not execute properly
javadoc -d . *.java
Loading source file ActionEvent.java...
Loading source file ActionListener.java...
Loading source file AdjustmentEvent.java...
Loading source file AdjustmentListener.java...
Loading source file AWTEventListener.java...
Loading source file AWTEventListenerProxy.java...
Loading source file ComponentAdapter.java...
Loading source file ComponentEvent.java...
Loading source file ComponentListener.java...
Loading source file ContainerAdapter.java...
Loading source file ContainerEvent.java...
Loading source file ContainerListener.java...
Loading source file FocusAdapter.java...
Loading source file FocusEvent.java...
Loading source file FocusListener.java...
Loading source file HierarchyBoundsAdapter.java...
Loading source file HierarchyBoundsListener.java...
Loading source file HierarchyEvent.java...
Loading source file HierarchyListener.java...
Loading source file InputEvent.java...
Loading source file InputMethodEvent.java...
Loading source file InputMethodListener.java...
Loading source file InvocationEvent.java...
Loading source file ItemEvent.java...
Loading source file ItemListener.java...
Loading source file KeyAdapter.java...
Loading source file KeyEvent.java...
Loading source file KeyListener.java...
Loading source file MouseAdapter.java...
Loading source file MouseEvent.java...
Loading source file MouseListener.java...
Loading source file MouseMotionAdapter.java...
Loading source file MouseMotionListener.java...
Loading source file MouseWheelEvent.java...
Loading source file MouseWheelListener.java...
Loading source file NativeLibLoader.java...
Loading source file PaintEvent.java...
Loading source file TextEvent.java...
Loading source file TextListener.java...
Loading source file WindowAdapter.java...
Loading source file WindowEvent.java...
Loading source file WindowFocusListener.java...
Loading source file WindowListener.java...
Loading source file WindowStateListener.java...
Constructing Javadoc information...
AWTEventListenerProxy.java:47: type java.util.EventListenerProxy does not take p
arameters
        extends EventListenerProxy<AWTEventListener>
                                  ^
FocusEvent.java:29: warning: sun.awt.AppContext is Sun proprietary API and may b
e removed in a future release
import sun.awt.AppContext;
              ^
FocusEvent.java:30: warning: sun.awt.SunToolkit is Sun proprietary API and may b
e removed in a future release
import sun.awt.SunToolkit;
              ^
InputEvent.java:34: warning: sun.awt.AWTAccessor is Sun proprietary API and may
be removed in a future release
import sun.awt.AWTAccessor;
              ^
InputEvent.java:35: package sun.util.logging does not exist
import sun.util.logging.PlatformLogger;
                       ^
InputEvent.java:60: cannot find symbol
symbol  : class PlatformLogger
location: class java.awt.event.InputEvent
    private static final PlatformLogger logger = PlatformLogger.getLogger("java.
awt.event.InputEvent");
                         ^
MouseEvent.java:36: warning: sun.awt.SunToolkit is Sun proprietary API and may b
e removed in a future release
import sun.awt.SunToolkit;
              ^
WindowEvent.java:29: warning: sun.awt.AppContext is Sun proprietary API and may
be removed in a future release
import sun.awt.AppContext;
              ^
WindowEvent.java:30: warning: sun.awt.SunToolkit is Sun proprietary API and may
be removed in a future release
import sun.awt.SunToolkit;
              ^
Standard Doclet version 1.6.0_33
Building tree for all the packages and classes...
javadoc: error - Unable to create directory .\java/awt/event/
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
        at com.sun.tools.doclets.internal.toolkit.util.DirectoryManager.createDi
rectory(DirectoryManager.java:263)
        at com.sun.tools.doclets.internal.toolkit.util.Util.genWriter(Util.java:
576)
        at com.sun.tools.doclets.formats.html.markup.HtmlWriter.<init>(HtmlWrite
r.java:61)
        at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.<init>(HtmlDo
cWriter.java:47)
        at com.sun.tools.doclets.formats.html.HtmlDocletWriter.<init>(HtmlDoclet
Writer.java:95)
        at com.sun.tools.doclets.formats.html.SubWriterHolderWriter.<init>(SubWr
iterHolderWriter.java:40)
        at com.sun.tools.doclets.formats.html.ClassWriterImpl.<init>(ClassWriter
Impl.java:49)
        at com.sun.tools.doclets.formats.html.WriterFactoryImpl.getClassWriter(W
riterFactoryImpl.java:64)
        at com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory.getCla
ssBuilder(BuilderFactory.java:83)
        at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(Html
Doclet.java:152)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:177)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:161)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration
(AbstractDoclet.java:106)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractD
oclet.java:64)
        at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:4
2)
        at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java: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.DocletAbortException
        at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(Html
Doclet.java:159)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:177)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:161)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration
(AbstractDoclet.java:106)
        at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractD
oclet.java:64)
        at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:4
2)
        at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java: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)
1 error
9 warnings
Posted 6-Oct-12 23:43pm
Comments
Richard MacCutchan at 7-Oct-12 7:48am
   
Fix the errors first.
Mohibur Rashid at 7-Oct-12 9:21am
   
I think this not the right forum for you

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is the right forum.
 
You are in the right directory? seems like you're creating that javadoc a bit to global.
I doubt that "." is enough of a path.
 
EDIT: That path "." might even end up in the Java-directory.
 
Tutorial for JavaDoc[^]
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid