2 Replies Latest reply on Apr 19, 2004 4:48 PM by mike andrews

    Unbound classpath container org.eclipse.jdt.USER_LIBRARY/JBO

    Mike Rooney Newbie

      The Eclipse .classpath (1.2) in the sourceforge jboss-mail project fails to build due to an "Unbound classpath container" error on org.eclipse.jdt.USER_LIBRARY/JBOSS_LIBS.

      I'm using Eclipse 2.1.3 with JBoss IDE 1.2.3. I can't find where a classpath container can be defined in Eclipse. The Eclipse docs make me think it should part of the JBoss IDE plug-in. There is a checkbox on the "Window -> Preferences" dialog under "Plug-in Development / Java Build Path" that lets you specify if you want to use classpath containers for dependant plug-ins. I checked that and upgraded by JBoss IDE from 1.2.2 to 1.2.3 and the project still doesn't build.

      Is it possible that the JBoss IDE plug-in for Eclipse 3.0 has the classpath container defined and not the 2.1 plug-in?

        • 1. Re: Unbound classpath container org.eclipse.jdt.USER_LIBRARY
          Kabir Khan Master

          AFAIK the .classpath and .project files used by eclipse are kind of just meant to be guidelines (since for almost everything I've looked at in JBoss I've needed to make some minor modifications).

          If I have understood you correctly, you should open the jbmail project properties in Eclipse and select the Libraries tab. Delete the JRE System Library and press the Add Library button. Select JRE System Library, and make sure you point to a 1.4.2 JRE (or create a new entry for JDK 1.4.2).

          Hopefully that will solve your problem.

          Cheers,

          Kab

          • 2. Re: Unbound classpath container org.eclipse.jdt.USER_LIBRARY
            mike andrews Newbie

            that's my bad --- should have documented it in file 'BUILDING.txt'. will do so right after posting this note.

            i added a user library called 'JBOSS_LIBS' a while back which should be instantiated by each eclipse end-user locally. this library should include all the jboss jars (in $JBOSS_HOME) which are needed to build the jboss-mail project.

            in eclipse 3.0, its under the Window/Preferences menu, and then under the Java/Build Path/User Libraries tree node.
            there i defined a user library called 'JBOSS_LIBS' which includes all jars from $JBOSS_HOME/server/default/lib and $JBOSS_HOME/lib (substitute $JBOSS_HOME with an actual directory on your system)

            this is the only way i know how to do this in an abstract and portable way (involves a tiny bit of work on every eclipse instance), and i bet there's an even better way to do it but unfortunately i'm an eclipse newbie and only use it occassionally. most of the time i use emacs/shell but often go to eclipse for some of its special features.