Sockets Forum

Over the last few years, a great deal of very useful work has been done by the members of these fora on the Socket Forum. That will soon be archived, to be lost to all those who will just look here for assistance on topics related to network programming. If you need help with topics like NIO, Telnet, FTP, or the Socket API, you should go to the archive, your question is probably answered there.

Yes - I thought that was rather strange.
It was a default build path used by ant from the build.xml file.
I have modified the path to 'build_src' to overcome that issue.
Thanks
I am now getting the following ...
Exception in thread "main" java.lang.NoClassDefFoundError: build_src/example/Ping (wrong name: example/Ping)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
How do I fix those?
Thanks again

Similar Messages

  • Stickies for SocketA Via chipset mobos

    Hello and welcome to the SocketA forum! If this is your first visit here, and this is the first place you have come to, well done! Many answers can be found here before posting your problem, so please take the time to search through first.
    If you haven't done so already, we recommend you read through the Forum Rules, and the Suggestions On Posting And Getting Better Answers stickies.
    To keep the stickies area tidy, I have compiled the stickies for the Via chipset boards in this thread, and more can be added here later.
    Basic Troubleshoting Guide Volume 1 by MSI USA
    Trouble shooting guide! Read this first!!!! rev 13-1-2004
    [VIA] Support for new Duron 1400, 1600, 1800 with 266MHz FSB
    [VIA] New CPU's on K7T266Pro2
    [VIA] unofficial FAQ for KT4 series motherboards
    KT6V Mac Address Fix Utility
    Can't find Bluetooth driver/software for KT4 Ultra
    Choosing The Right Power Supply
    How to clear the CMOS
    VIA Drivers
    Think a topic is worthy of becoming stickied for all to read? Please PM a moderator of this board with the link, and it will be considered for inclusion.

    Hello and welcome to the SocketA forum! If this is your first visit here, and this is the first place you have come to, well done! Many answers can be found here before posting your problem, so please take the time to search through first.
    If you haven't done so already, we recommend you read through the Forum Rules, and the Suggestions On Posting And Getting Better Answers stickies.
    To keep the stickies area tidy, I have compiled the stickies for the Via chipset boards in this thread, and more can be added here later.
    Basic Troubleshoting Guide Volume 1 by MSI USA
    Trouble shooting guide! Read this first!!!! rev 13-1-2004
    [VIA] Support for new Duron 1400, 1600, 1800 with 266MHz FSB
    [VIA] New CPU's on K7T266Pro2
    [VIA] unofficial FAQ for KT4 series motherboards
    KT6V Mac Address Fix Utility
    Can't find Bluetooth driver/software for KT4 Ultra
    Choosing The Right Power Supply
    How to clear the CMOS
    VIA Drivers
    Think a topic is worthy of becoming stickied for all to read? Please PM a moderator of this board with the link, and it will be considered for inclusion.

  • Are there any Client/Server Application (using sockets) design patterns?

    Hi,
    The title of the post nearly says it all. I am searching for different design patterns related with the development of a client/server application. I understand that there must be any different ways on how a client/server application can be developed.
    Regards,
    Sim085
    Disclaimer:
    When I enter in the Socket forum on this site I recieve this message "Thank you for any participation in this forum. Due to a lack of relevant activity, we have decided to archive this forum on June 16, 2006. For future posts on this topic, we suggest you use the Networking forum" and I am not allowed to create a new post! However I can see posts done yesterday! All i did is add the forum in 'my forums'. Does this happen to you people as well?

    Hi Sim085...How are you?
    So look this:
    http://forum.java.sun.com/thread.jspa?threadID=5148926&tstart=75
    I don�t know if is what you want...but I hope in this^^
    Ok man...If you have one example for help you is better.
    [ ]

  • Choosing the right Socket A motherboard

    I'm about to purchase a replacement motherboard for my dads computer and the place I'm going to buy it from have several MSI boards. What I want to know is which one would be the best choice compared to what it will be used for.
    The computer won't be used for gaming, SATA isn't necessary as he has an IDE HD, it's used for browsing the web, work, looking at digital pictures etc. No overclocking will be done. Dual Channel RAM support would be nice.
    The current RAM is Kingmax SuperRam PC3200 with an 1800XP CPU.
    Out of the following which would suit his needs:
    MSI K7N2 Delta2-LSR (not in stock at the moment)
    MSI K7N2 Delta-L
    MSI KT4A-V
    MSI KT6V-SR
    I'm quite tempted by the MSI K7N2 Delta-L and MSI KT6V-SR but what do you feel is the best choice?
    Thanks in advance

    Quote from: blazing storm on 16-June-05, 00:20:37
    I now have everything installed. Only problem is USB is behaving strangly, it won't boot up with a hub attached but will with all devices connected via the 4 USB ports instead, though it seems slower getting into windows for some reason with USB attached. I'm sure there's a sticky for this somewhere, anyone know where?
    is it freezing at the BIOS screen when it does the memory check? but then continues to boot if you remove the hub?
    what devices are connected to your hub? is it self-powered? do you get the problem if the hub is connected by itself?
    think i'm gonna move this into SocketA forum for our consultants to look at

  • Multithreaded web server

    My first problem is that my code doesnt compile and i dont know how to fix it....the code is a lil long
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import java.lang.String;
    import java.net.Socket;
    import java.util.Properties;
    public final class WebServer {
    public static void main(String argv[]) throws Exception {
    //set the port number
    int PORT = 6789;
    //Establish the listen socket
         Socket socket = new Socket( "www.binghamton.edu", 6789 );
         //Infinite loop HTTP service requests process     
    while(true) {
    //Listen for a TCP connection request
    ServerSocket listenSocket = new ServerSocket(PORT);
         //Construct an object to process the HTTP request message
              HttpRequest request = new HttpRequest(listenSocket.accept());
              //Create a new thread to process the request
              Thread thread = new Thread(request);
    //start the thread
              thread.start();
    final class HttpRequest implements Runnable {
    final static String CRLF ="\r\n";
    Socket socket;
    //constructor
    public HttpRequest(Socket socket) throws Exception {
    this.socket = socket;
    //Implement the run() method of the Runnable interface
    public void run(){
         try{
              processRequest();
         } catch (Exception e) {
              System.out.println(e);
    private void processRequest() throws Exception {
    //Get input & output streams references to sockets
    int i = 0;
    InputStream is = this.socket.getInputStream();
    DataOutputStream os = new DataOutputStream(this.socket.getOutputStream());
    String hn = socket.getInetAddress().getHostName();
    //Set up input stream filters
    BufferedReader br = new BufferedReader(new InputStreamReader(is));
    FileWriter fout = new FileWriter("log.html", true);
    //Get the request line of the HTTP request message
    String requestLine = br.readLine();
    //Get HTTP message request line
    System.out.print("Name of the Requester is: ");
    System.out.println(hn);
    System.out.println(requestLine);
    fout.write("<p>Listening to the New Request</p>");
    fout.write(requestLine);
    fout.write("<br>");
    //Get and display the header lines
    String headerLine = null;
    while((headerLine = br.readLine()).length()!=0)
    if(headerLine.indexOf("pt:")==-1)
    System.out.println(headerLine);
    fout.write(headerLine); fout.write("<br>");
    fout.write("\r\n");
    fout.close();      
    // Assuming a GET command Extract filename from request line.
    //Close the streams and socket
    os.close();
    br.close();
    socket.close();
    //Extract the filename from the request line
    StringTokenizer tokens = new StringTokenizer(requestLine);
    tokens.nextToken(); //Get request skipped
    String fileName = tokens.nextToken();
    //100
    filename = "." + filename;
    // Opening requested file.
    FileInputStream fis = null;
    boolean fileExists = true;
    boolean Filewt = true;
    try {
    fis = new FileInputStream(fileName);
    } catch (FileNotFoundException e) {
    //checking file is not found
    Filewt = false;
    //file does not Exist;
    fileName = "error.html";
    try {
    // trying read error.html
    fis = new FileInputStream(fileName);
    } catch (FileNotFoundException err) {
    System.out.println("error File is Not Found" + err);
    fileExists = false;
    // Construct response message.
    String statusLine = null;
    String contentTypeLine = null;
    String entityBody = null;
    if(fileExists) {
    statusLine = "HTTP/1.0 200 OK" + CRLF;
    contentTypeLine = "Content-type: " + contentType(fileName) + CRLF;
    }else {
    statusLine = "HTTP/1.0 200 OK" + CRLF;
    contentTypeLine = "Content-type: " + contentType(fileName) + CRLF;
    entityBody = "<HTML>" +
    "<HEAD><TITLE>Not Found</TITLE></HEAD>" +
    "<BODY>Not Found</BODY></HTML>";
    // Send the status line.
    os.writeBytes(statusLine);
    // Send the content type line.
    os.writeBytes(contentTypeLine);
    // send blank line to indicate the end of the header lines.
    os.writeBytes(CRLF);
    // Send the entity body
    if (fileExists) {
    sendBytes(fis, os);
    fis.close();
    } else {
    os.writeBytes(entityBody);
    private static void sendBytes(FileInputStream fis, OutputStream os) throws Exception
    // Construct a 1K buffer to hold bytes on their way to the socket.
    byte[] buffer = new byte[1024];
    int bytes = 0;
    // Copy requested file into the socket's output stream.
    while((bytes = fis.read(buffer)) != -1 ) {
    os.write(buffer, 0, bytes);
    private static String contentType(String fileName)
         if(fileName.endsWith(".htm") || fileName.endsWith(".html")) {
              return "text/html";
         if((fileName.endsWith(".gif") || fileName.endsWith(".gif")) {
              return "image/gif";
         if((fileName.endsWith(".jpeg") || fileName.endsWith(".jpeg")) {
              return "image/jpeg";
         return "application/octet-stream"
    the 1st error is line 161: illegal start of expression
    private static void sendBytes(FileInputStream fis, OutoutStream os) throws Exception
    the 2nd error is line 186: " ; " expected
    any help or comments would be greatly appreciated

    Something is wrong with line 161, or perhaps the line before that.
    Since I can' tell which is line 161 I can't help.
    And you might want to start with a less complex problem, given that you are new to java.
    And this forum deals with issues relating to databases and your code has nothing to do with that. So you might try either the "New to Java", the "Java" or the "Socket" forums.

  • MOVED: K7N2 - Bios Checksum Error - But wont load program to flash bios

    This topic has been moved to AMD nVidia/AMD/SiS SocketA based board.
    K7N2 = nVidia nforce2 chipset = AMD nvidia SocketA forum
    https://forum-en.msi.com/index.php?topic=73760.0

    I never cleared the cmos with the power on. Sorry i didnt make it clear, but yeah i always made sure the power was completely out. I left the battery out last night too, but still no change. All cables are on right, and I'll try taking out all the cdrom and cd when i get home. I cant get into Bios (pushing del key). all i get is two beeps and boot block telling me that there is a Bios Rom Checksum error (again, sorry i wasnt being very clear).
    I think it might be pretty much stuffed. I'm tempted just to go to the store and buy another one as they aren't too expensive and probably not too much of a price difference from getting a new bios chip and having to wait for 2 weeks while it gets delivered. But then again maybe i should just be patient and save myself some money.
    Hmm, could it be due to bad RAM? I'll try swapping it with my brother's and see what happens. It's kind of ridiculous that they give the same generic error message for a multitude of different problems, someone should fix that.

  • NIO with SSLEngine API - Simple example required

    Hi
    I am trying to implement a NIO Server with SSL Engine based implementation. I went through the Https server given in the samples provided with jdk 5.0. But that is little bit more complicated (uses Handlers and other associated functionality). what I am looking for is a simple example program which can elucidate the SSL Engine API operations and the bare minium code to execute a simple Client Server communication through SSL Engine. I know it has a long learning curve, just thought if somebody has researched well and posted an article/tutorial in this regard, it would be really helpful for novice programmers like me. Please help with some sample programs..
    Thanks

    Unfortunately the bare minimum is extremely complicated. The JSSE samples contain some simplistic NIO code but it barely works, and doesn't cope with useClientMode=true at the server, or with re-handshakes.
    There is some PD code out there if you can find it, and also several discussions in the Secure Sockets forum.
    There is also an entire chapter on it in my book http://www.telekinesis.com.au/wipv3_6/FundamentalNetworkingInJava.A21.

  • Kt400 ultra motherboard

    need help trying use onboard usb ports not work in device manger no unver usb controller how you find sofeware ??for motherboard msi doesn't have controller this a KT400 ULTRA VER 1.0

    split from "Booting from USB sticks" sticky as it is irrelevant really. moving to SocketA forum.
    read this thread Suggestions on posting and getting better answers then come back with more info so others can help you better.

  • K7n2 delta2 platinum no post

     I've been using a k7n2 delta2 platinum mobo for a few month with a lot of stability problems running at 200 mhz fsb. This is my configuration: barton 3200+, two 512 nanya 3-3-3-8 ddr400, msi fx-5700 ultra3 card. I tried to run the cpu at 166 mhz and then ram at 200 mhz and the pc didn't post. The d-bracket shows the 'early chipset initialization' error. I tried to clear the bios and all the tricks I found on the net and nothing happened. Is the mobo passed away? I think I need help. Thanks

    probably your PSU
    start a new topic in SocketA forum, list your hardware specs in details, and list the PSU specs from the label on its side
    also, try tapping Insert as you power on your system, to reset clock speeds to safe values

  • MSI KT400 and RADEON 9700 PRO

    I'm having many problems with this combination: some games don't work.
    I've read there are problems with agp 8x, any advice?
    I can't play:
    mechwarrior mercenaries
    arx fatalis
    platoon
    thanx!

    Since the KT400 is a VIA Chipset based motherboard and this is an Nvidia/AMD/SiS SocketA forum I am moving it to the VIA based forum.
    Perhaps you can elaborate on exact problems and provide a complete hardware listing, including your power supply's combined wattage across the +5v and +3v rails.

  • PNY Verto GeForce 4 MX 440 Problems

    I just installed the Verto GeForce4 MX 440 Graphics card into my system.
    Since I did this, my bootup has been about 3 times slower than usual and I have been getting some unusual things happening while working in my OS. (Lockups, frozen graphics, and such... things similar to what u get with driver conflicts)
    While the computer is booting up, the screen (like the splash screen) and hard drive lock up for seconds at a time. The screen will finally flicker and the hard drive will begin again.
    It does this several times while its booting up. These pauses make the bootup take much much longer than usual and I feel like its some sort of conflict between the on-board video and the new video card I installed.
    I cant find an option in the BIOS to disable the on-board video permanently.
    Can anyone help solve this problem?

    Well, since you haven't provided us with your system spec's then I would be guessing.
    I guess you have the K7N420 Nforce mobo since you are in the Nvidia/AMD/SiS SocketA forum.
    I have no Idea what OS you are using.
    Power Supply combined power, although I don't see that right now.
    What Hard drive and memory...etc?
    See my signature for an example.
    If you ARE using the Nforce, there are no settings in the BIOS to disable. Once you put a card in the AGP slot it automatically disables the Onboard.
    try removing it and going back to the onboard and tell us what happens then.

  • Troubleshoot Help! KT3 Ultra MS-6380E

    Hello Fellows!
      I could use some help here with my computer, I am using a beat up ole computer and luckily I got the internet working here to do some researching for the problems with my computer.
      I had my computer in sleep mode for a few hours and then the next thing it was the start up page. It would check the prime master... not detected, then prime slave...not detected. Then it would go to the next page to searching boot records and none of them are found. That is as far as I can go and a friend tried to help me do something about it and it seems like nothing is not reading the floppy disks. We have double checked everything and made sure everything was plugged in the right places. It also says that the IDE is not found or something like that. I have all of the IDE plugged in place. Is there a disk that I need to download to get that going or what can I do? Please help!!! thanks!!
    JJ

    Hello!
    There is a SocketA forum around nearby, with some marvellous troubleshooters. Try there!
    Edit after Stu's post: They have the best balls around.
    Just a few simple things, then a question.
    0 Please provide a bit more detail on your system. Processor, memory, and PSU specs are most interesting, but hard disks and CD/DVD:s would also be nice to know.
    1 With a new mobo, but old hard disk, you need to do at least a Repair install of Windows. Preferably you should have as little as possible when doing this.
    2 You should install the VIA drivers, known as 4in1. If you haven't got the install CD, you find it at www.viaarena.com and here, the motherboard's home page: http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=11
    It sounds as if you got a second hand mobo, is that so?

  • Where to download MSI HQ Forum USB Flasher?

    Nice redesign of the MSI forums, however it seems to have broken all download links I could find for the MSI HQ Forum USB Flasher -- which I am in desperate need of.
    For example, the link mentioned at http://forum-en.msi.com/faq/article/how-to-flash-the-bios-successfully just redirects you to the forums with the message "An error has occured!"
    Could anyone please point me to a reliable source for the MSI HQ Forum USB Flasher? Thanks!

    Quote from: Nichrome on 23-November-14, 19:07:42
    Well according to MSI you should be using MFlash in order to restore a bad BIOS
    Things are still not up and running, so this may take a while before things get back (if they planned to get them back).
    Sadly I don't have forum flasher on me.. maybe other mod has one.
    In the sticky https://forum-en.msi.com/index.php?topic=172772.0 I found the FPT flasher for socket 1150 boards. Just finished fixing my primary BIOS! All is well again!!!
    That's a huge relief. Now I could update my secondary BIOS to 1.7 without fear.

  • Socket threads problem after SOA installation

    Hi all,
    I am getting below error after sending request to the server(after weblogic and SOA servers started properly.
    <Warning><Socket>'There are: '5' active sockets, but the maximum number of
    socket readers allowed by the configuration is: '4', you may want to alter
    your configuration.>'
    I am not able to deploy the application into the SOA Server(I am getting http response 502 error in my Jdeveloper's log).
    I have seen forums about this ,they told to change the socket threads in weblogic console(mine is weblogic 10.3.5 server) ,but I am not able to change in the console.It has already some value as 33 and when I change and save ,it is telling value can not be changed dynamically.
    I was told to change like below.But Where do I need to change like below and how
    java -Dweblogic.ThreadPoolSize=10 -Dweblogic.ThreadPoolPercentSocketReaders=60 ... your.client ...
    I am stuck(I am not able to deploy the applications into SOA server)
    Thanks in advance

    Hi
    1. What you are seeing is <Warning> and mostly you can ignore this. This may not be the root cause for your error.
    2. Can you access your soa server url from browser like http://soahost:soaport/bpm/workspace url should work. Try soahost with direct ip address or dns name of that machine.
    3. In Jdeveloper, when you configure this, I hope you Tested the connection and does it show success.
    4. One way to quickly test is, deploy the SOA Workflow JAR directly from EM Console. The .jar file should be under your soaproject/deploy folder. If you have EAR for TaskForms, deploy EAR also from Console or EM Console. If all this works, this means, JDeveloper is not able to connect to soa server. Search for Proxy settings forJDeveloper in this forum. I remember seeing some posts to enable/disable Proxy for Jdeveloper like that.
    5. Look in the log files for any errors while deployment. But if server itself is NOT accessible, you may not see any deployment errors at all.
    Thanks
    Ravi Jegga

  • New To The Forum And Looking For Speed Help!

    Hello, After trying to find information about my problem on the Internet and then speaking to the BT Indian Call Centre, I stumbled upon this forum. I am hoping, having looked at so many helpful comments and contributions, that I might be able to shed some light upon my connection speed issue. I have had a very pleasing and stable Internect connection speed of nearly 8Mb. However, I recently moved my router to the Master socket in the house which was better positioned to give a good WiFi signal throughout my house. However, when I have plugged in the router and booted it up, I can only connect at just over 4Mb regardless of what I try. I know I am at risk of sounding a touch ungrateful here because there are many more people with bigger problems than I but I would be very grateful for some advice / assisitance as to why my problem might have occurred and how I might regain my previous speed. Thank you in advance for any help! Cheers.
    Solved!
    Go to Solution.

    welcome to the forum
    in order for the forum members to help please can you post the adsl stats from your router may need to 'show detail' to get all stats (if hub enter 192.168.1.254 in your browser and navigate to adsl or use a-z, if netgear enter 192.168.0.1) and run btspeedtester (MAC users may have problems) http://speedtester.bt.com or http://bt.custhelp.com/app/answers/detail/a_id/935​4/c/346,4740,5520 and post the results .
    are you connected directly to the NTE5 master or test socket or to somewhere else? Is the master the only phone socket in your home?
    Have you tried the quiet line test? - dial 17070 option 2 - should hear nothing - best done with a corded phone. if cordless phone you may hear a 'dull hum' which is normal
    Someone may then be able to offer help/assistance/suggestions to your problem
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • ORA-06510 error in portal install

    The portal install fails at 50% and the following is from the portal install.log: ORA-06510: PL/SQL: unhandled user-defined exception Errors encountered in the Install process. Installation Aborted.

  • Printing non-latin characters

    If I wanted to print unicode characters in JSP, for example, arabic or japanese, what's the best way to go through with this? I tired the <%@ page contentType="text/html; charset=Windows-1256" %>but it won't work I tried this: <meta http-equiv="Conte

  • Open Period for material master record

    Hi gurús                 We´d just create a new company code and plant. After the activation of ML we started to make some materiales movements, but the system show the error message "Posting only possible in period XXX". Whe we opened the period thr

  • Good receipts exchange rate details

    Dear all       Kindly let me how to do the following scenario during Good receipt.to pick Exchange rate details for particular company code.             if posting date is other than month end date, rate as applicable on the first day of the month, i

  • Q36 How do I report items delivered but not invoiced?

    Starting from scratch here........... The idea is too create a report of sales order items that have been delivered but not yet invoiced within a set of dates and showing sales value of goods delivered. My logic had told me using docstatus in ORDR an