2 Replies Latest reply on Jul 24, 2007 1:22 PM by khosro_question

    setting classpath

    khosro_question

      Hello,
      In exercise 4.1 the writer said that "add all the JARs in $JBOSS_HOME/client to the Java classpath".Where is a java classpath?where exactly i paste them?In which folder?

        • 1. Re: setting classpath
          oxyale

          What it means is this...
          Inside the build.xml for that exercise you will make a change to include the jboss client jars. The simplest thing to do is take the following block:

          <fileset dir="${jboss.home}/client">
           <include name="*.jar"/>
          </fileset>


          And add it inside the section of XML defined by the tags:
          <path id="classpath">...</path>


          "add all the JARs in $JBOSS_HOME/client to the Java classpath" simply means include all jar files necesssary to run the client (i.e. C:\jboss-4.2.0.GA\client\*.jar). Since the "run.client" target already references the path id where you just added all jars, I don't think there is any further change required.

          Hope this helps.
          -oxyale

          • 2. Re: setting classpath
            khosro_question

            Hi,
            It is so strange that ,without this setting you said program works.It is not necessary to put this line in build.xml:





            Why?