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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shathaaaa
    New Member
    • Dec 2010
    • 4

    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


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

    plz can anyone help me :(

    I Attached a picture of the error
    Attached Files
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    There is some problem with your code, please post the code.
    These errors come If there is some problem in package, import statements.Plea se check for ";" at the end of class and import statements.

    Regards
    Dheeraj Joshi

    Comment

    • shathaaaa
      New Member
      • Dec 2010
      • 4

      #3
      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

      Comment

      • Amit Kumar M
        New Member
        • Nov 2010
        • 9

        #4
        What is the line
        Code:
        chat.server.*;
        in the file RMIChatServerIm pl doing ? I think it should be the like this
        Code:
        import chat.server.*;
        Regards,
        Amit

        Comment

        • Dheeraj Joshi
          Recognized Expert Top Contributor
          • Jul 2009
          • 1129

          #5
          You are importing all classes in chat.server package.

          Yes, it must be an import statement.

          Regards
          Dheeraj Joshi

          Comment

          • shathaaaa
            New Member
            • Dec 2010
            • 4

            #6
            yes yes it should be like
            Code:
            import chat.server.*;
            but if i write it get error so i omit it (import);

            I do not know what to do :"(

            Comment

            • Dheeraj Joshi
              Recognized Expert Top Contributor
              • Jul 2009
              • 1129

              #7
              Post the error please

              Regards
              Dheeraj Joshi

              Comment

              • shathaaaa
                New Member
                • Dec 2010
                • 4

                #8
                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

                Comment

                Working...