powered by Jive Software

Compile error due to SocketFactory?!

I created a chat program using the Smack libraries and when I integrated it into a larger program my company is working on, I get this compiling error:

The type javax.net.SocketFactory cannot be resolved. It is indirectly referenced from required .class files[/code]

I am clueless as to what this is referring to. This is the only thing that is causing the program not to compile.

EDIT:

Here is a part of my code. I get a compile error at

con = new XMPPConnection(“im167”,5222);

Interestingly enough, if I just have the host it compiles fine, but I need the port number.

XMPPConnection con= null;

try {

con= new XMPPConnection(“im167”,5222);

con.login(“test”, “test”);

textarea.append(“Connection Successful\n”);

}catch (XMPPException e) {

e.getXMPPError();

}[/code]

Message was edited by: PhilCDM

Can I answer any questions to help out? I’‘m real clueless on this one and it’'s killing me!

Hi,

could you post the classpath if there is something special and the java version you are using?

Are you using -Xbootclasspath to start the other application?

Maybe you can try it with -Xbootclasspath/a: to load the three Smack jar files before you load any other jar files.

LG

Had to use multiple threads