cannot find symbol
843810Dec 14 2005 — edited Dec 14 2005Hi all,
Can anyone please help me with this.....I was stuck with this errors for ages.
the errors is:
C:\folder\MyPeer.java:12: cannot find symbol
symbol : constructor Peer()
location: class com.alltigo.locationtag.sdk.Peer
public class MyPeer extends Peer
My classpath is ok. the Peer.class file is also in the directory. But what is wrong with this source code?
import com.alltigo.locationtag.*;
import com.alltigo.locationtag.sdk.*;
//import com.alltigo.locationtag.PeerFactory;
//import com.alltigo.locationtag.sdk.Peer;
//import com.alltigo.locationtag.sdk.PeerConfiguration;
import org.jivesoftware.smack.*;
import org.hsqldb.*;
import org.hsqldb.jdbc.*;
import org.hsqldb.util.*;
public class MyPeer extends Peer
{
public static void main(String args[])
{
MyPeer myPeer = new MyPeer();
PeerConfiguration peerConfiguration = new PeerConfiguration();
peerConfiguration.setPeerType(MyPeer.class);
myPeer = (MyPeer) PeerFactory.createPeer(peerConfiguration);
myPeer.addConnectionStatusListener(new ConnectionListener());
myPeer.connect("xmpp.alltigo.com");
myPeer.createAccount("user", "test");
myPeer.login("user", "test");
DeviceManager deviceManager = monitorPeer.getDeviceManager();
}
public void MonitorPeer(PeerConfiguration peerConfiguration)
{
super(peerConfiguration);
}
protected void initialize() throws LocationTagException{}
}
Pls. help me.....