Need help in getting started

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hanaa
    New Member
    • Nov 2007
    • 44

    Need help in getting started

    Hi..

    I am gonna make a mail user agent for a LAN. Using java. I was confused about what to use. Should I use applets, or start coding without them, making use of windowlistener interfaces etc ? I dont know if i should use applets, and if i should could u please tell me why applets are preferable.

    Thanks,
    Hanaa
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Don't use (J)Applets.

    kind regards,

    Jos

    Comment

    • hanaa
      New Member
      • Nov 2007
      • 44

      #3
      Thanks.
      I seem to have another problem. Only recently, I installed java update 7.
      There's this file called myframe.java which has a public class 'myframe'. Another file 'keydemo.java' extends the class myframe. This program worked on update 2. On this new version, i try to compile the second file, that is keydemo.java. I get an error saying it 'cannot find the symbol myframe'. Could anyone help please... I tried the same with many other such files, none of them seem to be working.

      Thanks again,
      Hanaa.

      Comment

      • hanaa
        New Member
        • Nov 2007
        • 44

        #4
        Okay.. I tried the following and it worked. (2ndsem is the directory containing both the files in question - keydemo.java and myframe.java. )


        C:\hanaa\2ndsem > javac -classpath C:\hanaa\2ndsem keydemo.java

        Yet, I wanna know why it doesnt work like it used to with the older version, and also why this worked. Would someone be kind and tell me why.

        Thanks,
        Hanaa.

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by hanaa
          Okay.. I tried the following and it worked. (2ndsem is the directory containing both the files in question - keydemo.java and myframe.java. )


          C:\hanaa\2ndsem > javac -classpath C:\hanaa\2ndsem keydemo.java

          Yet, I wanna know why it doesnt work like it used to with the older version, and also why this worked. Would someone be kind and tell me why.

          Thanks,
          Hanaa.
          Which version did it work on? I don't think it should have worked on any Java version at all? Are you sure you didn't move the files?

          Comment

          • hanaa
            New Member
            • Nov 2007
            • 44

            #6
            Yes.. I am sure. Back then, I used 1.6.0_02. Now, i use 1.6.0_07. I was in my second semester then, and all the base and derived class' files worked that way. I dont see why it shouldn't now. Both the files are in the same directory.

            On the older version, it worked without the -classpath option. Below is what I used then.

            C:\hanaa\2ndsem > javac keydemo.java

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by hanaa
              Yes.. I am sure. Back then, I used 1.6.0_02. Now, i use 1.6.0_07. I was in my second semester then, and all the base and derived class' files worked that way. I dont see why it shouldn't now. Both the files are in the same directory.

              On the older version, it worked without the -classpath option. Below is what I used then.

              C:\hanaa\2ndsem > javac keydemo.java
              Either you added a package declaration that wasn't there or one of the .class files got removed/deleted.

              Comment

              • hanaa
                New Member
                • Nov 2007
                • 44

                #8
                Originally posted by r035198x
                Either you added a package declaration that wasn't there or one of the .class files got removed/deleted.
                I didnt add any package declaration :( And i checked, the .class file of the base class is there in that directory only. I cant seem to move on unless I understand why it isn't working. :(

                Comment

                Working...