Problem reading other classes

I've installed j2sdk1.4.0_02 and set the path correctly to point to bin.
Now when I compile a file, it will not compile if I make an instance of another class. That class is in the same directory, I've tried re-installing and I get the same problem, all my old programs which I know worked under 1.3 are now giving me the same compile problem on them when I call and instance of another class,
I get a
cannot resolve symbol
symbol : class Gui
location : class Project
so when I compile Project.java it doesn't see my Gui class eventhough it is there, and Gui compiles fine.
any ideas????

yeah I figured it out, 1.4 little different, I have some of my own class files that I had set in the class path, usually I don't set the class path, only the path, so everything in every directory works, after I modified it though it was only looking at my 2 class files I had, thanks for the input though

Similar Messages

  • Please Help!!! Problems access other classes methods

    I am having a problem accessing another classes methods varibles. I have tried a number of ways but with no success. Here is my problem:
    I have the main(), from there it's calls the class GetVar(), GetVar stores info in Class HousingForVar(), and finially, I have a class TryinToTalkToHousing() that I use to access HousingForVar()'s methods. I know I can use the keyword new but if I do that then it erases over the data I put in. Please can anyone help, this has been driving me nutz all day. Thank you in advance.
    Roman03
    ***EACH CLASS IS A DIFFERENT FILE****
    public class TestMain
         public static void main( String args[] )
              GetVar getVarible = new GetVar();
              getVarible.heroF();
    import java.util.Scanner;
    public class GetVar
         public void heroF()
              String someEntered;
              Scanner input = new Scanner( System.in);
              System.out.println("Enter a string: ");
              someEntered = input.next();
              HousingForVar houseForData = new HousingForVar(someEntered);
              System.out.printf("Retieved from Class GetVar, you entered: %s\n", houseForData.getCollectVar() );
    import java.util.Scanner;
    public class HousingForVar
         private String getData;
         public HousingForVar(String enterInfo)
              getData = enterInfo;
         public void setGetVar(String enterInfo)
              getData = enterInfo;
         public String getCollectVar()
              return getData;
    import java.util.Scanner;
    public class TryinToTalkToHousing
         public void someMeth()
              String getInfoFromHousing;          
              System.out.printf("Started out at TryinToTalkToHousing Class\n Retieved from Class GetVar from %s\n",
              houseForData.getCollectVar() );
    \* I know this doesn't work, but if I make a new object of the class HousingForVar it's going to write over my input, so what do I do? I am still learning, Please help*\

    I don't use 1.5, so you'll have to convert it back, but see if you can follow the flow of this
    import java.io.*;
    class TestMain
      GetVar getVarible;
      public TestMain()
        getVarible = new GetVar();
        getVarible.heroF();
        System.out.println("******");
        new TryinToTalkToHousing(this).someMeth();
      public static void main(String[] args){new TestMain();}
    class GetVar
      HousingForVar houseForData;
      public void heroF()
        try
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          System.out.print("Enter a string: ");
          String someEntered = br.readLine();
          houseForData = new HousingForVar(someEntered);
          System.out.println("Retieved from Class GetVar, you entered: "+houseForData.getCollectVar()+"\n");
        catch(Exception e){e.printStackTrace();}
    class HousingForVar
      private String getData;
      public HousingForVar(String enterInfo)
        getData = enterInfo;
      public void setGetVar(String enterInfo)
        getData = enterInfo;
      public String getCollectVar()
        return getData;
    class TryinToTalkToHousing
      TestMain parent;
      public TryinToTalkToHousing(TestMain t){parent = t;}
      public void someMeth()
        System.out.println("Started out at TryinToTalkToHousing Class\n"+
        "Retieved from Class GetVar, you entered: "+parent.getVarible.houseForData.getCollectVar()+"\n");
    }

  • Problem reading other peoples inboxes in SAP

    Hi!
    I've read the posts on the mail subject but none of them apply to my problem. That's why I'm posting a new topic.
    My problem is this:
    The customer wants a program to run on the mailboxes of employees and send the employee an e-mail (to outlook) if they receive a mail in SAP inbox with a link to the item in question.
    I use standard SAP API's for this:
    SO_USER_READ_API1 - to find the users inboxfolder ID
    SO_FOLDER_READ_API1 - To read the contents of the inbox folder and to return the subject heading of e-mail in SAP Inbox.
    However, SO_FOLDER_READ_API1 only returns the e-mails belonging to current user. I.e. I run this program as a job (SM37) with a user that has SAP_ALL and SAP_NEW. The user is called 'WF-BATCH'. The program returns 0-zero-mails as this user does not have any e-mails in SAP Inbox. If I run the job as myself, it returns my e-mails and I find that my user is not authorized to access other peoples inboxes.
    But, surely, a user with SAP_ALL and SAP_NEW should have the authorization to do that?
    Has anybody got any ideas on how I should proceed? Alternatively, does anybody know what tables mail items are stored in - SO_USER_READ_API1 gives me the userID and FolderID and with this information I should be able to find e-mails if only I knew what tables they are stored in....
    Thank you in advance for helping me out
    - Njå

    Hi Njal,
    1. To honour privacy concerns,
        SAP won't allow to read other peoples inboxes
        thru FMs directly .
    2. In the FM, (2-4 levels inside)
       the system checks the
       current user name and specified user name(for inbox)
    3. If they match, only then it provides the result.
    4. For your requirement,
       u will have to copy the FM
       and accordingly over ride the code
       to check user name mentioned in point 2.
    regards,
    amit m.

  • Problems reading other  wireless network.

    Hello everyone,
    I am writing this message because in the last weeks I have been having a problem with my wireless network on my macbook. Every time that I open the computer it reads another network first and not the one that is mine. My other computer, ipad and ipod touch are reading the network that I own, but this macbook is not reading it first. I always have to go to network settings and changes it.
    Any advice or help in that regard? I will appreciate it.
    Thank you.
    Luis

    Hi
    Go into System Preferences... > Network
    Select AirPort from the list on the left and then your usual Location
    Click Advanced and select the AirPort tab
    Delete ALL networks EXCEPT your own from the list of nearby networks
    Click on OK, Apply, etc
    Bob

  • Set JComponent from other class

    Hi, I have problem from set any JComponent (JButton,JTable, etc.)
    in class from other class.
    I have class A. In class I have JButton and JTable. In this class I have function, in that are I create new instance class B. Class B have function, that are set properties any item in class A.
    class A
    function createAnotherClass(){
    B bclass = new B();
    bclass.setItemInClassA(this);
    function setItem(){
    jTable.setBackground(Color.RED);
    etc.
    class B
    function setItemInClassA(A a){
    a.setItem();
    This is only example, but I need your hepl. Thank you

    hahaha, yeah right,
    i think we do not understand your problem.

  • SwingWorker, setting progress from other classes

    Hi.
    I'm interested in SwingWorker. It's very good tool for long running task in GUI applications. I want to use progress feature, but I don't want to code the logic of my long running task into its doInBackground() method. I have some class (which creates some other classes) which reflects my problem in reality. I want to use this classes for other problems too. So I would like to update progress from this class. Ideal case would be if the method setProgress() in SwingWorker was public, so I can create optional constructor with additional parameter for SwingWorker class (and its subclasses) and call method setProgress from this class. Does anybody know about some solution? I'm still thinking over, but I cannot find ideal solution.
    Thx for help

    Your configuration remains incomprehensible.
    From the other thread you mention a Listener which gets asynchronous messages. Are we talking about a context listener which handles JMS messages or the like? From these message you get a value and set it in a bean property.
    Then we get lost. You say you want to pass this value to a Servlet, presumably by passing a reference to the bean. But how is a particular incoming message associated with a transaction going through the Servlet? How do you imagine the bean reference being passed. A ContextListener doesn't see the web transactions. Should these bean values affect all subsequent transactions? Is there some kind of key in the web transaction that makes it look for data from a particular JMS message?
    In general the way for a ContextListener to pass data to a Servlet is by setting attributes in the ServletContext, but you really haven't made clear what you're trying to achieve.
    Try explaining in a more general way what your project is trying to achieve. You're concentrating on details which almost certainly don't contain the problem.

  • Warning-encountered problems reading photo

    Just started receiving this message for a ton of images. Before this I just started getting the exclamation point waring about metadat. That I was able to fix by reimporting metadata.
    Any idea on how to fix this one on propblems reading photo unable to make adjustments.
    Thanks
    Dan

    I was also plagued by this problem. I could "fix it" (sort of) by leaving the computer alone (i.e. do not touch anything) while importing images from a memory card.
    Background: When I was first seeing this error, I was thinking - "aw, no, the CF card failed, gosh". After a short panic attack, I wrote down the file names and imported them (from the same CF card, same location, not even restarted Lightroom) manually. No problem at all, so I ruled CF card failure out. *phew*
    The error was always appearing when I was using Lightroom during the import process, e.g. opening images from the just imported set. Now, my Laptop computer is quite fast (Intel Core Duo T2300E 1,66GHz), so I thought processor performance should not be a problem. I guess it's a bug that needs to be fixed.
    An interim solution is to do nothing while importing, which works for me. Just imported 700+ images without a single problem.

  • ITunes shuts down at seemingly random times (read others like this before)

    I have a Windows 8 PC, 11.0 up to date version.  I was getting a system sound at random times and concurrently the file would stop playing.  Here is what I did .. I changed the system sound for "Device Connect" and made it something totally recognizable.  Typical email sound and other error sounds come out and there is no problem.  I think it is something linked to "Device Connect".  Is it hardware or is iTunes battling for connection or what?  When it happens I am able to close and restart iTunes .. but this is ridiculous. Anybody got a thought, direction or idea on what this might be?

    A hard drive that's almost filled to capacity can have problems, especially if there's a lot of fragmentation. The drive could also have a hardware problem that's causing the read/write heads to stick, causing a system hang. If you want to continue using this Mac, I'd install a larger hard drive (120 GBs is the max. retail size that's recognized at full capacity). A worst case scenario would be a flaky processor. I had a G3-333 MHz ZIF processor in a beige G3 that would act up and cause system hangs. Once I replaced it, the quirky behavior disappeared. Unfortunately, your iMac's processor is soldered to the processor card. Unless you really want to keep using it, you should decide if it's worth investing any money trying to troubleshoot the problem.

  • Problems reading cache in LR3

    Hello,
    Since upgrading to a Win 7 (32-bit) machine, I had problems with LR 2.7 stopping randomly and giving me an error message that it had failed to read the catalog file and had to close.
    Now, with LR 3, I am getting the same behavior, but it is telling me that it could not read the cache, rather than the catalog.    I did notice that in the develop mode, the loupe view was not hi-rez before this happened the last time.
    In both cases (2.7 and 3.0), after starting the program again it checks the indicated file (catalog in 2.7 and cache in 3.0), and there have been no problems found.  However, it is a PITA to have this happening all the time.  Any ideas?
    Thanks.

    Try deleting (entire XXXXXPreviews.lrdata folder next to your catalog file) and rebuilding your cache.
    Or better, try simply copying your catalog to a new location and run it from there. That will save you the long operation of rebuilding the cached if this (broken cache) doesn't prove to be the problem.

  • Cannot print a pdf doc. No problem with others

    Hello, I have a Canon MX860 wireless printer. I can print anything EXCEPT pdf docs. I had this same problem with other printers connected to my MacBook Pro. Any suggestions?

    I think we need to know what Sibleyfam is using as a PDF reader. I have had difficulties printing PDFs using Adobe Reader to various HP LaserJets but if I open the files using Preview they print without any problem at all. Right-click or Control-click on the PDF icon and select the Open With option... then slide across to the available applications and select Preview... if, of course, the document was opening in Adobe Reader previously. If it won't print from Preview it could be a postscript error generated by a bad font in the PDF. Opening the file in Photoshop or similar so you are, effectively, rasterizing the font data may solve the problem if a dodgy font is the issue. Converting the file to Postscript should also produce the same fix though I just 'printed' a PDF as a .ps file and the text was still selectable making me think that the font problem (if it is this) will not disappear after the conversion.
    I hope this helps eliminate something even if it doesn't solve your problem.

  • GUI to set file, other class to read it, file null error

    Perhaps not the most informative subject for this problem. I have a GUI in which a file chooser is used to select a file to be read. Another class reads in this file, and goes on to process it. My main class sets up the GUI and then goes on to process the files in the second class.
    I am having trouble, I believe, with timing. The main class sets up the GUI, it runs perfectly, and then I catch a problem (that will evolve into an error), where the file I am supposed to process is null, because I have not had a chance to use the file chooser in the GUI. I haven't had any luck finding a solution online, although if there is one (or another tutorial I missed), please feel free to pass the link(s) along. I am posting the relevant code below.
    Thanks,
    Danielle
    public Main()
         * @param args the command line arguments
        public static void main(String[] args)
             javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        System.out.println("About to run create GUI method");
                        MGui app = new MGui();
                        System.out.println("declared a new MGui....");
                        app.createAndShowGUI();
            /**Starting to get file choices and moving them into GPR Handler:
              GprHandler gpr = new GprHandler();
         //~ System.out.println("should be perfect????");
         //  }//end if
        }// end main(String[] args)
    }// end class MainThe GUI uses the following code for the file chooser:
    private class enterFile2Action implements ActionListener
         public void actionPerformed(ActionEvent evt)
              JFileChooser chooser = new JFileChooser();
              int rVal = chooser.showOpenDialog(enterFile1);
              if(rVal == JFileChooser.APPROVE_OPTION)
                   inputFile2 = chooser.getSelectedFile();
                   PrintWriter outputStream;
                   file2Name = inputFile2.getName();
                   enterLabel2.setText(file2Name);
    }Finally, the GprHandler class processes the file- reading it and such. The only relevant method, however is below.
       /** taking in files*/
        public boolean readFiles()
             boolean nullFiles = true;
             System.out.println("into method readFiles()");
         if (MGui.get1Name() != null)
              System.out.println("name isn't null");
              file1Name = MGui.get1Name();
              file1 = new File(file1Name);
         if (MGui.get2Name() != null)
              file2Name = MGui.get2Name();
              file2 = new File(file2Name);
              nullFiles = false;
         }//end if
         if (nullFiles)
              System.out.println("one or more files is undeclared");
              return false;
         }//end if
         else
            try{
             file1Reader = new FileReader(file1);
                file2Reader = new FileReader(file2);
         }//end try
            catch (FileNotFoundException e)
             System.out.println("file not found exception");
              return false;
            }     //end catch
         }//end else
         return true;
        }

    No, you're quite right. I want the GprHandler to
    start when I've got something there for it to start
    with. I never thought to call it from the
    actionPerformed though. I think I've been listening
    to too many lectures on some prof's definition of a
    "proper main class".
    I think I understand what you're suggesting: I
    should simply remove the GprHandler part from my main
    class and place it instead in the actionPerformed
    methods, once the files are actually named/chosen.
    Did I get that right?
    Qualified yes. Does GPRHandler implement Runnable? I mean you don't want to do the processing in the swing event thread. So what you should do is in the actionPerformed create the Handler (with the file or whatever other bits it needs) and then start it.
    Then it can process merrily along in a seperate thread.

  • I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system i

    I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help..

    Thank you for your reply. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help.

  • Having serious problems with apps on iphone 5 ios7 (have read other posts)

    Hello,
    My daughter has an iphone 5 with ios 7.02. Ever since she updated to ios7 she has not been able to update her apps. When she tries they grey out and are stuck on waiting. We have tried everything and I think I have read every post on the subject. I decided to work on it again today and I have deleted as many of the apps as I can, there are still some that are completely grey that don't show in any list and won't delete off the phone.
    I cannot update to ios 7.03 because it does not show that as an update. Now when you look at the app store icon it has a little #28 on it but when I go into the App Store app to see the updates it only shows 4 because I have deleted all the other apps.
    Things to know.
    This phone has only ever been in icloud.
    Never connected to the computer.
    I have tried every version of signing out of itunes, deleting apps, resetting network settings, reset by holding on/off and home button that I can read about. I'm at a loss.
    These are my main questions/concerns-
    Why won't the deleted apps come off the screen?
    Why does the App store icon show 28 but when go into the App store app it only has 4 updates?
    Why is there no ios 7.03 to update to?
    Why can't we update the 4 apps that need to be updated? (she can't use them at all)
    Even the apps that have been deleted and show to be in the cloud can't be downloaded-why not?
    I would really appreciate any help. It's been such a problem...I really don't want her to lose everything if possible. She is a 13 year old girl and would love to keep all her data etc.
    Thanks in advance,
    Stephanie

    If this is only happening occasionally with incoming calls, I would check the signal strength where it occurs and also check with the carrier to have them check your account. Phone calls are a carrier responsibility, and since it seems to be a infrequent issue, I would look at the carrier first.

  • Javadoc other classes problem

    I wish to perform javadoc with for example
    public class Java {
    Java () {
    class JavaInternal {
    but in the end, i could not get JavaInternal through Javadoc
    how do i proceed?

    thanks very much,
    but is it normal that when i clicked on "All Classes" i get only the class corresponding the filename?

  • Iphone 4s syncing problems reads as other phone

    I have a 4s and my daughter has one somehow my phone is reading as her phone and wont change i have tried entering apple id etc is there any way to fix this but she lives out of state this happen when she used my computer i have changed everything in i tunes etc. please help!

    yes we used the same computer one time and been having major issues.

Maybe you are looking for