Programs will not compile that have seperate classes

I am trying to compile a program which has a seperate class, but it wont compile, it cant find the other class. I am compiling in the correct order, and I have tried re-compiling programs with seperate classes that I have done before, and they now wont compile. I tried compiling my program on my friends computer and it compiled fine.
I am using jdk5.0 update 6 on Windows XP Pro
Any help will be much appreciated

That still doesnt work, it comes up with an extra
error message now:
"error reading PhoneEntry.java; error in opening zip
file"Zip file?
It sounds like you have some bogus zip file in your classpath.
Did you try the exact command I posted?
my two classes are PhoneEntry.java and
PhoneBook.java
PhoneEntry needs to be compiled before PhoneBookThat doesn't matter. Javac will take care of that automatically.
PhoneEntry compiles fine, just when it tries to find
PhoneBook it appears it cannot find the created
PhoneEntry.class fileAll I can guess at is that you're doing this: javac -classpath .;something.zip *.java and something.zip either doesn't exist or is corrupt.

Similar Messages

  • I have apps that will not update that have been like that for a while.. why wont they updat?

    I have apps that will not update that have been like that for a while.... why will they not update???

    Yes apps are stuck on "waiting" one has been like that for a month and my other ones still wont download

  • Known-working program will not compile!

    Hey people. Rookie here!
    I'm trying to compile something I downloaded - I know the file works, and I have the latest SDK, but it won't compile! Its working with Graphics2D objects, and it seems to have a problem with some of the methods. This is what I get when I try to compile with javac.exe
    Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC1D212
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    Dynamic libraries:
    0x00400000 - 0x0040C000      d:\java\bin\javac.exe
    0x77F50000 - 0x77FF7000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E5D000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78087000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000      C:\WINDOWS\system32\MSVCRT.dll
    0x00280000 - 0x002F4000      C:\DOCUME~1\Chris\LOCALS~1\Temp\oxb59.tmp
    0x77340000 - 0x773CB000      C:\WINDOWS\system32\COMCTL32.DLL
    0x7E090000 - 0x7E0D1000      C:\WINDOWS\system32\GDI32.dll
    0x77D40000 - 0x77DCC000      C:\WINDOWS\system32\USER32.dll
    0x71B20000 - 0x71B31000      C:\WINDOWS\system32\MPR.DLL
    0x771B0000 - 0x772D4000      C:\WINDOWS\system32\OLE32.DLL
    0x77120000 - 0x771AB000      C:\WINDOWS\system32\OLEAUT32.DLL
    0x71AD0000 - 0x71AD8000      C:\WINDOWS\System32\WSOCK32.DLL
    0x71AB0000 - 0x71AC5000      C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\System32\WS2HELP.dll
    0x08000000 - 0x08139000      d:\java\jre\bin\client\jvm.dll
    0x76B40000 - 0x76B6C000      C:\WINDOWS\System32\WINMM.dll
    0x10000000 - 0x10007000      d:\java\jre\bin\hpi.dll
    0x009B0000 - 0x009BE000      d:\java\jre\bin\verify.dll
    0x009C0000 - 0x009D9000      d:\java\jre\bin\java.dll
    0x009E0000 - 0x009ED000      d:\java\jre\bin\zip.dll
    0x76C90000 - 0x76CB2000      C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58D000      C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C07000      C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\System32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 431K [0x10010000, 0x100b0000, 0x104f0000)
    eden
    This is driving me insane now, I would appreciate any help.
    Chris

    I see that you have installed in non-standard directories. If you didn't do this correctly, it is possibly causing the error.
    After checking per jsalonen's reply, double check that stuff is where you want it, and that your PATH (and if used, CLASSPATH) environment variables are correctly set. See Sun's Java Installation Instructions for PATH info.
    Change to the directory that has correct copies of javac.exe and java.exe, and try compiling. (These files are in the JAVA_HOME\bin directory, in my machine at C:\j2sdk1.4.2_05\bin). If that works, check that the copies of java.exe and javaw.exe in WINDOWS\System32 are the correct versions. Also check that the Registry keys under HKEY_LOCAL_MACHINE\Software\JavaSoft\ are pointing at the correct locations for each program.
    (You might want to uninstall and then reinstall using the default locations if nothing else works.)

  • How can I remove version 3.5 from my computer... the add/remove programs will not work, I have 3.6 installed and 3.5 is taking up over 2 gigabytes of disk space according to the add/remove in the control panel and nothing I do will remove 3.5

    I have been trying to make room on my C drive and have been removing stuff I don't use. I have version 3.6 Firefox but my settings show I also have 3.5 which shows over 2,000 megabytes of disc space being used. I try to remove it but nothing happens, nor can I find it when searching "my computer" to try and kill it. Why would any program use up 2 gig of space?
    == This happened ==
    Every time Firefox opened
    == I was trying to find a way to clear up space on my C drive

    If you need to consider removing 30MB folders to create space then I imagine your hdd is seriously short of space. Normally I think it is often suggested a minimum of 20-25% free space be left on a Windows machine hdd. How much free space % wise have you at present.
    You probably have already thought of these, a lack of space could slow things down and may even contribute to crash problems.
    *Not using the Hibernate feature will release one largish chunk.
    *Not keeping video files on the HDD unnecessarily is also likely to save space.

  • PHP 4 will not compile in PHP5 on OSX Server 10.5.5  Mac Mini

    I have been using a commercial server which does not give access to php.ini but bought a Mac Mini and OSX Server 10.5.5. My old PHP 4 program will not compile in PHP5. It gives weird compilation errors to do with curly brackets but as soon as I alter one bracket it jumps to another similar error somewhere else in the program. I think it may require tweeking the php.ini or httpd.conf files which I have opened using Terminal but I don't know what might need to be changed. I expected this to be a turn-key system ready to go. I knew there would be changed required to migrate from PHP4 to PHP 5 and read the official PHP site, searched many forums, and google searches, called AppleCare but none knows what to do. I used an editor and there are 276 open brackets and 276 close brackets. If you have made the same migration without difficulty please let me know. Maybe I just need to start again!

    evan-e-sent wrote:
    Well, I don't think the code is too messy except for the globals I use.
    It is. The point of this function is beyond elusive given the number of side effects it seems to induce. Everything in it could be reduced to one or two lines, but odds are good it shouldn't even exist in the first place.
    I just use the same set of globals for all functions so that these variables are readily available everywhere in the program without having to think about it.
    That's a very common beginner tactic which is unfortunately very prevalent in publicly distributed PHP projects due to the fact that many of them are written by beginners. I'd highly recommend you start thinking about it if you want to get anywhere.
    They are all constants once they have been set initially.
    http://us2.php.net/manual/en/function.define.php
    Like $query is set only once when the program picks it up from a $GET statement.
    And I'll bet you're not sanitizing that query string at all before passing it along to mySQL.
    This leaves two questions. Do you think I should treat every function as a separate file and have the mainline bring them in as "included code". There are 126 functions.
    Refactoring should improve the organization, performance and readability of your code according to some logical criteria. Simply putting each function in its own file accomplishes none of these things.
    (I have also written a 6000 line program as a MySQL data processor to make it easier for my wife to manipulate the data in dozens of tables without having to keep track of all the unique keys. So this will be quite a big job.) If so I would appreciate a quick tip about how to do that in PHP. Other pre-processing I do with Applescript.
    Why didn't you just install phpMyAdmin?
    Second, goes back to my initial question. This parsing problem only appeared after switching to PHP 5.2.2 with MySQL. Could this weird behavior be caused by some setting in the PHP.ini or httpd.conf or my.conf files and if so what would I change. The fact that this has not been suggested on this forum makes me think it is not a config. problem. That in itself is useful information.
    Probably not, but who knows what other nightmares might be lurking in this file. Did you use short tags like <? ?> or something?

  • I have a Mac running OS 10.5.8. I downloaded Firefox 4 and not the program will not open at all. I am also unable to download the previous version that was running fine. I'm using Safari to contact you.

    I have a Mac G5 running OS 10.5.8. I downloaded Firefox 4 and now the program will not open at all. I get an error message that reads --
    "You cannot open the application 'Firefox" because it is not supported on this architecture."
    I am also unable to find a link to download the previous version (3.6) that was running fine. (I'm using Safari to contact you.)

    Same proble here, although the Firefox system requirements says it is OK to have PowerPC G3 G4 or G5 ( I have G5 2GHZ)
    My solution; very simply use timemachine to restore the previous Frefox 3.x
    worked great in 3 mns

  • My iphoto program will not open, I get a message "you have previously used a newer version" open with that

    my iphoto program will not open I get a message "you have used a newer program in the past use that program"  I only have the one ???

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I updated Pages two months ago, yet my gmail program will NOT send out a pages document and a pages file I saved to desktop will NOT open and a box pops up telling me it won't open document without the Pages upgrade WHICH I HAVE ALREADY DONE...PLEASE HELP

    I updated Pages two months ago to the latest version.  BUT, my MAIL program will not allow me to send documents I attach that are genereated witht eh update Pages.  And, when I save a doc to desktop generated in Pages, it will not opena, a box pops up and tells me the it wil not open until I have upgraded to the new PAges, WHICH I HAVE ALREADY DONE!!!  What is UP with this, can anyone please help me?  Would GREATLY appreciate it.
    SA

    Pages 5 is in a new format that is not compatible with GMail, Google, Amazon, DropBox and other 3rd party servers.
    Peter

  • I deactivated Photoshop CC on my Mac Mini and downloaded PS CC on my MacBook 1.1. I didn't realize the program will not run on MB 1.1. I uninstalled the app on the MacBook. I tried to reactivate on my Mac Mini and it tells me I already have the program lo

    I deactivated Photoshop CC on my Mac Mini and downloaded PS CC on my MacBook 1.1. I didn't realize the program will not run on MB 1.1. I uninstalled the app on the MacBook. I tried to reactivate on my Mac Mini and it tells me I already have the program loaded on two computers. How do I solve the problem?

    The activation server shows that it is now activated on two computer, it has been deactivated once .
    When you install it on the third computer or for the third time & when you to activate it, if it installed & activated already twice, there will be an option of deactivating it from the previous computers, please click on that.(To deactivate from preinstalled machine, Open any Adobe CC application > Help Menu > Signout.)
    Next it will allow you to activate on your new machine,
    Now you can go back to your first computer, log out & log back in of Desktopp CC App, launch any product, if there is any product to buy, in that prompt there will be an option to " license the software", please click on that & sign in.
    It will reactivate the CC on the first machine.
    You have already deactivated it from one machine, hence you can activate it on third computer.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivat ion-products.html#deactivate-problem
    In case the is still not resolved, please contact Adobe at
    http://adobe.ly/yxj0t6
    Please refer to:
    Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
    I'm a Creative Cloud member, why is my app launching as a trial? Mac OS 10.7.4
    creative cloud software says my free trial has expired, but I have a paid subscription
    Re: Creative Cloud for Teams - second computer will only install as trial version
    Creative Cloud Help | Install, update, or uninstall apps
    Hope it helps.
    Regards

  • My (postage stamp icon) mail program will not send outgoing mail - only receives, what's up with that?

    My (postage stamp icon) mail program will not send outgoing mail - only receives mail.
    Says the outgoing mail server is wrong, but Comcast says it's right - what's up with that?
    Is there a way to reload the standard (postage stamp icon) mail program?

    Clearly there's something wrong with the configuration. Reverting to some other mail application (whatever the 'standard' one is...) won't help.
    What does the Connection Doctor (Mail -> Window -> Connection Doctor) have to say about it?
    Chances are your username/password for your SMTP server are incorrect.

  • I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    Dee002 wrote:
    MacBook's only have 2.0 USB ports.
    Wrong. 
    If you're not going to provide correct advice then don't repsond at all.
    http://www.apple.com/macbook-pro/specs-retina/

  • I have Photoshop Elements 9 on an iMac with OS 10.6.8. I bought a new printer/scanner and the program will not import the new scanner to replace the old one. How do I do this?

    I have Photoshop Elements 9 on an iMac with OS 10.6.8. I bought a new printer/scanner and the program will not import the new scanner to replace the old one. How do I do this?

    Thank you for your suggestions. I downloaded a more recent version of Twain, but this didn't help. I also tried closing and opening Photo Shop and restarting my computer without success. Reinstalling Photo Shop sounds like a very promising solution, but I'm  not sure I will do it. In the meantime I can scan items using a printer program. These scans open in Photo Shop. It is an extra step.

  • HT1918 I have a new visa debit card, I have tryed several times to put in this new information into my IPad. The program keeps telling me. There's a billing problem with a previous purchase. Please update your payment method. The program will not let me u

    I have a new visa debit card, I have tryed several times to put in this new information into my IPad. The program keeps telling me.
    There's a billing problem with a previous purchase. Please update your payment method.
    The program will not let me update, what am I doing wrong. rose165

    I would love to have a phone number to call someone with apple on this issue.

  • I reinstalled microsoft word and now have a copy that will not work that is the default

    I reinstalled microsoft word and now have a copy that will not work that is the default

    I have MS word 2008 for MAC version 12.1
    When I left click the MS word applications that is the default seems to be corrupted as indicated by the message below but when I right click i can select the second MS word application that works.  The message from the left click is
    Process:         Microsoft Word [10367]
    Path:            /Users/geralddowling/Library/Mail Downloads/Microsoft Word.app/Contents/MacOS/Microsoft Word
    Identifier:      com.microsoft.Word
    Version:         ??? (???)
    Build Info:      Unknown-80409~0
    Code Type:       X86 (Native)
    Parent Process:  launchd [128]
    Date/Time:       2011-07-25 17:25:09.413 -0400
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          166920 sec
    Crashes Since Last Report:           5
    Per-App Crashes Since Last Report:   5
    Anonymous UUID:                      1C5621D4-1D85-488D-A24C-CB298759DBC6
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: @executable_path/../Frameworks/MicrosoftComponentPlugin.framework/Versions/12/M icrosoftComponentPlugin
      Referenced from: /Users/geralddowling/Library/Mail Downloads/Microsoft Word.app/Contents/MacOS/Microsoft Word
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
    Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 8 GB, SMC 1.53f13
    Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.5
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: ST31000528ASQ, 931.51 GB
    Serial ATA Device: HL-DT-ST DVDRW  GA11N
    USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1006, 0x24300000
    USB Device: Cruzer Mini, 0x0781  (SanDisk Corporation), 0x5150, 0x24310000
    USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x0220, 0x24320000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26500000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000
    USB Device: Back-UPS ES 750 FW:841.I3 .D USB FW:I3, 0x051d  (American Power Conversion), 0x0002, 0x06400000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000

  • I have an issue with Acrobat, after a few uses, the program will not load, the only way to fix it is to completely uninstall the CS suite wipe the drive and reinstall the software, then after a few uses it stops working, how do i fix this?

    after a few uses, the program will not load, the only way to fix it is to completely uninstall the CS suite wipe the drive and reinstall the software, then after a few uses it stops working, how do i fix this?

    Not sure of an answer to your basic question, but it may be that you can run a repair (on Windows --> Control Panel>Programs & Features and run the repair on Acrobat). If that fixes the issue, at least temporarily, at least you will not be reinstalling everything -- a real pain.
    Next, open Acrobat and go to the Help to run the updates and be sure you are current. On some OSs, the updates are critical.

Maybe you are looking for