need help setting up Jane and CodeAid for Java code completion
Submitted by Monday, 5 April, 2004 - 17:56
on
I have JEdit 4.1 here on Windows XP and would like to use CodeAid for code completion when editing Java source files. I am not sure how to set up a libary with Jane so that the SUN SDK/JRE API is known to CodeAid.
I have set up one library named jsdk14 with Jane with the following paths:
Source Path: C:\Program Files\Java\j2sdk1.4.1_01\src.zip
Class Path: C:\Program Files\Java\j2sdk1.4.1_01\jre\lib\rt.jar
Doc Path: D:\docs\Java\j2sdk1.4.1\docs\api
Unfornunately the documentation is not very detailed about what for instance is the right thing (directory or index.html or ?) to point the doc path to.
When I now try a simple Java program like
public class Test20040405 {
public static void main (String[] args) {
String s = "Kibology for all.";
System.out.println(s.
and select Plugins->CodeAid->Complete I get a dialog window with a BeanShell error:
java.lang.NullPointerException
at codeaid.popup.ContextPopup.updateY(ContextPopup.java:231)
at codeaid.popup.ContextPopup.refresh(ContextPopup.java:164)
at codeaid.popup.ContextPopup.removeCompletionContext(ContextPopup.java:131)
at codeaid.popup.ContextPopup.addCompletionContext(ContextPopup.java:100)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.BSHPrimarySuffix.doName(Unknown Source)
at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Any hints on what could be wrong and how to properly set up Jane with a library so that the SUN JDK/JRE classes are known to CodeAid for code completion are appreciated.
Martin
I have set up one library named jsdk14 with Jane with the following paths:
Source Path: C:\Program Files\Java\j2sdk1.4.1_01\src.zip
Class Path: C:\Program Files\Java\j2sdk1.4.1_01\jre\lib\rt.jar
Doc Path: D:\docs\Java\j2sdk1.4.1\docs\api
Unfornunately the documentation is not very detailed about what for instance is the right thing (directory or index.html or ?) to point the doc path to.
When I now try a simple Java program like
public class Test20040405 {
public static void main (String[] args) {
String s = "Kibology for all.";
System.out.println(s.
and select Plugins->CodeAid->Complete I get a dialog window with a BeanShell error:
java.lang.NullPointerException
at codeaid.popup.ContextPopup.updateY(ContextPopup.java:231)
at codeaid.popup.ContextPopup.refresh(ContextPopup.java:164)
at codeaid.popup.ContextPopup.removeCompletionContext(ContextPopup.java:131)
at codeaid.popup.ContextPopup.addCompletionContext(ContextPopup.java:100)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.BSHPrimarySuffix.doName(Unknown Source)
at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Any hints on what could be wrong and how to properly set up Jane with a library so that the SUN JDK/JRE classes are known to CodeAid for code completion are appreciated.
Martin