Can't get "Simple Example Doclet" to run -- Cannot find

I am trying to run the "Simple Example Doclet" at http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/overview.html.
It appears to compile ok, but when I go to run it I get the message "javadoc: Cannot find doclet class ListClass".
Listed below is:
     1. The execution command and error message
     2. The version (output of javadoc -J-version)
     3. The javac compile command and input and output files
All directories have been kept the same as in the example.
Any help would be appreciated.
Thanks
1. C:\jdk1.3>javadoc -doclet ListClass -classpath C:\jdk1.3\lib\tools.jar MyClass.java
javadoc: Cannot find doclet class ListClass
1 error
2. javadoc -J-version
     gives
          java version "1.3.1_01"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
          Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode).
3. javac -classpath C:\jdk1.3\lib\tools.jar ListClass.java
     appears to give good compile ....
          e. g. Input source file ListClass.java is as follows:
               import com.sun.javadoc.*;
               public class ListClass {
               public static boolean start(RootDoc root) {
               ClassDoc[] classes = root.classes();
               for (int i = 0; i < classes.length; ++i) {
               System.out.println(classes);
               return true;
          and.....
          decompiled ListClass.class file is as follows:
               // Decompiled by DJ v2.8.8.54 Copyright 2000 Atanas Neshkov Date: 10/11/2001 4:09:46 PM
               // Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
               // Decompiler options: packimports(3)
               // Source File Name: ListClass.java
               import com.sun.javadoc.RootDoc;
               import java.io.PrintStream;
               public class ListClass
               public ListClass()
               public static boolean start(RootDoc rootdoc)
               com.sun.javadoc.ClassDoc aclassdoc[] = rootdoc.classes();
               for(int i = 0; i < aclassdoc.length; i++)
               System.out.println(aclassdoc[i]);
               return true;

Sorry to be so late in getting back to you .. I was on vacation.
ListClass is in the current directory. I did get it to work however... In order to get it to work I had to do two things:
1. use -docletpath (even thought it was in the current path) e. g. -docletpath C:\jdk1.3\ListClass.jar
AND
2. Make the class file a jar file -- I could not get it to work otherwise.
p.s. the typo was a decompiler error.

Similar Messages

  • Newbie can't get AE example script to run

    When I try to run DemoPalette.jsx, which comes with AE, I get an error: "undefined is not an object". This happens when AE reaches this line:
    var securitySetting = app.preferences.getPrefAsLong("Main Pref Section",
    "Pref_SCRIPTING_FILE_NETWORK_SECURITY");
    I also tried running some example code from their documentation, but AE didn't like this line:
    if (lang == Language.ENGLISH)
    It says "Language is undefined".
    Anyone have any thoughts?--Rob

    Are you running the DemoPalette.jsx script from AE's File > Scripts submenu?
    You might get that message if you're trying to run an After Effects script from ExtendScript Toolkit but didn't set the target menu (in the upper-left corner of its window) to After Effects.
    Jeff

  • I can't get sound on favorite sights, and cannot find why

    Ever since I went to beta4, no sound on fave sites, just want the sound back, help

    Have you gone to settings > sound to make sure your built-in speakers are selected? That would be my first guess for troubleshooting.

  • Can not get JSP examples to run

    I am able to use the example servlets, but I can not get the JSP examples to run. I get the error listed at the end of this message.
    I am using jdk1.3.x and TOMCAT Version 3.2.3
    Here is my classpath
    .;C:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\privilegesparadox;C:\jdk1.3jre\lib\ext\XML4J.JAR;C:\jdk1.3\jre\lib\ext\mm.mysql-2.0.4-bin.jar;C:\jdk1.3jre\lib\ext\mssqlserver.jar;C:\jdk1.3\jre\lib\ext\mail.jar;C:\jdk1.3jre\lib\ext\activation.jar;C:\Netscape\Servers\java\ldapjdk.jar
    I am running this on win2000. I have done several years of servlet work and now am needing to do JSP stuff. I can not get the examples to run... so any of my test stuff does not work either.
    Error: 500
    Location: /examples/jsp/dates/date.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)

    I don't get it... I have been using jdk 1.3.x for sometime... a year now. All seems fine with servlets and java applications I have created. What could be not there if all of this works?
    If reinstall the jdk over top of where is is now, would that be of any help? I will copy my /ext jar files to a temp area first so I can keep my jar files.
    Dean-O

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • HT1947 Remote app requirements are stated as "software version 3.1.3 or later". I am running 4.2.1 and when I try to download it says 4.3 required. Where can I get the (old) version that runs on my IOS?

    'Remote' app requirements are stated as "software version 3.1.3 or later". I am running 4.2.1 and when I try to download it says 4.3 required.
    OK, I understand that new versions make use of facilities that come with new versions of IOS, but there is/was a version that runs on 3.1.3 and therefore, I assume 4.2.1. Where can I get the (old) version that runs on my IOS?
    The app store seems to ignore all legacy equipment owners, and want me to spend loadsa money to get the latest shiny toy. It probably makes business sense, but I dislike companies that take that approach. This is my first venture into smart phones, and I like the IOS interface, but I'm not sure I can afford the maintenance.

    The app store seems to ignore all legacy equipment owners, and want me to spend loadsa money to get the latest shiny toy. It probably makes business sense, but I dislike companies that take that approach.
    This is standard for Apple.  While there is little official mention of the software support lifespan for equipment, typical support has been about 4-5 years for computers.  It strikes me that newer items, especially mobile devices, are not built as sturdily nor do they have the hardware upgrade capabilities required to keep up with newer systems.  When we bought an iPhone 4S we were told by the person in the store we'd probably be looking at a newer model in two years.  The iPhone 3G could be anywhere from 2 to 4 years old, putting it well into.
    As for app availability, Apple typically pulls old software versions from its site when new versions appear.  If it is a non-Apple app then I guess it is up to the vendor. It is indeed tiresome but it is not at all unusual.  Since I only ever run used Macs, I download current versions even though my computer won't run them, stick them on a hard drive, then I have them when I upgrade to a newer used computer.  If you run older equipment you have to learn a different mode of operation to exist with the Apple 'new and innovative' but 'forget about the old' philosophy.

  • Can I get a trial version that runs on OSX 10.6.8 32 bit

    Can I get a trial version that runs on OSX 10.6.8 32 bit?  If so where?   If not what should I do?

    Hello,
    Please use the below link and download the CS6 application from the list.
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Flash professional CS6 is compatible for Mac 10.6.8
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-system-requirements.html

  • Where can I get the example application FuzzyEx Car Backward Parking.vi from LabView?

    Where can I get the example application FuzzyEx Car Backward Parking.vi from LabView? I've got the LabView 2009 and I don't find it.

    First verify if you have the PID and Fuzzy Logic Toolkit installed. To do that, you can just look at the "Control Design and Simulation" palette and you should see PID Palette and Fuzzy Logic Palette available. If you do not see, you need to install this toolkit.
    Second, in 2009 you have two options to access the example: you can directly open the example by using this address:
    C:\Program Files\National Instruments\LabVIEW 2009\examples\control\fuzzy\Car Parking\FuzzyEx Car Backward Parking.vi
    Or you can use the example finder and browse examples by going to: "Menu Help>>Find Examples" and "Toolkits and Modules>>PID and Fuzzy Logic Control>>Fuzzy Logic". yoiu should see "FuzzyEx Car Backward Parking".
    Hope this helps.
    Message Edited by Barp on 05-29-2010 12:59 PM
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • How can I get a display of all running programs in lion like I used to get when I did a 4 finger swipe in snow leopard?

    how can I get a display of all running programs in lion like I used to get when I did a 4 finger swipe in snow leopard?
    I liked to turn off running programs without a window that I was no longer using
    thanks.
    Best I can do now is to open the "force quit" window and click on programs I want to stop and then send each one a "command-Q" and then repeat as necessary
    Jeff

    Command + Tab is what you are after i think

  • Can't get adobe digital editions to run

    I downloaded adobe.com/products/ digital editions but my  computers says windows can't run it?? help - I have the lastest flash... ?  (I have windows vista )

    Here is what computer (Windows Vista) says when I try to run the program.  "Adobe digital editions has stopped working. A problem caused the program to stop working correctly. windows will close the program and notify you if a solution is available"
    Date: Sat, 9 Feb 2013 20:59:06 -0800
    From: [email protected]
    To: [email protected]
    Subject: can't get adobe digital editions to run
        Re: can't get adobe digital editions to run
        created by Pat Willener in Adobe Reader - View the full discussion
    1daisy wrote: windows can't run itThat does not sound like an error message Windows would issue; please provide the exact error message you are getting. 
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5061535#5061535
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5061535#5061535
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5061535#5061535. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Can't get apple hardware test to run.

    Hi,
    I'm on a macbook pro late 2008 running 10.6.8 and I can't get apple hardware test to run.
    I upgraded with a 10.6.3 disk and there is only one install disk. I insert it restart whilst holding d, nothing happened, restart whilst holding alt + d, again nothing.
    Any ideas?
    Thank you.

    You will need the #2 installation disk (that came with the MBP)  with the Apple Hardware Test instructions on it.
    Ciao.

  • Can I revert back after upgrading to Mavericks operating system? Can't get my Adobe software to run properly.

    Can I revert back to a previous operating system after upgrading to Mavericks? Since installing Mavericks I can't get my Adobe software to run properly.

    Thanks, for your replies. I've got a late 2012 iMac (2.7 GHz Intel Core i5). I was previously running Snow Leopard - Not sure exactly what version but it was right up to date.
    The Adobe software I'm using is the Creative Cloud. Specifically InDesign cc. Whenever I try to browse folders through the InDesign software the browser window closes before I can do what I need to do. So I cant place images into my InDesign document or save documents properly.
    On the Adobe website it says that they worked with apple to fix any bugs before the Mavericks release but there's lots of complaints on the forums. I've left a bug notification with Adobe but I don't expect that they will be offering any solutions or software updates any time soon.
    I really just want to revert back without too much trouble.

  • I can't get 5.1 Surround Sound running Windows 7, Mid-2010 Mac Pro

    Hello,
    So I'm running bootcamp on my Mid-2010 Mac Pro and I can't get Dolby Surround Sound to run from the Realtek HD Audio Manager. Is there a way to produce true Dolby 5.1? I understand this may be more bootcamp related than to the actual hardware itself but I figured this is the best place to start troubleshooting this.
    Thanks

    I can try-dunno how much help I'll be, though
    go here for Realtek drivers for surround sound
    http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=37&Level=5&Co nn=4&ProdID=144
    try this: go to Windows Sound, then playback devices, then click on speakers icon (should have realtek as default). Click on that, and click configure
    if realtek has a sound manager, try clicking on that, and a config dialog might appear
    sorry can't be much more help than that
    JB

  • HT201365 I've forgotten my passcode and can't get into the phone to turn off "find my iphone" in order to restore it... Help Please

    I've forgotten my passcode and can't get into the phone to turn off "find my iphone" in order to restore it... Can anyone help?

    If you know the password to your apple id login - you can then do a restoration once you have put your device into recovery mode using itunes.
    read this article to give you direction how to put your device into recovery mode.
    Once you have put in your apple id login and password this then will allow you to restore the device once the device is placed in recovery mode.
    good luck!
    http://support.apple.com/kb/ht1808

  • TS3376 I can't get my iPhone on my iPad to find it

    I can't get my iPhone on my iPad to find it

    If you are refering to the Find My iPhone service and are using the Find My iPhone app on the iPad but cannot find the iphone, then on the iphone, go to Settings>icloud and be sure Find My iPhone is turned on (also be sure the icloud account ID is the same as the one you are logging into in the FMiP app.

Maybe you are looking for

  • In Transaction Kp97 after upgrade to ECC 6.0

    Hi friends, In transaction Kp97 i get this error message: Ledger 0 has fiscal year variant  instead of Z5 I checked the config for the FI SL fiscal fear variant. The fiscal year variant assigned is Z5. Still I am getting the message. Can anyone help

  • Saving an ID document into SVG

    I've had a special client request to save/convert a mult-page (around 20 pages) Indesign document to SVG format. I know there was an option to save in SVG in ID CS3 but this seems to be no longer available in CS4. What's the best way to save a multip

  • How to add to viewPlatformBehavior an Action Event - a button press

    And the main problem I have is to by pressing buttons to change the Viewing Platform? I made same transformation to object, which reacts to key pressin: public class LewoPrawo extends Behavior{     private TransformGroup targetLP;     private Transfo

  • Burning/Multiplexing Error

    I have been trying to burn my imovie onto a dvd. Most of the times it does not burn, after a four hours or so, I get a multiplexing error message. Everynow now and then it does burn, (The randomness of this is making me crazy) When i first burned the

  • Download pictures from video ipod

    I have a video ipod that I used to back-up all of my digital pictures. I hope this was a good idea because my wife spilled a cup of coffee and crashed the hard drive. Now that I have a new hard drive and have re-installed itunes, I don't know how to