Netbeans Code Completion

I installed netbeans two days ago, and I'm really impressed! Since then, I have had to reinstall windows 2000 on my PC, and after reinstalling the J2SE 1.4.1 SDK and NetBeans 3.5, the javadoc part of the code completion doesn't work. I've tried everything I can think of, but it always says
"JavaDoc not found. Either javadoc documentation for this item does not exist or you have not mounted a filesystem that contains the source for this class. The javadoc documentation that is displayed in this box is generated from source files, not from compiled javadoc documentation."
Sounded simple enough, but I have tried mounting every set of source files I can find, to no avail. This is especially irritating as this worked automatically when I installed it the first time.
Browsing through the help located the following information:
"To see documentation for Java SDK classes, you must have the Java SDK sources mounted. If you are running version 1.4 of the J2SE platform, the IDE mounts the SDK sources automatically the first time you use code completion on a JDK class."
Well, I am running a later version that 1.4, but this does not seem to have happened. I have tried following the instructions to manually mount the SDK, but this has also had no effect.
Please can anyone offer any advise, as this is getting really frustrating.

I have the docs in a docs folder in JAVA_HOME. I have just tried mounting this directory specifically but it didn't work. The part of the error message that says
"The javadoc documentation that is displayed in this box is generated from source files, not from compiled javadoc documentation."
indicates that this is not the right approach.
The part that seems to be going wrong is the SDK mounting - this was supposed to be automatic, but although it worked the first time, does not appear to have happened.
Does anyone know what might cause this to fail, or how the SDK should be set up for NetBeans to locate it?

