powered by Jive Software

Setting class path for smack

hi

i’‘ve just downloaded smack-dev-1.2.1 for developing a simple chat client.i’'ve set the path and when i execute a small prgm to make a connection to jabber server.it says it cannot

import org.jivesoftware.smack.*

i’‘m working on win2000.can anyone give me the exact string to set class path and also do i need to unzip the file i’'ve downloaded.

bye

bobby

bobby,

There is no need to unzip the file. You just need to add smack.jar and smackx.jar to the classpath if you are running smack as a stand-alone application.

Under W2K go to “Control Panel>System” select the “Advanced” tab and press the button “Environment Variables”. Make sure that you have these variables defined:

JAVA_HOME - Your Java installation directory

CLASSPATH - All your JARs and classes that need to be found (specifying the full path to these files)

Regards,

– Gato

Message was edited by: dombiak_gaston

bobby,

Oops, my answer was too fast. I just re-read your post and realized that you have downloaded smack-dev-1.2.1. In this case you will need to unzip this file and add the files smack.jar and smackx.jar to your classpath.

Sorry,

– Gato