?? javadoc Not Working ??

Hello all,
I'm using version 9.0.3.
It seems I am not able to browse javadocs for the core JDK classes or for classes in the javax.xml.* packages. Curiously, I am able to view the javadocs for classes in the "javax.servlet.*" packages.
Let me describe my setting:
Under "Tools | Preferences...| Documentation", I have the "Use Local Documentation" option selected. Its value is: "D:/JDeveloper/jdev/doc/ohj/", which contains a slew of JAR files that seem to contain javadocs.
What happens when I try to view the javadocs for a class in java.lang (e.g., java.lang.String)? Well, I simply get an error message that says, "Unable to resolve the symbol java.lang.String".
This is especially weird to me since, as I mentioned, I am able to browse the javadoc for the javax.servlet.* classes.
Can anyone else out there browse the javadocs for the core JDK classes? Try highlighting "String" in your code and pressing the F1 key.
Any ideas what I'm doing wrong? I'm thinking some mapping file is screwed up somewhere.
Thanks.
Tony

What is the error message you see?
Is it something like "Package util not found"?
Don't know if you intended this, bug the package name
shown in the source
file begins with a dot ".util". I don't think that's
legal. Try it without the dot.
BTW, the import statement is not necessary, as
java.lang.* is imported by default.
-DougSorry, the .util was just a typo - supposed to be package util. I originally had a longer package name, which I shortened for testing purposes. Still doesn't work. I started a new thread on the subject containing a full printout of the error message et al. Check "Anybody else get IllegalArgumentException after move from jdk1.5r8 to r9?" for full details. In short though, the error message starts with:
Loading source files for package util...
Constructing Javadoc information...
Standard Doclet version 1.5.0_09
Building tree for all the packages and classes...
Generating util/\JavadocTest.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
followed by one hell of a stack trace. The error is definately generated in one of the internal Sun packages though, so I can't go and check it out - no source access.

