2 Replies Latest reply on Jan 30, 2006 5:31 PM by John DeGeiso

    Debug Configuration error???

    John DeGeiso Newbie

      Hello --
      Here is the symptom:::
      For the selected Fibo-tutorial project, EclipseMenu>Debug>Debug...
      the Create, manage,and run configurations dialog's Debug header pane shows this 'error'...
      [JDK]: Could not locate tools.jar. Unexpected results may occur. Make sure that you have selected a JDK with its path pointing to its home directory not to its JRE.

      I have the JBoss4.0.x HomeDir=C:\J2EE\JBoss\jboss-4.0.3SP1 and my EclipseMenu>Preferences>Java>InstalledJRE=C:\J2EE\Java\jre1.5.0_06
      My jdk is at C:\J2EE\Java\jdk1.5.0_06 and DOES contain tools.jar in the lib-folder.

      Please explain what this means? Where/how do I "select a JDK"?

      Thanks, in advance...John

        • 1. Re: Debug Configuration error???
          Burr Sutter Master

          In Preferences - Java - Installed JREs
          Add the JDK and point to: C:\J2EE\Java\jdk1.5.0_06
          In my case, I just deleted the previous JRE entry and use the JDK as the JRE. Then in the Debug dialog on the JDK tab I simpy use Workspace default JRE which is mapped to a JDK.

          Hopefully that makes a little sense.

          I've not encounted a reason to leave the JRE for Eclipse as a plain JRE, JBoss is much happier that it is using a JDK instead.


          • 2. Re: Debug Configuration error???
            John DeGeiso Newbie

            Burr -- THANK you very much -- your hint got me to change the JRE to JDK and we got rid of the tools.jar warning/error.
            HOWEVER -- I rechecked the Ecplise and JBossIDE documentation regarding "setting the JRE" -- and NO-WHERE (did I find) did it suggest that we could specify the JDK for the JRE.

            Thus my struggle to correct the designation implied in the warning/error.

            Perhaps this "screen" in Eclipse could state "...enter JRE or JDK..."

            Not a JBoss-IDE issue I suppose, thus I go away shaking my head.
            (Not too easy this J2EE stuff - eh?)

            Thanks for your feedback -- John.