Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cannot find symbol

843810Dec 14 2005 — edited Dec 14 2005
Hi 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.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2006
Added on Dec 14 2005
1 comment
125 views