Need Help :)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anitahelp
    New Member
    • Mar 2008
    • 1

    Need Help :)

    import javax.swing.JOp tionPane;

    ERROR: "javax/swing/JOptionPane" is either a misplaced package name or a non-existent entity.

    WHY???
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by anitahelp
    import javax.swing.JOp tionPane;

    ERROR: "javax/swing/JOptionPane" is either a misplaced package name or a non-existent entity.

    WHY???
    I wonder why you got that kind of error...

    can you post your code? I would like to help you...

    This is really new for me...

    Did you copy your javac.exe and java.exe to other folder and you try to compile it in that folder?

    What have you done before you got this error?


    Wondering,
    Sukatoa

    Comment

    • Laharl
      Recognized Expert Contributor
      • Sep 2007
      • 849

      #3
      Imports can also only be at the top of a file, outside of any class definitions and after a package statement (if there is one).

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        Originally posted by Laharl
        Imports can also only be at the top of a file, outside of any class definitions and after a package statement (if there is one).
        If imports are above the package, what will happen?

        sukatoa...

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by sukatoa
          If imports are above the package, what will happen?

          sukatoa...
          You could try it and see for yourself what will happen ...

          Comment

          • sukatoa
            Contributor
            • Nov 2007
            • 539

            #6
            Originally posted by r035198x
            You could try it and see for yourself what will happen ...
            It was just an urgent reply,

            I always try something that confuses me before i ask a specific question..

            So what i did is just a follow-up question,

            who knows, he may discover the secret behind the java language design...


            Sukatoa...

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by sukatoa
              who knows, he may discover the secret behind the java language design...
              There are no secrets in the Java language design; language design isn't voodoo.

              kind regards,

              Jos

              Comment

              Working...