Hi I am new in Java. And its giving me a lot of stress. I need to chat with smack api and openfire server. For this my java code is below
import ...
|
I'm ICE starter. At http://zeroc.com there is good tutorial on how to create chat. I decided to use the tutorial as base. And first thing I tried to do ... |
I was supposed to develop a live chat server (like comm100, etc. so that client could chat directly with the operator from anywhere in the world).
I had chosen Java since the ... |
i have started to learn java.
In this , in am able to develop a chat application by making 2 programs "client" and "server".
i run it by opening 2 command prompt and ... |
hi there i am implementing a basic chat server on java. actually i finished basic things and trying to improve it. now i wanna trying on making a list which shows ... |
Hi guys i am trying to create a simple chat server. I have installed red5 server i need to know do i have to make a red5 server myself or all ... |
|
|
Hi Taqi i have taken tomcat 3.2 and i face a problem to run tomcat3.2 server. after setting JAVA_HOME & TOMCAT_HOME when i run startup.bat file it show me the message that cannot find file 'c:\jdk1.3;\bin\java (or one of components). Check to ensure the path and filename are correct and that all requried libraries are avaiable. please give me the solution ... |
hellow Friends i have a problem in chat server project i have a two classes frist chatEntry.java and second chatRoom.java i have use a function in ChatRoom.java class public void addChatEntry(ChatEntry entry) { push(entry); } when i compile it after compiling of ChatEntry.java i got error class ChatEntry not found. please write to me why it is so. i am using ... |
|
I have a problem with this small server im writing. It accepts one person, but when it accpets another person, nothing happends. Its a chat client. The first person to login gets in and is able to type text. The next person isint able to do anything. Though he is connected. Can anyone help me? here is the code, I think ... |
Hi, I am planning to develop a chat server based upon sockets. The requirement is to have a application on a web server which creates a server socket and accepts any requests from clients on that server socket. The question is, how can I open a server socket? Should I need to do it in a servlet? if yes, can a ... |
|
Hi, I am new to socket programming and working on a miniproject for chat server programming. Four clients are chatting through a server. The server is multithreaded. the client code is : package ruf; import java.net.*; import java.io.*; public class EchoClient { public static void echoClient(BufferedReader in, PrintStream out) throws IOException{ String keybd; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ keybd ... |
Hi,has any one been working on a chat messenger (yahoo/msn)? I have a requiremnet came up in my company has assigned me a module which contains a chat messenger application. Its specifications are same as that of the yahoo and google talk, a user should be able to chat on one to one bases or as well as group up many ... |
Hello, this is my first post on this forum. Using NetBeans i have created a Java desktop application, a ChatServer, i packed the classes in a jar file and if i launch it on windows i can see the JAVA GUI opening and tracing all the incoming connection. The client is made in Flash, i have already tried in local and ... |
Hey, i am using the HeadFirst java book to study java. There is a simple program to teach about sockets. There is two classes in the program. A client and a server. When the client connects to the server, the server sends back a message. here is the code for the classes. its straight from the book Client Java Code: import ... |
|
Is that going to help me start Live Video Chat Streaming Server ?... I doubt.. unless you already know Java basics and know how to use JMF, I for one tried to make a media player that streams MPG content, it was a hell of a job(didn't work as good as i wanted..) but it worked more or less. I'm not ... |
|
public class server { public static void main(String[] args) throws IOException { ServerSocket s1=null; try{ s1=new ServerSocket(98); }catch(IOException u1) { System.err.println("could not find port 98"); System.exit(1); } Socket c=null; try{ c=s1.accept(); System.out.println("connection from"+c); } catch(IOException e) { System.out.println("accept failed"); System.exit(1); } PrintWriter out=new PrintWriter(c.getOutputStream(),true); BufferedReader in=new BufferedReader(new InputStreamReader(c.getInputStream())); String I; BufferedReader sin=new BufferedReader(new InputStreamReader(System.in)); System.out.println("i am ready to type now"); while((I=sin.readLine())!=null) ... |
|
(Ok it seems like it wont make it Bold because its in code tags so the parts with a star at the start and end is where i tryed to make it bold) Ok the parts that are in Bold is where the error is comming from somewhere in there. It shows me the "Expires on:" part when i load the ... |
|
//Imports import java.util.*; import java.io.*; import java.net.*; import java.nio.*; import java.nio.channels.*; public class Server { Socket[] connections = { null, null, null, null, null, null, null, null, null, null }; //Allow Ten Connections int cnt = 0; public Server() { System.out.print("\nServer Started - No Errors Occured in Startup"); try { ServerSocketChannel chan = ServerSocketChannel.open(); chan.configureBlocking(false); InetSocketAddress server = new InetSocketAddress("localhost",79); ServerSocket ... |
|
You are expecting to read a line, but you never send a line. To send a line you would need to send a newline character at the end. It also turns that DataInputStream.readLine() is deprecated, so you should avoid using this. Since you are writing using writeUTF(), then you should match it with readUTF(). If you look at the Javadoc associated ... |
Dear all Firstly i hope this is the best forum for my question. I've written a basic chat server and client. The server recieves strings messages, and broadcasts them to everyone connected to it. I was wandering, sticking with exchanging Strings over the connection, what ways could I implement a private chat facility so one client could choose to send a ... |
|
I've been able to modify the server java application example from the Java Sun website, that accepts multiple connections but the problem now is how to send the message received from one client to all clients.. Is there a way to access the sockets of other clients from the thread of the client who sent the message (I'm using multithreading), so ... |