At 03:29 PM 1/30/00 +0200, Jari Aalto+mail.emacs wrote:
>* Thu 2000-01-27 Paul Kinnucan <[EMAIL PROTECTED]> list.emacs-jde
>* Message-Id: <[EMAIL PROTECTED]>
>| At 09:44 AM 1/27/00 +0000, you wrote:
>| >i've just installed JDE in my emacs and i was wondering if JDE can do the
>| >following. Can i configure it to auto-complete (or list) the methods
>| >available to a variable.
>| >JDE would check the type of the variable and list the methods available to
>| >it. I've used this feature in 'anyj' but this program is to slow (java
>| >version :-)) so i'd like to change to JDE.
>| >
>| 
>| Place cursor at end of partially completed field or method name and type
>| C-c C-v C-.
>| 
>| Note, due to a bug in the JDE "intellisense" code, the current source file
>| must have an import statement for its own package, e.g.
>| 
>| package mypackage;
>| import mypackage.*;
>| 
>| in order to complete fields and methods for classes defined by the current
>| package. Also, note that the completion facility is based on Java
>| reflection and hence works only for compiled classes.
>
>I tried to complete simple (in latest jde; Emacs 20.4)
>
>    import java.lang.*
>
>    System.out.<HERE>
>
>and the answer is: Can't find any declaration for ....
>What is the excat setup that is needed for completion to work? The
>ReleaseNotes.txt only mention that this function was added.
>

Nothing special is required. The reason it doesn't work in your case is
that it requires the beanshell and the beanshell is not working in your case.

>
>
>The bsh() call also gives following error:
>
>java.lang.NoClassDefFoundError: bsh/Interpreter
>Exception in thread "main" 
>Process bsh exited abnormally with code 1
>
>(getenv
"CLASSPATH")";.;D:\\bin\\wbin\\programming\\java\\sun\\jsdk2.1;D:\\bin\\wbin
\\programming\\java\\sun\\jswdk-1.0.1;D:\\bin\\wbin\\programming\\java\\sun\
\jaf-1.0.1;D:\\bin\\wbin\\programming\\java\\sun\\bdk-1.1;D:\\bin\\wbin\\pro
gramming\\java\\sun\\bdk-1.1\\jars;D:\\bin\\wbin\\programming\\java\\sun\\ja
xp-1.0-ea1;D:\\bin\\wbin\\programming\\java\\sun\\swing-1.1.1fc\\swingall.ja
r;D:\\bin\\wbin\\programming\\java\\sun\\jdk1.2.2\\lib;D:\\bin\\wbin\\progra
mming\\java\\sun\\jdk1.2.2\\jre\\lib;D:\\bin\\wbin\\programming\\java\\sun\\
jdk1.2.2\\jre\\lib\\ext;D:\\bin\\wbin\\programming\\java\\jcvs-5.1.1\\applic
ation\\jcvsii.jar;D:\\bin\\wbin\\programming\\java\\jcvslet-0.9.5\\jcvslet.j
ar;D:\\bin\\wbin\\programming\\java\\SQLClient\\application\\sqlclient.jar;e
:\\usr\\local\\lib\\site-lisp\\common\\programming\\java\\jde\\jar;e:\\usr\\
local\\share\\libgcj.zip"
>
>(jde-find-jde-data-directory)"e:/usr/share/site-lisp/common/programming/jav
a/jde/jde-2.1.6beta16/"
>
>jde-run-java-vm-w 
>--> "javaw"
>
>system-type
>--> windows-nt
>
>jde-global-classpath
>--> nil
>

Perhaps your classpath env variable is the problem. It has some oddities,
like beginning with a semicolon. The beanshell uses the env variable only
if jde-global-classpath is not defined. So an easy way to confirm or  rule
out the classpath as the culprit is to set jde-global-classpath to a single
path. Try this and let me know if you're still having problems.

- Paul

Reply via email to