Similar Messages

  • "Show Javadoc" not working in NetBeans 6.7 // JDK 1.6 on Mac OS 10.5

    Hi,
    I searched many sites (including forums.sun.com: see e.g. http://forums.sun.com/thread.jspa?threadID=753501)
    -- still I cannot find a solution that would work for me.
    Here is a full description - hopefully somebody has solved it on Mac and will help me...
    1) To reproduce, I select anything (say String) in NetBeans, ^-click and select "Show Javadoc": the result is a tiny gray message "*Cannot perform Show Javadoc here*".
    2) I have a Mac and Netbeans 6.7.1, installed java 1.6, it (seems to me) came without docs:
    @ /System/Library/Frameworks/JavaVM.framework/Versions> ls -alrt
    total 56
    drwxr-xr-x   3 root  wheel   102 Jan 20  2009 1.3.1
    drwxr-xr-x   8 root  wheel   272 May 21 02:34 1.4.2
    drwxr-xr-x   8 root  wheel   272 May 21 02:34 1.5.0
    drwxr-xr-x   9 root  wheel   306 Nov 17 10:45 1.6.0
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:14 1.3 -> 1.3.1
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.4 -> 1.4.2
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.5 -> 1.5.0
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.6 -> 1.6.0
    lrwxr-xr-x   1 root  wheel     1 Nov 18 13:15 Current -> A
    drwxr-xr-x   9 root  wheel   306 Nov 18 13:15 A
    drwxr-xr-x  12 root  wheel   408 Nov 18 13:15 ..
    lrwxr-xr-x   1 root  wheel     3 Nov 18 13:30 CurrentJDK -> 1.6
    drwxr-xr-x  14 root  wheel   476 Nov 18 13:30 .
    @/System/Library/Frameworks/JavaVM.framework/Versions> find . -name docs.\*
    ./1.4.2/Home/docs.jar
    ./1.5.0/Home/docs.jar 3) I added
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/docs.jar
    to "Platform Manager" / JDK 1.6 / javadoc -- in vain, nothing's changed.
    According to all major search engines, this problem seems to exist for years and is experienced by many.
    It is really frustrating.
    Please help!

    scphan,
    thanks a lot for your reply! It is helpful! (although not "solved" - alas).
    The thing still doesn't work: maybe I missed some magic trick?
    If you bear with me, here is what I did:
    a) downloaded jdk-6u10-docs.zip
    (from "Java SE Development Kit Documentation 6"
    -->
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter)
    -- it was unzipped automatically by my Safari downloader, creating the "docs" directory);
    b) then I pointed the Netnbeans to this dir (it says "Add ZIP/Folder", so to my understanding the "dir" should work, only faster), --
    -- still "Show Javadoc" results in "Cannot perform"... (:-.
    Anything I did terribly wrong?
    Note that I stared at the http://java.sun.com/javase/downloads/index.jsp for a while before finding the "documentation" link.
    Noticeable also that the page starts with "What Java Do I Need?" but doesn't answer that question.
    Why does Sun make it so freaking hard for the beginners?..
    Does it make sence to ship something without documentation?..
    Why doesn't Apple distribution include it for 1.6 although it does for 1.5 and 1.4?..
    Why do creators of Java not care that Java actually works out of the box, -- including (and that I think makes my question a Java question) in one of the two most popular Java IDEs?
    (The last few sentences are mostly for flounder).

  • JDeveloper javadoc not working

    We use Jdeveloper to develop custom applications and to extend functionality in Oracle Application Framework pages. When I highlight a class like "String" --> right click "Browse Javadoc" the javadoc page opens. However, when I try to do this for any of the framework classes like OAApplicatonModule it fails with an error:
    e.g.,
    "Unable to resolve the symbol "oracle.apps.fnd.framework.OAApplicationModule"

    Can you verify that the JDeveloper library that hold the class you are trying to access has a documentation source directory included in its definition?
    Under tools->manage libraries.

  • SelectManyListBox is not working for Integer Objects in Jsf

    hi,
    In JSF selectManyListBox is not working with Integer objects it is working only with String Objects. It is showing the error "value is invalid" can anybody please send me sample code snippet regarding this.

    The javadoc of UISelectMany.validateValue() says:
    In addition to the standard validation behavior inherited from UIInput, ensure
    that any specified values are equal to one of the available options.
    So, you should take care that the submitted values are equal to one of the
    options. Note that an Integer is never equal to a String.
    Show your codes to us.

  • {@inheritDoc} not working for Java Classes

    Hello,
    i am using {@inheritDoc} for inherting super class's JavaDoc for a perticular function..
    It is working, if super class is my own class. i am able to see all JavaDoc in child class.
    But when i use {@inheritDoc} for extending JavaDoc of java class it is not working.
    i.e. if i am writing {@inheritDoc} in public void actionPerformed(ActionEvent e) method..
    It wont show any javadoc..
    How to add it? Do i need to give source of java classes too???
    And if it is Yes, then where to specifiy. and where to find source of Java classes, do they come with JDK? or NetBeans?? (If yes then where it is in JDK or Netbeans???)
    Thanks,
    Nachiket.

    Yes, you need to have the Java source, with the -sourcepath option, as described here:
    Inheriting Comments from J2SE - Your code can also automatically inherit comments from interfaces and classes in the J2SE. You can do this by unzipping the src.zip file that ships with the SDK (it does not contain all source files, however), and add its path to -sourcepath. When javadoc runs on your code, it will load the doc comments from those source files as needed. For example, if a class in your code implements java.lang.Comparable, the compareTo(Object) method you implement will inherit the doc comment from java.lang.Comparable.
    http://java.sun.com/j2se/javadoc/faq/#incrementalbuild
    If you want the full Java source get it from here:
    http://www.sun.com/software/communitysource/j2se/java2/index.xml
    http://java.sun.com/j2se/javadoc/faq/#sourcecode
    -Doug

  • {@link Object#clone()} , -link does not work!!

    I have a problem with this!!
    Somehow the -link option does not work very well.
    I have ensured that I did correctly set my command option -link to
    -link http://java.sun.com/j2se/1.4.1/docs/api
    I have already imported java.lang.Object at the top of my source code.
    When I tried to use {@link Object#clone()}, it doesnt work at all.
    I have also tried all sorts of names like fully qualified ones and such.
    The hyperlinks do not appear ( i.e. they just appear as plain text but not hyperlinks!!) I realise the ONLY way I can get it to point to the correct link is
    {@link <a href = "http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone()</a>}
    which is very lame.
    I want to be able to write doc @tags such that I do not have to specify the full complete http address.
    Anyone can help ? Thank you very much!!
    P/S: I know this is a bug in 1.2.2 javadoc but I suppose this bug would have been fixed by now....
    Regards
    David

    I would upgrade to 1.4.2. That should fix the problem.
    -Jamie Ho

  • c:redirect not working?

    Hi folk,
    I'm new to JSP. We use JSTL to parse XML file at work.
    We use WebSphere and Java 1.4.x.
    It seem the <c:redirect> tag is not working. Someone point out somewhere, that this is a know bug using WebSphere. But I still have doubt.
    I'm more use to PHP and I was wondering if <c:redirect> tag work like the header() function in the sense that NO output should be send before using <c:redirect>?
    Those <c:redirect> work using a HTML header to make the redirection?
    Thank you!

    Most likely no output should be sent AFTER using <c:redirect/>
    This tag is equivalent of sendRedirect(java.lang.String location) method of javax.servlet.http.HttpServletResponse
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String) :
    Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client.
    If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.

  • Some bidirectional binding not works

    Hello!
    Maybe I do something wrong, but bidirectional binding in thic simple code not works properly.
    package simple;
    import javafx.application.Application;
    import javafx.scene.GroupBuilder;
    import javafx.scene.Scene;
    import javafx.scene.SceneBuilder;
    import javafx.scene.control.CheckBox;
    import javafx.scene.control.CheckBoxBuilder;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    public class BiDiBug extends Application {
      CheckBox checkBoxResizable;
      public static void main(String[] args) {
        Application.launch(args);
      @Override
      public void start(Stage stage) {
         stage.setResizable(true);
        Scene scene  = SceneBuilder.create()
          .width(200)
          .height(100)
          .fill(Color.TRANSPARENT)
          .root(
            GroupBuilder.create()
                 .children(
                    checkBoxResizable = CheckBoxBuilder.create()
                      .selected(stage.isResizable())
                      .text("Is Stage resizable")
                      .build()
                  .build()
           .build();
        checkBoxResizable.selectedProperty()
                .bindBidirectional(stage.resizableProperty());
        // This code not works too:
        //stage.resizableProperty()
        //          .bindBidirectional(checkBoxResizable.selectedProperty());
        stage.setScene(scene);
        stage.show();
    }Is it bug or feature?

    The binding seems to work, in the sense that stage.resizable gets updated accordingly. Try adding the following:
        stage.resizableProperty().addListener(new ChangeListener<Boolean>() {
          @Override
          public void changed(ObservableValue<? extends Boolean> observable,
              Boolean oldValue, Boolean newValue) {
            System.out.printf("stage.resizable changed from %s to %s%n", oldValue, newValue);
        });and you'll see that the resizable property does indeed change when you check/uncheck the checkbox.
    On my setup (Mac OSX 10.7.5), under JavaFX 2.2.7, JDK 1.7.0_17, I observe the same behavior as you: the resize behavior of the stage does not correspond to the value of its property. The [url http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html#resizableProperty]Javadocs for stage.resizable do say "This is a hint which allows the implementation to optionally make the Stage resizable by the user." So in fairness, there is no guarantee given that changing this value will have the desired effect.
    Interestingly, under JavaFX 8, JDK 1.8.0 (early access, b80), your code works. However, the Javadocs for the stage.resizableProperty() in JavaFX 8 additionally state
    >
    Warning: Since 8.0 the property cannot be bound and will throw RuntimeException on an attempt to do so. This is because the setting of resizable is asynchronous on some systems or generally might be set by the system / window manager.
    so while bindBidirectional(...) seems to work, bind(...) does indeed throw a RuntimeException.
    Given all that, I would not try to bind to the resizable property at all. If you only need unidirectional binding, Shakir's solution above will work. If you genuinely need bidirectional binding (for example, if the stage's resizable property might be changed elsewhere in the application, and you need the checkbox to update accordingly), you can "do it by hand":
        checkBoxResizable.selectedProperty().addListener(new ChangeListener<Boolean>() {
          @Override
          public void changed(ObservableValue<? extends Boolean> obs,
              Boolean oldValue, Boolean newValue) {
            if (stage.isResizable() != newValue.booleanValue()) {
              stage.setResizable(newValue);
        stage.resizableProperty().addListener(new ChangeListener<Boolean>() {
          @Override
          public void changed(ObservableValue<? extends Boolean> obs,
              Boolean oldValue, Boolean newValue) {
            if (checkBoxResizable.isSelected() != newValue.booleanValue()) {
              checkBoxResizable.setSelected(newValue);
        }); which seems to work in all versions (again, on my system).

  • F1 help not working for J2EE objects

    Hi,
    I love the F1 help that takes you to the JavaDoc. However, it doesn't seem to
    work for J2EE objects (only J2SE). However, workshop does know about J2EE objects
    because the function completion stuff works.
    The "J2EE Javadoc location" in IDE Properties is set to http://java.sun.com/j2ee/1.4/docs/api/.
    I also changed it to my local install of the Javadoc. Still no satisfaction.
    Anyway to get this working?
    Thanks,
    Phil

    Raj,
    Thanks for the service pack clarification.
    Any ideas why the F1 for J2EE is not working?
    Is anyone else having this problem?
    It seems to be using the J2SE javadoc location instead.
    Thanks,
    Phil
    "Raj Alagumalai" <[email protected]> wrote:
    Phil,
    The installation you have is WebLogic Platform 8.1 GA, which contains
    WebLogic Server 8.1 sp1, which is why the next service pack will be called
    Service Pack 2.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Phil Grimm" <[email protected]> wrote in message
    news:[email protected]...
    Is there an SP1 for Workshop? The build I have (in Help | About) showsBUILD: 2003.0710.190003).
    Is there a newer build? I have not been able to locate a download.
    One file you can try is LoginBacking.java in{sampleportal}/WEB-INF/src/examples/login.
    Postion on "HttpServletRequest" and hit F1 goes to the J2SE javadocand
    displays
    java.lang.Object. It's not going after the correct javadoc file.
    Phil
    "Raj Alagumalai" <[email protected]> wrote:
    Phil,
    I have tested JE22 objects and have not had any issues. Can you attach
    a
    file where F1 help fails ?
    Regarding F1 help for weblogic API's they will be available in Service
    Pack
    2.
    Hope this helps.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Phil Grimm" <[email protected]> wrote in message
    news:[email protected]...
    Oh, it would be nice if F1 would work for BEA APIs. Is this possible?
    Even more cool would be if we could configure it to point to API'sof our
    own
    or others like Struts, etc.
    If this is not possible, please consider this an enhancement request:)
    Phil
    "Phil Grimm" <[email protected]> wrote:
    Hi,
    I love the F1 help that takes you to the JavaDoc. However, it doesn't
    seem to
    work for J2EE objects (only J2SE). However, workshop does know
    about
    J2EE objects
    because the function completion stuff works.
    The "J2EE Javadoc location" in IDE Properties is set to
    http://java.sun.com/j2ee/1.4/docs/api/.
    I also changed it to my local install of the Javadoc. Still nosatisfaction.
    Anyway to get this working?
    Thanks,
    Phil

  • Strange, setMargin not working on JTextArea

    setMargin comes from the JTextComponent which is Parent of JTextArea and JTextField.
    I used setMargin(new Insets(2, 4, 0, 4)); in the JTextField and it worked fine of course, but when I tried setting the margin in the JTextArea isn't not working, it's just using its default margin.
    Anyone know what's going on here?

    It's a subtle gotcha. As described in the JTextComponent javadoc, setMargin(Insets i) doesn't work when the JTextPane has a non-default Border. What worked for me is to provide a getInsets override instead:
      public Insets getInsets()
        return new Insets(2,4,0,4);
      }

  • SetNodeValue is not working.

            try {
                    DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
                    DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
                    Document doc = docBuilder.parse("elements.xml");
                    NodeList nodeselElementid=doc.getElementsByTagName("elementid");
                    NodeList nodesElementtype=doc.getElementsByTagName("elementtype");
                    NodeList nodesElementPosition=doc.getElementsByTagName("elementposition");
                    Component[] allComponent;
                    allComponent=visualPane.layeredPane.getComponents();
                    int[] allY = new int[allComponent.length];
                    String[] allCName = new String[allComponent.length];
                    for(int c=0; c<allComponent.length;c++)
                        allY[c]=allComponent[c].getY();
                        allCName[c]=allComponent[c].getName();
                    for (int i=0; i<nodeselElementid.getLength();i++)
                            for(j=0; j<allCName.length;j++)
                                if(nodeselElementid.item(i).getTextContent().equals(allCName[j]))
                                    nodesElementPosition.item(i).getFirstChild().setNodeValue(""+allY[j]);
                } catch (SAXException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IOException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                } catch (ParserConfigurationException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                }Hello, I am an Undergraduate university student. I need to solve the problem for my project. But I am failed. Please help me. The problem is the XML is not changed. setNodeValue method is not working. I am waiting for reply.

    If you look at the JavaDoc for the Node interface, you will see a table near the top that states that the nodeValue of an Element is null.
    Hint: Elements do not have values. Elements may have child nodes that are Text. You might want to create a Text node with a String value and add it to the children of the Element.
    Dave Patterson

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe bridge raw not working with windows vista in photoshop cc, why?

    adobe bridge raw not working in photoshop cc, is there a fix?

    Your sure your using photoshop cc on windows vista?
    I was under the impression that photoshop cc would not even install on windows vista.
    What version of camera raw do you have?
    In photoshop under Help>About Plugin does it list Camera Raw and if so which version is it?
    (click on the words Camera Raw to see the version)
    Camera raw doesn't work if it's a camera raw file or some other file type such as jpeg or tif?
    What camera are the camera raw files from?
    Officially camera raw 8.3 is the latest version of camera raw that will work on windows vista.

  • Adobe Bridge CS5 in windows 7 not working?

    Adobe Bridge CS5 in windows 7 not working. I was using bridge perfectly for last 2 years. It stops working since 3 days. I tried to install updates. Showing some error to install.
    Tried to install creative cloud..again some error. Error code : 82
    Could you please advice how I can fix my adobe bridge.

    https://www.youtube.com/watch?v=xDYpTOoV81Q&feature=youtu.be
    please check this video I uploaded..this is what happens when I click adobe bridge.. just blinks and go off. bridge not working on task manager

Maybe you are looking for

  • My iTunes artwork is mixed up on my iPod... Any help?

    For some odd reason, a large part of the album artwork from my iTunes library mixed up when I loaded my iTunes library onto my iPod. In other words, when R.E.M. is playing "It's The End Of The World," the CD cover shown happens to be David Crowder Ba

  • How do i install missing fonts into my trial?

    Hi I have three fonts that I want to use in my company formats that are missing in my trial indesign download. They are Arial MT Pro Light, ITC Franklin Gothic and ITC Franklin Gothic Demi. How do I get these? Can I do it within the trial or do I nee

  • OSX 10.5.2 useless after security update

    Mail, Address book, Dashboard, Pages and iCal crash before even starting completely. These are the apps I tried, so there are probably others also crashing after this security update (2008-002). My wife has a MacBookPro that continues to run well aft

  • How to add pages in Dreamweaver without opening new file??

    Hey there everyone I just wanted to know if and how i could add pages in Dreamweaver rather than having all different files. Thanks

  • Battery is exhausted after few hours, even when the phone is turned off

    I am a Movistar - Colombia ZTE firefox open user, I have a battery problem after November 8, in the night the battery was exhausted totally, I think the phone have a virus or some trick of the operator, they try to manipulate the customers in many wa