Similar Messages

  • Is there any way to fix the slow code completion in Netbeans 5.5+

    Netbeans 5.5 or Netbeans 5.5.1
    Is there any possible fix for the slow code completion within the editor? I've googled this issue and haven't found much of anything relevant.
    While, not used all the time - a faster than what it is now code completion would be helpful.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    helloWorld
    Thanks for the response and useful response.
    :P
    I'm not a decent machine now and I guess I'll just keep on typing.
    --Todd                                                                                                                                                                                                                                                                                       

  • Netbeans 6.0 - code completion of method parameters

    I just updated to NetBeans 6.0 and I find the code completion of method parameters very annoying and counter productive.
    It inserts the parameters as keywords when choosing a method from the list after pressing CTRL+SPACE.
    How can I switch this off?
    I searched the options and also the forum but didn't find a solution.

    I know that pressing space or whatever replaces the selected parameter. For a method with a single parameter is not a big problem but this is a poor workaround if a method has more parameters, like eg
    public static String formatDate(Date myDate, String myFormat)
    When typing
    Str.form<CTRL+SPACE,choose method, ENTER>
    it looks like
    Str.formatDate(myDate, errorMessage)
    Although myDate is selected and I can overwrite it, I have to proceed to the next parameter with CTRL+M instead of simply typing a comma. This is very annoying if a method has more parameters and as this annoyance occurs approx. every 5 lines that accumulates.

  • NetBeans 6.0 code completion without old code

    Hi,
    I've simple question for code completion in NetBeans 6.0.
    for ex. if I've this simple code:
    int aaa = 0;
    int bbb = 1;
    int ccc = aaa;
    and now I want change ccc = bbb
    just I use code completion (Ctrl-SPACE)
    int ccc = Ctrl-SPACE-ENTERaaa;
    why reason's
    int ccc = bbbaaa;
    why isn't
    int ccc = bbb;
    Any simple idea how can I accomplish it?
    Thx. Paul

    Please post only Java language questions in these forums. They do not provide support for NetBeans (or other IDEs), you might try the NetBeans site mailing list.

  • Code completion problem in netbeans 5.0

    Hi-
    I just recently switched from using ConTEXT to using netbeans 5.0. However, I cannot seem to get code compeletion to work properly (the main reason I switched).
    It doesn't work at all if I open a .java file on its own even though it's enabled.
    However, if I copy and paste the code into a <new project> then code completion works.
    Is there a way to get code completion to work without generating an entire new project? I just want a simple editor that has code completion. Is this possible with netbeans?
    Thanks!

    Never mind it took a while to find but I figured it out...
    <Ctrl>space or <Ctrl>\ opens up the code completion window
    and as an added bonus Alt+P pops up that ultra cool yellow window that tells you the formal parameters of the function as you enter arguments.
    Me loves the netbeans. Still though I have to have it in a project for it to work so the question still stands...can you use this without creating a project as to use it in a glorified editor fashion?

  • CND problem with code-completion

    Hi,
    First of all I don't really know where to put this post about C++ Pack in NetBeans. I've read one post in which someone suggests that this section will be pretty close...
    Maybe someone here would be so kind and try to help me...
    I'm using Ubuntu 7.04 and I have a problem with code completion in NetBeans 5.5.1 CND and I'm a little bit frustrated right now....
    I installed Netbeans, then CND, Created new C++ Project. Added new source file, with #include <GL/glut.h> directive.
    Whole code was compiled without errors, and that's fine.
    There were some problems with linking but I've added "glut", "GL", "GLU" string to linker parameters in Project Properties.
    The main problem is the code assistant. When I'm hitting "glut" and press ctrl+space it shows functions from glut library but when I type "gl" (to type "glColor3ub...") and try to show the code completion pop-up it shows "No suggestions". The same thing is with GLU library.
    I've installed GL, GLU, glut libraries (they all sit calmly in /usr/include/GL).
    I've added the /usr/include and /usr/include/GL to C++ section.
    I think that the Netbeans is able to find those *.h files because, as I said before, the glut (and the glX) functions are shown properly but there is no sign of "gl" and "glu" FUNCTIONS in code completion (the #define values specified in gl.h and glu.h are on the list, but the functions aren't)...
    I don't have idea why glut and glX are working fine, and gl and glu aren't... If anyone have similar problem, know where to look for an answer or have some suggestions I would be much obliged...
    I've seen Eclipse CDT, Anjuta, kDevelop, Code::Blocks, VIM + icomplete... after checking them all there is only one decision - I want to use NetBeans CND. It's user-friendly, fast and I just like it. That's why I would really like to know why the code-completion isn't working in 100%...

    Vladimir,
    The glColor3ub function declaration is in gl.h file (which along with glu.h is included in glut.h).
    Thanks Maxim,
    In the matter of fact since yesterday I've been looking for the reason why the GL and GLU aren't indexed properly by the Netbeans CC and I've found something.
    The GLU library was indexed after deleting
    #include <GL/gl.h>directive. So it means that the gl.h library is messing up.
    I've checked whole file (gl.h) and noticed that the only part which is in conflict with NetBeans is this one:
    #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
    #  define GLAPI __attribute__((visibility("default")))
    #  define GLAPIENTRYI'm using GCC 4.1 so the expression value is 401, so the GLAPI define looks like the line above.
    gl.h is indexed properly by NetBeans when it is representing "extern", so it should look like
    #  define GLAPI externIt is working fine if you delete this part of gl.h or for example (which I've done) add predefined macro (or change the existing one)
    __GNUC_MINOR__=-200I know that it isn't very clean solution... I'm not happy with cheating NetBeans about the version of installed GCC but unfortunately I am not a specialist in GNU C so maybe someone would find more elegant solution.
    As far as I know the __attribute__ feature makes the GCC more verbose (warnings, errors) but I don't know how much functionality am I loosing in fact...
    Edit: Why the code tags aren't working? :/
    Message was edited by:
    Makula

  • Shortcut keys for code completion

    Hi!
    I just wondered what keys are used to make use of the code completion functionality
    (I'm used to MS products where ctrl+space or ctrl+j often is used).
    Thanks, Thomas

    I don't think there is a public document available for planned new 9.0
    features.
    Code reformatting will be in 9.0, and will of course also apply to
    auto-generated code as it's inserted.
    If you have other features you'd like to see, please post them on this
    newsgroup.
    Josh
    Doug Orr wrote:
    Is code reformatting available in 8.1? If not, is it planned for 9.0? Is there
    a resource that describes planned enhancements?
    Josh Eckels <[email protected]> wrote:
    That will be part of version 9.0, but unfortunately is not included in
    8.1.
    Josh
    Richard Hendershot wrote:
    what about Netbeans-style aliases? With that, I type "sout " and the
    editor responds by expanding to System.out.println. I found the help
    about keyboard shortcuts but nothing about aliases, macros or such.help?
    TIA!
    -rsh
    Anurag Pareek wrote:
    Thomas,
    Code completion in Workshop can be done by adding a period (".") in
    front of
    the object variable.
    For example,
    HelloWorld h = new HelloWorld();
    h.
    As soon as you type the '.' in front of 'h'. it shows a dropdown list
    of all
    the public methods exposed in HelloWorld class.
    Regards,
    Anurag
    "Thomas Anderson" <[email protected]> wrote in message
    news:[email protected]..
    Hi!
    I just wondered what keys are used to make use of the code completionfunctionality
    (I'm used to MS products where ctrl+space or ctrl+j often is used).
    Thanks, Thomas

  • Exception during code completion

    Hi:
    I am using sun one studio 4 CE. When editing java code in a specific project, I try to use code completion but get the following exceptions:
    Wed Feb 12 15:45:32 EST 2003: java.lang.IllegalArgumentException: Incompatible implementation: org.netbeans.modules.java.parser.SourceImplProxy@b874d2
    java.lang.IllegalArgumentException: Incompatible implementation: org.netbeans.modules.java.parser.SourceImplProxy@b874d2
    at org.netbeans.modules.java.JavaParserGlue.getBinding(JavaParserGlue.java:263)
    at org.netbeans.modules.java.JavaParserGlue.sourceToText(JavaParserGlue.java:650)
    at org.netbeans.modules.java.JavaParserGlue.findElement(JavaParserGlue.java:618)
    at org.netbeans.modules.editor.java.NbJavaSyntaxSupport.getMethodStartPosition(NbJavaSyntaxSupport.java:100)
    at org.netbeans.editor.ext.ExtSyntaxSupport.buildLocalVariableMap(ExtSyntaxSupport.java:322)
    at org.netbeans.editor.ext.ExtSyntaxSupport.getLocalVariableMap(ExtSyntaxSupport.java:315)
    at org.netbeans.editor.ext.ExtSyntaxSupport.findType(ExtSyntaxSupport.java:296)
    at org.netbeans.editor.ext.java.JavaCompletionQuery$Context.resolveItem(JavaCompletionQuery.java:404)
    at org.netbeans.editor.ext.java.JavaCompletionQuery$Context.resolveExp(JavaCompletionQuery.java:264)
    at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:104)
    at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:52)
    at org.netbeans.editor.ext.Completion.actionPerformed(Completion.java:382)
    at org.netbeans.editor.ext.Completion.popup(Completion.java:337)
    at org.netbeans.editor.ext.Completion.setPaneVisible(Completion.java:281)
    at org.netbeans.editor.ext.ExtKit$CompletionShowAction.actionPerformed(ExtKit.java:1031)
    at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:133)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2435)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2470)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2398)
    at java.awt.Component.processEvent(Component.java:4902)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
    at java.awt.Component.dispatchEventImpl(Component.java:3468)
    [catch] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    However this DOES NOT happen in other projects!
    Any help is resolving this would be appreciated.
    Thanks.
    vjktm

    Try posting to the Studio forum. This forum is for general Sun ONE issues.

  • Code completion particular not working

    Hello,
    in my program there are serveral internal classes. Each class has its own include file. Code completion seems not working for internal classes in other include files.
    example:
    lcl_class1 in includec01   (first included)
         class-methods static1_1
         methods method1_1
    lcl_class2 in includec02   (second included)
         class-methods static1_1
         methods method1_1
    problem:
    While development in lcl_class2 there are no code completion for lcl_class1.
    No code completation for lcl_class1=>static1_1
    but if you declarate "data lo_myclass type ref to lcl_class1." code completion is working fine for public member methods and attributes in the same file.
    In Functiongroups all working fine.
    Best Regards
    Markus Bauernschmitt
    Und da hier eh die meisten deutschsprachig sind und mein Englisch grausam ist, nachfolgend die Erklärung nochmal auf deutsch.... ;-)
    In meinen Programmen findet die Codevervollständigung keine interne Klassen aus vorangegangenen include Dateien. Dadurch werden weder die Klassen selbst noch die statischen Methoden angezeigt. Gebe ich eine statische Methode ein und möchte die Hilfe anzeigen (F2) erscheint die Fehlermeldung "Codeinformationen sind nicht verfügbar".
    Dieses Problem tritt nicht auf, falls die Deklaration einer Variablen in der gleichen Include Datei erfolgt.
    Deklaration einer Variablen in der aktuellen Include Datei -> Dokumentation der öffentlichen (nicht statische) Methoden und Attribute funktioniert
    Zugriff auf öffentliche (statische oder nicht statische) Methoden und Attribute von globalen Variablen (deklariert in einer anderen Datei) funktioniert dagegen nicht.
    Es sind nur anscheinend nur Programme betroffen. Bei Funktionsgruppen (getestet am Beispiel "ldemo_cr_car_rental_screen") trat der Fehler nicht auf.

    Hi Dominik,
    thank you for your answer. The internal classes are already simple and lightweight. In my understanding of OO I keep classes private as possible and so I create this specific "one program helper classes" in the smallest reasonable scope.
    However, this is a architektur decission. But the pivotal question is: Why working this kind of code completion in function groups but not in programs.
    Some additional information.
    - Code completion working in "START-OF-SELECTION."
    - In Functiongroup includes (Testcase lcl_class1 show as public type and lcl_class2 show as local public class.
    Best regards
    Markus

  • Code completion(insight) not working in SQL Developer Version 2.1.1.64

    I recently downloaded SQL developer Version 2.1.1.64. However the code completion feature is not working automatically. I have checked the Automatically complete code in SQL worsheet checkbox under Tools->Preferences-> Code Editor-> Completion Insight.
    Strangely, I get the code completion pop up window when I explicitly press the completion insight shortcut(Ctrl + Space).
    Please help.
    Thanks and Regards.

    Hi, I am getting the following logs :
    Code completion time = 1015
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 360
    Code completion time = 844
    Finished parsing = 0
    *...?aux tok2?, parse time = 62
    InsightableOracleDatabase.fetch() time = 344
    Code completion time = 812
    Finished parsing = 0
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 359
    Code completion time = 891
    Finished parsing = 0
    Thanks

  • Auto code completion settings for new ABAP Editor

    Dear all,
    I am working in New ABAP editor but i am unable to set auto code completion,
    please tell about customising of new ABAP editor for Auto code completion.
    Thanks and regards,
    Gaurav Sood

    Hello,
           1.      Choose Utilities ® Settings.
    The User-Specific Settings dialog box appears.
           2.      Choose ABAP Editor. 
           3.      Set the new editor mode.
    From:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/29dee414483fe1e10000000a11466f/frameset.htm
    Regards,
    Jorge Diogo

  • Kdevelop and code completion

    hi all, i'm trying to resolve a trouble... i use kdevelop for write c++ code and i cannot use code completion... in kdevelop faq there's wrote that i can activate code completion in the projects options' section named "Specific c++", i ativate it but i cannot use always the code completion. i've read that i must disable the abbreviation part, and i disable it, (in plugin settings) and i try to add the persistent class store on my projects dir, but i cannot use code completion. so, what can i do? anyone can help me?
    thanks

    i'm sorry, now i can use code completion, i must activate the c++ parser.
    thanks

  • Jdeveloper11gR2 Cannot get code Completion Insight in *.jsp files

    I am not getting code completion insight when pressing Ctrl + Space in *.jsp files. But it works in *.java files. My version of Jdeveloper is Jdeveloper 11g Release 2 version 11.1.2.2.0 .
    Edited by: Smitha Bhatt on Jun 7, 2012 5:40 PM

    I filed bug 14169588 for this.

  • What are the code completion keys in JDeveloper on Mac?

    Does anybody know which key combinations to use for code completion in the Java editor in JDeveloper on a Mac?

    I found out myself. The default key combination (<ctrl>+ space) does not work on my Mac, it pops-up the menu of VMWare Fusion.
    So I assigned another key combination under Preferences->Shortcut Keys. The auto-complete commands to be re-asigned are "Completion Insight" and "Smart Completion Insight".

  • Flash builder 4.5 code completion doesn't show public function

    Hi,
    I am migrating from flex3 to flash builder 4.5 and it shows a question mark at one of my lines.
    No errors, and the code works fine when i run it.. only there is no code completion in flash builder.
    My code:
    //i use a custom component like this:
    <generalmenu:menu x="59" y="58" id="mymenu"/>
    //this component loads its functions from a separate as(no class just simple as code) file (so i don't have all code in the file with visual components)
    <fx:Script source="menusource.as"/>
    //inside menusource.as there is a function that takes care of closing my app.
    public function closeprogram():void
         //closing window goes here
    my problem..
    when i type inside my function at application level:
    mymenu.closeprogram();
    i get a question mark in front of it: Call to a possibly undefined method closeprogram
    code completion doesn't recognize my public functions inside the mymenu component, it does see mymenu but when i hit .(dot) it doesn't give me a list of functions.
    How can i get code completion to work? Are there changes in the way you call as files in flash builder 4.5? Please some help.. code completion makes life much better.

    I found why the nasty behavior above was happening ::- D.
    I usually design my classes in Enterprise Architect. Since this is a rather large project, started from of about 30 classes, I did the entire architecture in EA, then, generated the code.
    But, EA has poor AS3 support. And as a consequence, it has a few issues, such as the way it generates CONSTRUCTORS:
    public function G3Widget (name: String, parent: IG3Parent = null): void
    Spot the mistake ::- D.

Maybe you are looking for