Need help... someone?
hey,
im currently having some problems with my project that im working on and really need some help. the code is too big and messy to post here so if your willing to help, plz leave your email address and ill send u the code as well as the problem. (btw its public domain software)
thanks in advance,
Vojnik
ok fine, if u think of it like that, here is the extremely long code:
import java.nio.*;
import java.nio.charset.*;
import java.nio.channels.*;
import java.util.*;
import java.net.*;
import java.io.*;
* ChatterClient.java
public class ChatterClient extends Thread {
private static final int BUFFER_SIZE = 255;
private static final long CHANNEL_WRITE_SLEEP = 10L;
private static final int PORT = 10997;
private ByteBuffer writeBuffer;
private ByteBuffer readBuffer;
private boolean running;
private SocketChannel channel;
private String host;
private Selector readSelector;
private CharsetDecoder asciiDecoder;
private String username;
private GUI gui;
private InputThread it;
public String nextMessage = "";
* Calls run() when created.
* @param host - String
* @param username - String
public ChatterClient(String host, String username, GUI gui) {
this.host = host;
this.username = username;
this.gui = gui;
readBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
writeBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
asciiDecoder = Charset.forName("US-ASCII").newDecoder();
this.start();
public void run() {
connect(host, username); //connects to the server using the ip or hostname, does not yet send username with it
it = new InputThread(this);
it.start();
running = true;
readIncomingMessages();
try {
this.sleep(100);
}catch (InterruptedException ie) {
private void connect(String hostname, String username) {
try {
readSelector = Selector.open();
InetAddress addr = InetAddress.getByName(hostname);
channel = SocketChannel.open(new InetSocketAddress(addr, PORT));
gui.chatDisplay.append("Connected"); //give a signal to the user that they are connected to the server
channel.configureBlocking(false);
channel.register(readSelector, SelectionKey.OP_READ, new StringBuffer());
sendMessage("/nick "+username); //sends the command to change the clients username, which is nothing when they first connect
gui.connected = true;
catch (UnknownHostException uhe) {
gui.chatDisplay.append(gui.errorMsg2); //give an appropriate error message to the user when something is wrong
catch (ConnectException ce) {
gui.chatDisplay.append(gui.errorMsg2);
catch (Exception e) {
gui.chatDisplay.append(gui.errorMsg2);
private void readIncomingMessages() {
// check for incoming mesgs
try {
// non-blocking select, returns immediately regardless of how many keys are ready
readSelector.selectNow();
// fetch the keys
Set readyKeys = readSelector.selectedKeys();
// run through the keys and process
Iterator i = readyKeys.iterator();
while (i.hasNext()) {
SelectionKey key = (SelectionKey) i.next();
i.remove();
SocketChannel channel = (SocketChannel) key.channel();
readBuffer.clear();
// read from the channel into our buffer
long nbytes = channel.read(readBuffer);
// check for end-of-stream
if (nbytes == -1) {
gui.chatDisplay.append("**WARNING**: Disconnected from Server");
channel.close();
shutdown();
else {
// grab the StringBuffer we stored as the attachment
StringBuffer sb = (StringBuffer)key.attachment();
// use a CharsetDecoder to turn those bytes into a string
// and append to our StringBuffer
readBuffer.flip( );
String str = asciiDecoder.decode( readBuffer).toString( );
sb.append( str );
readBuffer.clear( );
// check for a full line and write to STDOUT
String line = sb.toString();
if ((line.indexOf("\n") != -1) || (line.indexOf("\r") != -1)) {
sb.delete(0,sb.length());
gui.updateDisplay("test:" + line);
catch (IOException ioe) {
catch (Exception e) {
public void sendMessage(String mesg) {
prepWriteBuffer(mesg);
channelWrite(channel, writeBuffer);
private void prepWriteBuffer(String mesg) {
// fills the buffer from the given string
// and prepares it for a channel write
writeBuffer.clear();
writeBuffer.put(mesg.getBytes());
writeBuffer.putChar('\n');
writeBuffer.flip();
private void channelWrite(SocketChannel channel, ByteBuffer writeBuffer) {
long nbytes = 0;
long toWrite = writeBuffer.remaining();
// loop on the channel.write() call since it will not necessarily
// write all bytes in one shot
try {
while (nbytes != toWrite) {
nbytes += channel.write(writeBuffer);
try {
Thread.sleep(CHANNEL_WRITE_SLEEP);
catch (InterruptedException e) {}
catch (ClosedChannelException cce) {
catch (Exception e) {
// get ready for another write if needed
writeBuffer.rewind();
public void shutdown() {
try { channel.close(); } catch (IOException ioe) {}
running = false;
interrupt();
public void setNextMessage(String msg){
this.nextMessage = msg;
gui.updateDisplay(nextMessage);
* InputThread reads user input from STDIN
class InputThread extends Thread {
private ChatterClient cc;
private boolean running;
public InputThread(ChatterClient cc) {
this.cc = cc;
public String getNextMessage(){
return nextMessage;
public void run() {
String s = "";
running = true;
while (running) {
s = getNextMessage();
if (s.length() > 0)
cc.sendMessage(s + "\n");
if (s.equals("/quit"))
running = false;
cc.shutdown();
public void shutdown() {
running = false;
interrupt();
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.ImageIcon;
import org.netbeans.lib.awtextra.*;
public class GUI extends JFrame implements ListSelectionListener, ListDataListener {
public GUI()
initComponents();
private void initComponents() {
//initialization of all of the components
ImageIcon logoIcon = new ImageIcon("logo.png");
jLabel2 = new JLabel();
jLabel3 = new JLabel();
usernameField = new JTextField();
jPanel2 = new JPanel();
send = new JButton();
messageInput = new JTextField();
userListScrollPane = new JScrollPane();
jScrollPane1 = new JScrollPane();
chatDisplay = new JTextArea();
logo = new JLabel(logoIcon);
jPanel1 = new JPanel();
away = new JButton();
font = new JButton();
logout = new JButton();
connect = new JButton();
menuBar = new JMenuBar();
menuFile = new JMenu();
menuConnect = new JMenuItem();
menuLogout = new JMenuItem();
jSeparator1 = new JSeparator();
menuExit = new JMenuItem();
menuHelp = new JMenu();
menuItemHelp = new JMenuItem();
jSeparator2 = new JSeparator();
menuAbout = new JMenuItem();
getContentPane().setLayout(new AbsoluteLayout());
setTitle("Chat Mate - ver 2.7.1");
setResizable(false);
setName("frame");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt)
exitForm(evt);
jPanel2.setLayout(new AbsoluteLayout());
jPanel2.setBorder(new TitledBorder(null, "Message", 4, 2));
send.setText("Send");
send.setToolTipText("Click to send your message");
send.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
sendActionPerformed(evt);
jPanel2.add(send, new AbsoluteConstraints(270, 20, -1, 30));
messageInput.setText("Type your message here");
jPanel2.add(messageInput, new AbsoluteConstraints(10, 20, 260, 30));
getContentPane().add(jPanel2, new AbsoluteConstraints(140, 420, 340, 60));
//the List on the side - not implemented yet
DefaultListModel listModel = new DefaultListModel();
listModel.addElement("John Citizen");
listModel.addElement("James");
listModel.addElement("Test 3");
userList = new JList(listModel);
userListScrollPane.setBorder(null);
userList.setBackground(new Color(238,238,238));
userList.setBorder(new TitledBorder(null, "Users Online", 2, 2));
userList.setToolTipText("Users Currently online");
userListScrollPane.setViewportView(userList);
userList.setSelectedIndex(0);
userList.addListSelectionListener(this);
getContentPane().add(userListScrollPane, new AbsoluteConstraints(0, 10, 130, 470));
jScrollPane1.setBorder(null);
chatDisplay.setEditable(false);
chatDisplay.setColumns(1);
chatDisplay.setRows(10);
chatDisplay.setToolTipText("This is where the messages are displayed");
chatDisplay.setLineWrap(true);
chatDisplay.setWrapStyleWord(true);
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
jScrollPane1.setBorder(new TitledBorder(null, "Chat Display", 4, 2));
jScrollPane1.setViewportView(chatDisplay);
jScrollPane1.setAutoscrolls(true);
getContentPane().add(jScrollPane1, new AbsoluteConstraints(140, 10, 340, 410));
logo.setHorizontalAlignment(0);
logo.setBackground(new Color(238,238,238));
getContentPane().add(logo, new AbsoluteConstraints(473, 20, 155, 225));
jPanel1.setLayout(new AbsoluteLayout());
jPanel1.setBorder(new TitledBorder(null, "Options", 2, 2));
away.setText("Away");
away.setToolTipText("Changes your status to away");
away.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
awayActionPerformed(evt);}});
jPanel1.add(away, new AbsoluteConstraints(30, 30, 80, -1));
font.setText("Font");
font.setToolTipText("Change your font settings");
font.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
fontActionPerformed(evt);}});
jPanel1.add(font, new AbsoluteConstraints(30, 80, 80, -1));
logout.setText("Logout");
logout.setToolTipText("Click to disconnect");
logout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
logoutActionPerformed(evt);}});
jPanel1.add(logout, new AbsoluteConstraints(30, 130, 80, -1));
connect.setText("Connect");
connect.setToolTipText("Connect to the server if disconnected");
connect.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
connectActionPerformed(evt);}});
jPanel1.add(connect, new AbsoluteConstraints(30, 180, -1, -1));
getContentPane().add(jPanel1, new AbsoluteConstraints(480, 250, 140, 230));
menuFile.setText("File");
menuConnect.setText("Connect");
menuConnect.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt){
connectActionPerformed(evt);}});
menuFile.add(menuConnect);
menuLogout.setText("Logout");
menuLogout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt){
logoutActionPerformed(evt);}});
menuFile.add(menuLogout);
menuFile.add(jSeparator1);
menuExit.setText("Exit");
menuExit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
menuExitActionPerformed(evt);
menuFile.add(menuExit);
menuBar.add(menuFile);
menuHelp.setText("Help");
menuItemHelp.setText("Help");
menuHelp.add(menuItemHelp);
menuHelp.add(jSeparator2);
menuAbout.setText("About");
menuAbout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt){
menuAboutActionPerformed(evt);}});
menuHelp.add(menuAbout);
menuItemHelp.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt){
menuHelpActionPerformed(evt);}});
menuBar.add(menuHelp);
setJMenuBar(menuBar);
messageInput.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
sendActionPerformed(evt);
pack();
private void sendActionPerformed(ActionEvent actionevent)
String s = "" + messageInput.getText();
if (s.length() > 0){
if (connected) // is the client connected to the server?
if (cc!=null)
cc.setNextMessage(s); //send message to server
else
chatDisplay.append("\n\n**You are not connected to the server**");
messageInput.setText(""); //clears the textbox
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void connectActionPerformed(ActionEvent evt){
boolean validation;
serverInfo = JOptionPane.showInputDialog(null, "Please enter the server's IP Address or hostname if on a network");
chatDisplay.append("Connecting...");
validation = validateServer(serverInfo); //tests to see if the ip or name entered is vaild before attempting to connect
if (!(connected)){
if (validation) {
ConnectToServer();
}else if (!(validation))
chatDisplay.append(errorMsg1);
} else {
if (num > 2) {
connected = false;
num = 0; }
num++;
chatDisplay.append("**Already connected to server** Try:" + num +"\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength()); //sets the message display area
static GUI gui = new GUI();
public static void main(String args[])
gui.setVisible(true);
gui.getUsername();
private void logoutActionPerformed(ActionEvent evt){
chatDisplay.append("\nLogout: This button will be for users who wish to disconnect from the server while leaving the GUI open.\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void fontActionPerformed(ActionEvent evt){
chatDisplay.append("\nFont: This button will give users the option of which font they want to use for their messages.\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void awayActionPerformed(ActionEvent evt) {
chatDisplay.append("\nAway: This button will switch the users status to away.\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void menuExitActionPerformed(ActionEvent evt)
if(cc != null)
cc.shutdown();
System.exit(0);
private void menuHelpActionPerformed(ActionEvent evt) {
chatDisplay.append("\nQUICK HELP\n\nTo connect to a server, click connect and supply the server's ip address or the server's hostname. More help is found in the online help file \"ReadMe.txt\"\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void menuAboutActionPerformed(ActionEvent evt){
chatDisplay.append("\nABOUT\n\nMade by Nedim Jackman, Year 12 HSC SDD 2004.\nAny comments/questions/critiscisms, email: [email protected]\n");
chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
private void exitForm(WindowEvent evt)
if (cc != null)
cc.shutdown(); //closes the connection to the server with a graceful exit
System.exit(0); //**** NEED TO CHANGE TO PREVENT ERROR 2 SERVER
public void getUsername() { //gets the users name to be displayed with each message
//If nothing is entered, a random name is generated and used. The user can change this later
username = JOptionPane.showInputDialog(null, "Please enter your username"); //opens the input dialog which asks for the name
if ((username == null) || (username.length() < 1))
username = "Guest" +(int)(Math.random() * 10000); //create random name if nothing is entered or is cancelled
setUsername(username);
chatDisplay.append("\nWelcome to Chat Mate� " + username + "!\n\nClick connect to start.\n");
public void updateDisplay(String s) {
chatDisplay.append(s);
public String getText(){
return messageInput.getText();
//this method required by the ListListener.
//an optional improvement in the program would be to
//retrieve the details of the user by double clicking their name, or to start a private conversation
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting() == false) {
if (userList.getSelectedIndex() == -1) {
//No selection, disable userInfo
} else {
//Selection, enable userInfo
public void intervalRemoved(ListDataEvent e){
public void contentsChanged(ListDataEvent e){
public void intervalAdded(ListDataEvent e){
public void ConnectToServer() {
ChatterClient cc = new ChatterClient(serverInfo,this.username,this);
* @param String - username
public void setUsername(String username) {
this.username = username;
* @param String - serverInfo
public void setServerInfo(String serverInfo){
this.serverInfo = serverInfo;
public boolean validateServer(String serverInfo){
if (serverInfo != null)
if (serverInfo.length() > 0)
//need more validation
return true;
return false;
private JButton away;
public JTextArea chatDisplay;
private JButton connect;
private JTextField connectionField;
private JButton font;
private JLabel logo;
private JLabel jLabel2;
private JLabel jLabel3;
private JPanel jPanel1;
private JPanel jPanel2;
private JScrollPane jScrollPane1;
private JSeparator jSeparator1;
private JSeparator jSeparator2;
private JButton logout;
private JMenuItem menuAbout;
private JMenuBar menuBar;
private JMenuItem menuConnect;
private JMenuItem menuExit;
private JMenu menuFile;
private JMenu menuHelp;
private JMenuItem menuItemHelp;
private JMenuItem menuLogout;
private JTextField messageInput;
private JButton send;
private JList userList;
private JScrollPane userListScrollPane;
private JTextField usernameField;
private DefaultListModel listModel;
private String username;
private String serverInfo;
public ChatterClient cc;
boolean connected = false;
private byte num = 0;
String errorMsg1 = "\n\n**Error: Invalid Server IP/Hostname.\nPlease try different settings**";
String errorMsg2 = "\n\n**Error: Could not establish connection.\nRetry server settings and make sure the server is active**\n";
import java.nio.*;
import java.nio.channels.*;
import java.nio.charset.*;
import java.util.*;
import java.net.*;
import java.io.*;
import org.apache.log4j.*;
* ChatterServer,java
public class ChatterServer extends Thread {
private static final int BUFFER_SIZE = 255;
private static final long CHANNEL_WRITE_SLEEP = 10L;
private static final int PORT = 10997; //port number is the same used by the client
//initialize variables to be used
private Logger log = Logger.getLogger(ChatterServer.class);
private ServerSocketChannel sSockChan;
private Selector acceptSelector;
private Selector readSelector;
private SelectionKey selectKey;
private boolean running;
private ArrayList clients;
private ByteBuffer readBuffer;
private ByteBuffer writeBuffer;
private CharsetDecoder asciiDecoder;
private String username;
public static void main(String args[]) {
// configure log4j
BasicConfigurator.configure();
// instantiate the ChatterServer and fire it up
ChatterServer cs = new ChatterServer();
cs.start();
public ChatterServer() {
clients = new ArrayList();
readBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
writeBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
asciiDecoder = Charset.forName("US-ASCII").newDecoder();;
private void initServerSocket() {
try {
// open a non-blocking server socket channel
sSockChan = ServerSocketChannel.open();
sSockChan.configureBlocking(false);
// bind to localhost on designated port
InetAddress addr = InetAddress.getLocalHost();
log.info("Server's Address: " + addr.getHostAddress());
log.info("Server's Name: "+ addr.getHostName());
sSockChan.socket().bind(new InetSocketAddress(addr, PORT));
// get a selector for multiplexing the client channels
readSelector = Selector.open();
catch (Exception e) {
log.error("error initializing server", e);
public void run() { //"mainline"
System.out.println("**Chat Mate Server**");
System.out.println("The server has more power than normal users.");
System.out.println("For more information, consult the help file");
initServerSocket();
log.info("ChatterServer running");
running = true;
int numReady = 0;
// block while we wait for a client to connect
while (running) {
// check for new client connections
acceptNewConnections();
// check for incoming mesgs
readIncomingMessages();
// sleep a bit to reduce the strain on the CPU
try {
Thread.sleep(100);
catch (InterruptedException ie) {
} //end "mainline"
private void acceptNewConnections() {
try {
SocketChannel clientChannel;
// since sSockChan is non-blocking, this will return immediately
// regardless of whether there is a connection available
while ((clientChannel = sSockChan.accept()) != null) {
addNewClient(clientChannel);
log.info("got connection from: " + clientChannel.socket().getInetAddress());
sendBroadcastMessage("login from: " + clientChannel.socket().getInetAddress());
sendMessage(clientChannel, "\n\nWelcome to Chat Mate, there are " +
clients.size() + " users online.\n");
catch (IOException ioe) {
log.warn("error during accept(): ", ioe);
catch (Exception e) {
log.error("exception in acceptNewConnections()", e);
private void readIncomingMessages() {
try {
// non-blocking select, returns immediately regardless of how many keys are ready
readSelector.selectNow();
// fetch the keys
Set readyKeys = readSelector.selectedKeys();
// run through the keys and process
Iterator i = readyKeys.iterator();
while (i.hasNext()) {
SelectionKey key = (SelectionKey) i.next();
i.remove();
SocketChannel channel = (SocketChannel) key.channel();
readBuffer.clear();
// read from the channel into our buffer
long nbytes = channel.read(readBuffer);
// check for end-of-stream
if (nbytes == -1) {
log.info("disconnect: " + channel.socket().getInetAddress() + ", end-of-stream");
channel.close();
clients.remove(channel);
sendBroadcastMessage("logout: " + channel.socket().getInetAddress());
else {
// grab the StringBuffer stored as the attachment
StringBuffer sb = (StringBuffer)key.attachment();
// use a CharsetDecoder to turn those bytes into a string
// and append to our StringBuffer
readBuffer.flip( );
String str = asciiDecoder.decode( readBuffer).toString( );
readBuffer.clear( );
sb.append( str);
// check for a full line
String line = sb.toString();
if ((line.indexOf("\n") != -1) || (line.indexOf("\r") != -1)) {
line = line.trim();
if (line.startsWith("quit")) {
// client is quitting, close their channel, remove them from the list and notify all other clients
log.info("got quit msg, closing channel for : " + channel.socket().getInetAddress());
channel.close();
clients.remove(channel);
sendBroadcastMessage("logout: " + channel.socket().getInetAddress());
}else if (line.startsWith("/nick")) {
sendBroadcastMessage("test > change name");
else {
// got one, send it to all clients
log.info("broadcasting: " + line);
sendBroadcastMessage(channel.socket().getInetAddress() + ": " + line);
sb.delete(0,sb.length());
catch (IOException ioe) {
log.warn("error during select(): ", ioe);
catch (Exception e) {
log.error("exception in run()", e);
private void addNewClient(SocketChannel chan) {
// add to our list
clients.add(chan);
// register the channel with the selector
// store a new StringBuffer as the Key's attachment for holding partially read messages
try {
chan.configureBlocking( false);
SelectionKey readKey = chan.register(readSelector, SelectionKey.OP_READ, new StringBuffer());
catch (ClosedChannelException cce) {
catch (IOException ioe) {
private void sendMessage(SocketChannel channel, String mesg) {
prepWriteBuffer(mesg);
channelWrite(channel, writeBuffer);
private void sendBroadcastMessage(String mesg) {
prepWriteBuffer(mesg);
Iterator i = clients.iterator();
while (i.hasNext()) {
SocketChannel channel = (SocketChannel)i.next();
channelWrite(channel, writeBuffer);
private void prepWriteBuffer(String mesg) {
// fills the buffer from the given string
// and prepares it for a channel write
writeBuffer.clear();
writeBuffer.put(mesg.getBytes());
writeBuffer.putChar('\n');
writeBuffer.flip();
private void channelWrite(SocketChannel channel, ByteBuffer writeBuffer) {
long nbytes = 0;
long toWrite = writeBuffer.remaining();
// loop on the channel.write() call since it will not necessarily
// write all bytes in one shot
try {
while (nbytes != toWrite) {
nbytes += channel.write(writeBuffer);
try {
Thread.sleep(CHANNEL_WRITE_SLEEP);
catch (InterruptedException e) {}
catch (ClosedChannelException cce) {
catch (Exception e) {
// get ready for another write if needed
writeBuffer.rewind();
}i wasnt actually trying to scam anyone or whateva u were thinking, i just hate having to put up pages of code in a forum. SORRY TO ANYONE WHO WAS OFFENDED
Similar Messages
-
CS5: Configuration Error 3 I NEED HELP SOMEONE PLZ
I have the configuration error 3
My system requirements are:
Windows 7 Home Premium 64 bit
Pentium Dual Core CPU T4200 @ 2.00GHz
4.0 GB RAM
Moblie Intel 4 Series Express Chipset Family
SOMEONE HELP :c
thnks:)And more specifically? When do you get the error? On install or what? If yso, do you install with sufficient user privileges? are your security settings toned down to allow such operations? Anything else we may need to know aside from this being some sort of notebook?
Mylenium -
Need help someone plz help me o
My creative zen sleek photo which i have had it for about 7 months and the headphone jack collasped inward and now i am unable to use headphones and listen to music. If there is anyway I can fix this please someone let me know asap. And how can I get help with creative customer service.
Check this out:
iPod’s Battery Will Not Charge
I hope this helps! -
I'm trying to change my ICloud e-mail to match the one associated with the Apple ID? Can someone tell me how to do this? Seems like the phone won't accept the new one, the message states "you already have acct associated....." (a given!!) I need help !!
You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.
-
i need help! i am trying to update iphoto on my macbook pro that i had bought from someone else. although i am signed into my account when trying to update it is asking me for the previous owners account details and it wont let me change it to my details how can i solve this problem please.
thank you
Jan RobinsonThat's because the Mac, OS X and the iLife apps that came preinstalled on the Mac all belong to the previous owner. The previous owner needs to call Apple care and have their Apple ID disassociated from the Mac. Then the hard drive needs to be totally erased and OS X and the iLife apps reinstalled using OS X Recovery.
-
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Contact iTunes
Contact iTunes -
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Hello Vaidas Vaidas,
It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
Apple ID: Changing your password
http://support.apple.com/kb/ht5624
What is preventing you from changing your password? Any error messages or prompts?
Thank you for using Apple Support Communities.
All the best,
Sterling -
I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?@
I am having the same problem...did you ever fix it?
-
Got someone else's details on my iPad, need help quick
Ok, I really need help, I work on my new iPad 3 a lot, and my contacts mean a lot to me, but today I opened up my contacts and found names and numbers that i had never seen before in my life, then I opened up the photo stream and realised some girls Random Pictures had turned up...I don't want anything to do with this other persons information. And I don't want them having the ability to access mine, as it is important and private... Why is this happening, why is someone else information merging onto my device, I need immediate help as I'm loosing valuable time. Many thanks.
Go to settings>icloud, and make sure its your account there and not someone elses, and if possible go to icloud.com on a COMPUTER not the device and log in with your apple id, if you feel your account has been jeopardized please call in the apple support line and ask to speak with a iOS Senior advisor
-
i need help replacing a battery in my ipod nano 4th geneartion 16 gb can someone help me with step by step instructions or help me send it to apple store and replace and if so how?
Here is how to do it yourself.
http://www.youtube.com/watch?v=2h53otOBTsI
Here is how to send it to apple.
http://www.apple.com/support/ipod/service/battery/
Hope this helps! -
Hi i need help with my nokia e63 can someone pleas...
i need help with my nokia e63 all the images on the web have really small when they used to be regular size and it has nothing to do with the zooming settings. someone please help.
Cannot send or received email
http://www.apple.com/support/ipad/mail/ -
i need help i lost my ipod and found it but someone elses id is on it i trtied resoring it but i still cant go in it help
See this -> Find My iPhone Activation Lock: Removing a device from a previous owner’s account
-
Really need help as both my iPhone 4 and iphone 5 have the same problem, if I call someone using speaker the call never connects, just "hangs". Then when I give up neither phone will end the call! Been back to apple 3 times and all handsets replaced but still no different!
Not sure if this Term is Relevant towards an iPhone but, my iPhone won't Post unless if it's plugged into a Charger.
-
Hi, I need help on how to update software for my ipad1, can someone help me?
The iPad 1 can not be upgraded beyond 5.1.1. If you haven't upgraded to iOS 5.1.1, see the info below.
If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
http://support.apple.com/kb/HT4972
Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
http://support.apple.com/kb/HT4623
Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
http://support.apple.com/kb/ht1848 -
I Need help!!! The card I used when I first set up my account I lost it so now I can't download any music cause it's wanting a number off that card and I don't have it anymoe... Someone tell me what to do please???
Add another good card and delete the old one, Yu can also purchase and redeem an iTunes gift card and hthen delee the bad credit card. Yu need a valid payment method for update as well even purchasing free apps if the account was set up with a credit card.
-
Need help or someone to edit .fla file
Need help or someone to edit .fla file
The .fla file I want to edit is the flash in header at www.ridinggigistyle.com I want to remove the event button titled Boot Camp. I can send .fla file and request that edited changes be sent back to me. Direct email [email protected]
Maybe you are looking for
-
Table footer issue in body page of adobe form
Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, fo
-
IPhone 3gs needs to be restored but won't
I just a new iPhone 3gs and I hooked it up to my computer and updated my iTunes. Once I did that it told me I had to restore my iPhone, and I tried to do so, but once it gets to the end it says "could not be restored. An unknown error has occurred (1
-
I just created an Air app. and tried to run it on another computer. I had to install the runtime package to get it to work. Is there anyway to attach the runtime package? Or include it. Thanks
-
Hello friends, I have created an variable with the customer exit and created the code for it in ZXRSRU01. When i tried to activate it it shows an error the Variable XXX is unknown. Could some one help me on this ... Thanks in advance and points will
-
Where's the 1GB of bonus data?
To Verizon Customer Service, I ordered an iPhone 6 on 9/22/14 and received it in 10/15/14. My Order Confirmation states that I will receive 1 GB of bonus data for 2 yrs. Still have not seen the 1GB of additional data on My Verizon account. Please hel