Hint: Unbound classpath variable

From: Ashley Aitken (mrhatke..ac.com)
Date: Thu Jul 22 2004 - 09:42:24 EDT

  • Next message: David Teran: "Re: Couldn't find the DES algorithm; perhaps you do not have the SunJCE security provider installed properly?"

    Just in case any others new to WOLips and Eclipse 3.0 see this error
    when adding an EOModel:

    > Am 25.06.2004 um 05:28 schrieb Till Heikamp:
    >>
    >> i created a new project on wolips1.1.0.60/eclipse3.0rc3/osx10.3.4.
    >> i inserted a new eomodel with the jdbc-adaptor setting enabled.
    >>
    >> then i get the following errors:
    >>
    >> 1. The project cannot be built until build path errors are resolved
    >> 2. Unbound classpath variable:
    >> 'System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/
    >> javajdbcadaptor.jar' in project test

    And try what (the kind and helpful) Ulrich suggests:

    Ulrich Koster wrote:
    > you're facing two bugs. As workaround do the following:
    >
    > Open the context menu for the project and choose properties. Remove
    > the entry JavaJDBCAdaptor from the classpath. It's on the "Java Build
    > Path Page".
    > Close the dialog.
    > Open the context menu for the "WOFrameworks" entry in your project and
    > choose configure. Add the JavaJDBCAdaptor.

    You might get lost (or have Eclipse hang).

    I've found the following:

    If you click on the Project folder in the Navigator pane and then
    either use the contextual menu oor the Project menu and choose
    Properties and then select the Java Build Path pane on the left
    handside and then select the tab with Libraries on the righthand side
    you will see "JRE System Library ..." and "WO Frameworks." Expanding
    WOFrameworks you will probably see that JavaJDBCEOAdapator framework
    (and JAR) are missing. This seems to be the cause of the error.

    Now, I couldn't find the above-mentioned context menu for WO
    Frameworks, it seems the interface to Eclipse must have changed since
    Ulrich gave this advice or (more likely) I was doing something wrong.
    After trying some of the buttons on the righthand side (and
    experiencing numerous hangs of Eclipse) I have found the following:

    Add JARS ... is not useful.

    Add External JARS ... can be used to add the JAR but it is not put
    under the WOFrameworks collection

    Add Variable is not relevant

    Add Library ... seems to be relevant since you can choose to add a WO
    Framework (or a WO Framework Old) but when I tried this it HUNG
    Eclipse, so BEWARE!

    Add Class Folder ... didn't seem to be relevant.

    What you need to do is select the WO Frameworks collection and then
    choose Edit ... in which case you are given a list of some key
    locations on your system. Expand System and then you are given the
    option of selecting or deselecting all the frameworks in that location.
      Select JavaJDBCAdaptor (not JDBCEOAdaptor) and click Finish.

    I am not sure what the hint about using Ctrl-click or Shift-click are:
    I suspected they were to allow you to add selections without
    deselecting the others, but it seemed to be unnecessary to use those
    modifiers. Anyone know what they do?

    Finish by clicking Ok in the Properties panel and the Problem
    (mentioned above) should go away.

    Not very intuitive (for me at least) but there it is.

    Hope that helps.

    BTW, I'm still stuck trying to get WOBuilder to see the application and
    session objects in a standard WO Application project. Is this problem
    being seen by anyone else? Any suggestions on how to fix it?

    Cheers,
    Ashley.

    Eclipse 3.0.0, WOLips 1.1.0.70 beta 1, MacOSX 10.3.4, Webobjects 5.2.3

    --
    Ashley Aitken
    Perth, Western Australia
    mrhatken at mac dot com
    



    This archive was generated by hypermail 2.0.0 : Thu Jul 22 2004 - 09:42:56 EDT