Cannot resolve Sybol!!!Please help me!

This is my code..
import java.lang.*;
import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.net.*;
class ClientWorker implements Runnable {
private Socket client;
private JTextArea textArea;
ClientWorker(Socket client, JTextArea textArea) {
this.client = client;
this.textArea = textArea;
public void run(){
String line;
BufferedReader in = null;
PrintWriter out = null;
try{
in = new BufferedReader(new InputStreamReader(client.getInputStream()));
out = new PrintWriter(client.getOutputStream(), true);
} catch (IOException e) {
System.out.println("in or out failed");
System.exit(-1);
while(true){
try{
line = in.readLine();
//Send data back to client
out.println(line);
textArea.append(line);
} catch (IOException e) {
System.out.println("Read failed");
System.exit(-1);
public class FinalServer2 extends javax.swing.JFrame {
/** Creates new form FinalServer2 */
public FinalServer2() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
textArea1 = new java.awt.TextArea();
button1 = new java.awt.Button();
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
getContentPane().add(textArea1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 200, 130));
button1.setLabel("button1");
getContentPane().add(button1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 150, -1, -1));
pack();
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
/** @param args the command line arguments
public static void main(String[] args) {
FinalServer2 frame = new FinalServer2();
frame.setTitle("Server Program");
frame.pack();
frame.setVisible(true);
frame.listenSocket();
public void listenSocket() {
try{
server = new ServerSocket(1055);
} catch (IOException e) {
System.out.println("Could not listen on port 4444");
System.exit(-1);
while(true){
ClientWorker w;
try{
w = new ClientWorker(server.accept(), textArea1);
Thread t = new Thread(w);
t.start();
} catch (IOException e) {
System.out.println("Accept failed: 4444");
System.exit(-1);
// Variables declaration - do not modify
private java.awt.Button button1;
private java.awt.TextArea textArea1;
// End of variables declaration
Socket client = null;
BufferedReader in = null;
String line;
PrintWriter out = null;
ServerSocket server = null;
When i compile the code i recieve this message..
FinalServer2.java [111:1] cannot resolve symbol
symbol : constructor ClientWorker (java.net.Socket,java.awt.TextArea)
location: class ClientWorker
w = new ClientWorker(server.accept(), textArea1);
^
Please help me..

ClientWorker(Socket client, JTextArea textArea) {
this.client = client;
this.textArea = textArea;
}<SNIP>
When i compile the code i recieve this message..
FinalServer2.java [111:1] cannot resolve symbol
symbol : constructor ClientWorker
(java.net.Socket,java.awt.TextArea)
location: class ClientWorker
w = new ClientWorker(server.accept(),
erver.accept(), textArea1);
^
Please help me..Look at the costructor and and error message, s=and see if you can work it out; if you are still having difficuly, post back in 10 mins.

Similar Messages

  • After update my iPhone 4 iOS to 4.0.1 my bettery gone so bad. Every 1% goes in every minute while browsing. Also system gone proper slow and 3G conectivity gone very poor. I really want to go back to ios 4.3.4 until these issue is resolved. Please help.

    After update my iPhone 4 iOS to 5.0.1 the. Bettery gone so bad. Every 1% goes every minute while browsing. Also system is very slow and 3G. Connectivity gone very poor. I want to go back to ios 4.3.4 until these problem are resolved. Please help.

    Just look around the forum posts.  Your issue is the number one problem reported by users.  There are many suggestions found, some work for some users, others do not.
    Some users have reported no battery problems after the upgrade.  Others have improved performance after upgrading to 5.0.1 from 5.0.  YMMV.
    Many of the posts offer suggestions about changing various settings - there are many that affect the battery life.
    Once you upgrade the iOS on a device, you cannot go back to a previous version.

  • TS2755 I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    Hi there
    I’d be happy to help with this messaging error! This will be due to the device storing the number incorrectly. Please do the following to resolve the issue:
    Delete texts from both old number and new
    Delete any call logs including these numbers
    Delete old number from contacts
    Delete new number from contacts
    Restart device
    Send text to the new number directly (do not save as contact)
    Once the text sends successfully, you can then save as a new contact
    I hope this helps!
    Charise

  • When i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP

    when i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP.
    Also when i take the disk out it seems fine nd everything seems to be burned onto the disk. I am buring mac os x lion onto a disk.
    The disk i am using is nextech and i am burning at the slowest speed (4x).
    Also this is my 3rd time trying to do this and the verifying process keeps failing.... what do i do?

    see there
    http://www.techmixer.com/best-free-mac-burning-software-for-mac-osx/
    what you like most
    try different brand of CD/DVD

  • HT1414 I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks

    In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks
    And please help me can type Laos font in it like andrio phone.

    Hi Cozumel,
    Thanks for posting. I'm sorry you're having problems with your bills. I can take a look at this for you. Drop me an email with your account details and a link to this thread for reference. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • HT1688 i can't connect my iphone to itunes or the activation server cannot be reached , please Help me ! , thank you

    i can't connect my iphone to itunes or the activation server cannot be reached , please Help me ! , thank you

    I am having this problem too. Anyone pls help!

  • I cannot backup because no more storage is displayed when the storage statistics shows Total Storage 5GB and Available Storage 5GB - basically i haven't used any memory but i cannot backup! please help

    i cannot backup my iphone4s because no more storage is displayed when the storage statistics shows Total Storage 5GB and Available Storage 5GB - basically i haven't used any memory but i cannot backup! please help. i am only trying to back up my notes and contacts. that's it. and i don't think it will use up 5GB

    On your iPhone, go to Settings>iCloud>Storage & Backup>Manage Storage.  There you should be able to see how much of your used storage is allocated to different things (ex., iphone backup, ipad backup, mail).  From there you should be able to figure out what is going on.

  • I m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    i m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    We were able to log in this morning and all is working. You should be able to log in at any point today. Please let us know if you are having any other difficulties.

  • My computer crashed before i was able to deactivate my Visual Communicator 3 software.  Please help!  I have my disc, but cannot activate my software again.  I have several projects that I cannot access. Please help!

    My computer crashed before I was able to deactivate my Visual Communicator 3 software.  Please help!  I have my disc, but cannot activate my program again.  I have projects that I cannot access. Please help!

    I wish I could help, but I am in a similar situation.
    I need to deactivate it because we are getting rid of the computer it is on and are buying a new one. When I go to Help there is no Deactivate option. The only options are: "Help", "Hide Coach", "Tip of the Day", "Adobe Website", "Technical Support Website", "Frequently Asked Questions", "Check for Updates", "Register", "Download e-License..." (Greyed out), "Return e-License..." (Greyed out) and "About Adobe Visual Communicator 3". I spoke with support through chat and they said my product was no longer supported.
    Patrick

  • I am trying to reinstall iTunes but everytime I try to reinstall it, it is telling me that I can't because I have a newer version of Quicktime installed. The problem is that I cannot uninstall this, please help.

    I have just purchased an iPhone 4, but it wasn't connecting to my iTunes, so I took advice and uninstalled iTunes. But when I am trying to reinstall iTunes, it keeps telling me that I cannot because I have a newer version of Quicktime installed. I cannot find this newer version anywhere, and have gotten rid of the Quicktime folder, but it is still refusing to install iTunes.
    Please help, I have tried everything.

    But when I am trying to reinstall iTunes, it keeps telling me that I cannot because I have a newer version of Quicktime installed.
    That's usually caused by damaged QuickTime installation configuration information on the PC.
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any QuickTime entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • Songs cannot be updated please help!

    I am receiving an error message every time I plug in my iPod. It says...Songs on the ipod "The Pod" cannot be updated because all of the playlists selected for syncing no longer exist. I only started getting problems once my itunes library surpassed the capacity of my 30 GB video iPod. All of the music is still in my itunes library and I simply wished to only copy the checked items to the ipod. However, itunes automaticaly created some type of a master playlist that I immediately deleted only due to the fact that I don't use playlists at all.
    Now I cannot copy any music to my iPod and everything has been deleted from it...I cannot use the restore setting in itunes nor change any of the main preferences for the actual iPod. Please Help.

    Hudgie, "iPod cannot sync because one or more playlist", 11:33pm Oct 9, 2004 CDT

  • Ipod mini cannot be synced-Please Help

    Hi,
    I can not sync music to my ipod from itunes because it keeps saying "The ipod cannot be synced. The required disk cannot be found." I have already tried reinstalling my USB drive and it is still not working. The ipod shows up in itunes and then on my computer briefly then it disappears. PLEASE HELP

    I am having the same problem and I don't know what to do about it! I have 916 songs on my computer but only 136 are transferring on to my ipod. I just started using a new computer and I tried synching it today for the first time and that's what happened. My itunes keeps freezing when this happens and then I have to restart my computer so it's frustrating. please if anyone knows what to do...

  • Ipod nano 2nd gen cannot update/restore  PLEASE HELP!!!!!!

    i have latest itunes and ipod is recognized but it cannot update because of an unknown error (1417) and cannot restore because it has files that are in use by another application ive tried the five R's and they didnt help i dont know what to do PLEASE HELP!!!!!!!
    dell dimension 4550 Windows XP
    dell dimension 4550   Windows XP  

    For the 1418:
    http://docs.info.apple.com/article.html?artnum=304508
    For the error, "files that are in use by another application", check the preferences on all your antivirus/antispyware software and make sure they are set not to scan iPods. If you are manually managing your music, set your preferences not ot scan external storage devices.

  • "The file iTunes Library.itl cannot be read" please help!

    i uploaded the new itunes and restarted my computer but now i can't open itunes at all, whenever i try and open it, it says 'The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes.' what does this mean and how can i open itunes without losing all my music? please help!

    the ITL file didn't get converted to v8 properly.
    Try these directions
    http://support.apple.com/kb/TS1967

Maybe you are looking for

  • My 1st Gen won't update to iOS 3? :(

    So, I've been trying to update my 1st Gen to the iOS 3 so I can use apps, and for whatever reason my iTunes not only deleted everything from my iPod, but won't update to the new iOS. So now I have an iPod Touch that doesn't work, and I'm out 5 bucks

  • Proposal of a financial application

    1- please advice about financial database like ERP ? 2- What are the right steps in building the application ? 3- What is the environment required ? thank you

  • Nokia C1-02 Not identifying caller (CLI problem)

    Hi everyone, I have bought Nokia c1-02 v5.40 Some Numbers are saved in phonebook with country code +923xx and some are saved without country code 03xx. When some caller calls me, his name is not displayed (identified) but when this caller sends me sm

  • Including Applets in JSP

    hi guyz, i used <jsp:plugin> to make use of an applet..the browser in which i ran did not have support for the plugin 1.2.2 (which is needed to run applets)..hence there was an automatic download from sun's site..but even after downloading and restar

  • 64 or 32 bit? Which to install?

    Hi, My laptop has a turion 64x2 processor. What are the pros and cons of installing an x64 build rather than the standard 32 bit? What would you recommend?