473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error :calss,interface,or enum expected chat.server.*; in java chat

hi every body here
i try to run program written in java (client server chat Application ) but when i try to compile it i get this error


" RMIChatServerImpl.java.java:6: calss,interface,or enum expected chat.server.*; "

plz can anyone help me :(

I Attached a picture of the error
Attached Images
File Type: jpg reder.JPG (21.6 KB, 420 views)
Dec 26 '10 #1
7 3085
Dheeraj Joshi
1,123 Expert 1GB
There is some problem with your code, please post the code.
These errors come If there is some problem in package, import statements.Please check for ";" at the end of class and import statements.

Regards
Dheeraj Joshi
Dec 27 '10 #2
Thanks a lot
Please help me to finding the error,
it is my first program in java and I have no experience
I just need the output of this application

I Attached my code
plz help me
Attached Files
File Type: zip chat3.zip (10.5 KB, 95 views)
Dec 27 '10 #3
What is the line
Expand|Select|Wrap|Line Numbers
  1. chat.server.*;
in the file RMIChatServerImpl doing ? I think it should be the like this
Expand|Select|Wrap|Line Numbers
  1. import chat.server.*;
Regards,
Amit
Dec 27 '10 #4
Dheeraj Joshi
1,123 Expert 1GB
You are importing all classes in chat.server package.

Yes, it must be an import statement.

Regards
Dheeraj Joshi
Dec 27 '10 #5
yes yes it should be like
Expand|Select|Wrap|Line Numbers
  1. import chat.server.*;
but if i write it get error so i omit it (import);

I do not know what to do :"(
Dec 27 '10 #6
Dheeraj Joshi
1,123 Expert 1GB
Post the error please

Regards
Dheeraj Joshi
Dec 28 '10 #7
I'm very sorry I have been delayed because of testing >_<

i uploaded pictures of the errors that appear when you write import chat.server.*;

I am grateful to you,plz help me
Attached Files
File Type: zip errors_if_writeimportchatseerver.zip (378.6 KB, 85 views)
Dec 31 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Paul | last post by:
Hello, I nead to create chat server but i cannot find any sample can you show me how i can craete multirhread chat server. ?? Regards PM
1
by: c_eagle | last post by:
i am building a chat server in c using sockets.i have used fork to do non-blocking read and write between the client and the server.but i dont know how to accept multiple clients and relay messages...
7
by: Tony Tone | last post by:
I am having trouble resolving this issue: Server Error in '/test' Application. -------------------------------------------------------------------------------- Compilation Error Description:...
0
by: bumba | last post by:
Hi i have an aspx site which i want to link to a java chat could anyone be of help.need urgently. i cant see the applets when i try to connect from visual studio to the chat.
4
by: Ronald Green | last post by:
Hi, I have this theoretical problem: Say that I need a chat server that also has a database where it saves all conversations. However, I need several servers for availability and load balancing....
1
by: psabro | last post by:
how can i create a java chat room so that every one can join it without downloading any thing like java, java applets or some thing else?
1
by: Pradeep Chhabria | last post by:
I have made a UDP multi client chat server.Now i wanna see that how a bit error or any packet loss can affect the chatting.....So what should i do?What methods should i use?
2
by: audiokarate | last post by:
I have like atleast 15 errors that say class, interface, or enum expected and I have no idea what that means. Can someone tell me what it is and how I might be able to fix it? Thank you. - Manny...
5
by: jaceterrel | last post by:
Okay, my question is about Java Chat. If I am chatting with some one in a Java Chat is my conversations stored on my hard drive, if so how do I remove them? Thanks
0
by: kirthi kumari | last post by:
i donot find any errors,but for almost 18lines of the code am getting an error saying "class,interface or enum expected error".please look at the code below package NQ; import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.