>>>>> "Ralph" == Ralph Jocham <[EMAIL PROTECTED]> writes:

  Ralph> Hi, I tried the import class functionality from JDE and it
  Ralph> does not work. As far as I understand the documentation it
  Ralph> parses the CLASSPATH of the project for the class. The only
  Ralph> files it finds are the ones which are also part of
  Ralph> java. I.e. we have a class Observer but when I try to get the
  Ralph> import the result is 'java.lang.util' which is wrong. All the
  Ralph> other classes are not found. The global classpath is set,
  Ralph> what else do I need to set?


         It will only found classes that are present at the time that
when the beanshell was first started. If the classes that you are
trying to import have been recently created it is not going to
work. You can use the `jde-wiz-update-class-list' function to update
the list. From the documentation


Update the class list used to resolve class names. 

The first time you invoke a JDE wizard, the JDE builds a list of all
classes on the classpath defined by jde-global-classpath. Wizards use
this list to resolve unqualified class names. If you add any classes
to the classpath after invoking a wizard, you should update the class
list.

        Its bound to C-c C-v C-q or jde-->wizards-->Update Class List
by default. 

        If this is not your problem then the chances are that you 
are just doing something wrong. Try typing 

System.out.println( jde.wizards.ImportWizard.CLASS_LIST );

        onto the *bsh* command line. This takes a few seconds to 
do anything (don't you love Java string catenation!) and then you will
get a long long list of all the classes JDE knows about. So you should
be able to see if any of your classes have been incorporated!

        Phil

Reply via email to