Program won't run

I am currently reading "Sam's teach yourself Java 2 in 21 days", and I followed the instructions for programming the "VolcanoApplication" (the files can be found here http://www.cadenhead.org/book/java-21-days/chapter.php/1 and are called VolcanoRobot and VolcanoApplication). I compiled the two programs, but VolcanoApplication won't run. I get an error message saying "Exception in thread "main" java.lang.NoClassDefFoundError: volcanoapplication/class"

I copied the two files, compiled them and had no problem running VolcanoApplication. To try to narrow down your problem, do the following:
1. Check the names of both files to make sure that they are called VolcanoApplication.java and VolcanoRobot.java. 
Make sure there are no typos because the file name must exactly match the class name.  This includes case.
2. Before trying to recompile, first erase the old .class files.  Go to the directory that contains the files
and issue the command: "javac VolcanoApplication.java".  This should compile both files. 
The javac command should complete with no errors.  Now check your directory, you should see
VolcanoApplication.class and VolcanoRobot.class in your directory.
3. From the same directory, issue the command "java VolcanoApplication".  Again, make sure there are no typos. 
It should execute the program and print out some stuff.

Similar Messages

  • My accounts program won't run without legacy Java SE6 runtime since I upgraded to OS x Yosemite but I can't download it

    My "Solar" accounts program won't run without "legacy Java SE6 runtime" since I upgraded my iMac desktop to OS x Yosemite but I can't download it, nothing happens when you click on the link to apple support

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

  • Programs won't run after update to 10.6.7

    Hi
    I have just inherited an early 2008 iMac following my Dad's death a few months ago. So I have no Mac experience at all. On receiving it, I booted it up and a list of recommended software updates appeared which I ran, and by all accounts successfully installed. One of them was an update to 10.6.7
    Previous to the update I could access the installed programs. Now I can access barely any of them.
    Error message reads:
    Application name cannot open.
    Check with the developer to ensure this version of application name works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS.
    There aren't any further updates needed. Every time I check, I'm advised everything is uptodate. So last night I reinstalled iTunes, downloading the latest version. That won't run. Same error message.
    I'm unsure what to do now. I don't have any disks etc at the moment as Mum is still trying to locate them (they had more than one property and this has come out of one that has been boxed up and put onto the market).

    This is a typical error report. The section I have bolded out seems to be common in all the errors.
    Process:         iTunes [500]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         ??? (???)
    Build Info:      iTunes-10221201~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [105]
    Date/Time:       2011-05-11 06:38:32.490 +0100
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          15167 sec
    Crashes Since Last Report:           305
    Per-App Crashes Since Last Report:   6
    Anonymous UUID:                      DCCD367C-006F-4EEF-8457-3885D045DBBE
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
      Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
      Reason: no suitable image found.  Did find:
              /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: iMac8,1, BootROM IM81.00C1.B00, 2 processors, Intel Core 2 Duo, 2.8 GHz, 4 GB, SMC 1.30f1
    Graphics: ATI Radeon HD 2600 Pro, ATI Radeon HD 2600 Pro, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HDP725032GLA380, 298.09 GB
    Parallel ATA Device: MATSHITADVD-R   UJ-875
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0xfd400000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x5d100000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1a100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x820f, 0x1a110000

  • Downloaded updates but program won't run.

    I'm trying to open student loan information @ FAFSA. They're telling me I need to update my browser. I'm using Firefox so I've walked through prompts and programs still won't run. Any ideas?

    See my answer in this prior post: https://support.mozilla.com/en-US/questions/857254?s=fafsa&as=s
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I have Dell XPS (windows 8.1): error: "this program won't run on this pc"

    Greetings, I just purchased a Dell XPS with Windows 8.1. I have tried to load Irfanview, Kompozer, FileZilla, and other software that I have run, most on XP and even on MacOS, but the downloaded software will not run or install on my new Windowx 8.1. This
    is terribly frustrating! I also don't understand why there is no "start" button that leads you to the software you have installed. 
    Please help. Thank you. 

    Press the Windows key on your keyboard.
    To get Start menu press + X
    Further references
    Where is the Start menu?
    If you wish to get the conventional  Start button  then download and install
    Classic Shell
    some older programs might run poorly or not run at all. If an older program doesn't run correctly or doesn't install, start the Program Compatibility Wizard, which simulates an earlier version of Windows. You can :-
    Make older programs compatible with this version of Windows
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Diasend Uploader program won't run?

    Hi there, I have an  HP Touchsmart 610-1010a, I am trying to run a program called Diasend uploader?
    It will download install and run fine on other peoples PCs but not mine.
    It is a 32 bit program so this may be part of the problem as I am running 64 Bit??
    As soon as I try to open the program it says: the program has stopped working and then nothing happens.
    I have been in touch with the support team for Diasend to no avail.
    When I try to install it seems to go fine until the part of the install in this attachment shown in slide 13, I never see this part it just shows the last part , slide 14??
    https://diasend.zendesk.com/attachments/token/intoyvodr3em8wx/?name=Diasend+-+Uploader+installation....
    Can anyone help please??

    I sorta feel good that I'm not the only one baffled. I would agree with his assessment that something is blocking the install on the machine from being completed. As to what it could be I'm not really sure, usually when something isn't installing properly it's due to a firewall or antivirus program halting the installation. Since you turned off Norton and attempted an installation that should rule that out, unless, Norton still runs even when turned off. I have seen anti virus programs continue to run when disabled to "protect" the end user.
    I'd recommend booting the computer into safe mode (see my previous link) and attempting to install the program that way. This should keep Norton from even starting up on the program so it would guarantee that it's not the issue.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • OS X Program Won't Run Without Java 6

    Have a completely fine install of Java 8 (tested and whatnot) however I have a Mac OS program that requires Java. (1.1 or later) Of course, I should have realized that Apple would not let it go easily (ha ha) and is giving me the error message "To open "Program" you need to install the Legacy Java SE 6 runtime". I refuse to downgrade to an older, painful (and not completely working) version of Java just because it won't recognize I have Java 8. This program is compatible with Java 8, by the way. Is there a way to force the program to run on Java 8? This error message isn't the program's, it's an OS X one, which makes me think I just need to bypass it to get the program running. Thanks.

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

  • I run OSX10.6.8. Just dwnlded FF8.1 and everytime I go to open it I am asked about the disk image. But if I delete the dmg, the program won't run.

    I just downloaded the 8.1 version. It was a 30+mb file. Previously I ran 4.0. So I drag the new Firefox icon into the Apps folder. It does its merge thing with the old version. Problem is when I click to open FF now, it always throws up this window asking me about the disk image of what I just downloaded. I even tried restarting the computer--but the same message pops up. I checked on your website and it says that I need to "eject" the disk image (i.e. I'm guessing that means the 30+ mb file I just down loaded), so since I don't have an eject option that I can find (except for external harddrives and cd/dvd), I just drug it into the trash. I go to empty the trash and I get a message that that dmg file is "in use" even though FF is completely shut down. So again I'm guessing that means that even though I already merged that dmg file with the old 4.0 version file, if I dump the update file it seems that it's going to mess up the actual revised program file still remaining. I just want to be able to click on the icon in my dock like I've always done and have FF open. I don't want to keep being asked about disk image stuff. Somehow this feels like an easy resolution, but I just can't seem to put my finger on how to resolve it. Thanks for you help.

    Nope---didn't work. I've owned Macs for about 12 years so although I am brain dead on some things, I do have a working knowledge on most things. I only say that to say this--I did try holding down the mouse and choosing empty trash. It asks if I want to permanently delete what's in there. I say yes--and then I get the same identical message again-----'The operation can't be completed because the item "Firefox 8.0.1.dmg" is in use I can then click stop, or continue.' So apparently that complains the same way it does if I click it up on the menu :)))
    As for item owned by---that's not an issue and isn't coming up. User is not a problem either as I am the only user on this system. There is only ONE file in my trash at the moment at that is this dmg file. Nothing Mac. Nothing owned by anyone other than Firefox. The problem seems to be that the dmg file and the original 4.0 FF file are working in tandem with each other--even though I have already drug the new 8.0 globe into the Apps folder and it updated the FF app with the new stuff. If I could force the dmg file to go away, I would do so, but at every turn the system is telling me it can't be done because it seems to think that dmg file is in use---even though everything is shut down and/or ejected. Hey--I'm getting ready to head out and won't be back till evening. I'll check back in this evening. Thank you again for your help.

  • My VSB program won't run in XP. No clue why (no crash, no error.)

    I've written other programs that run under XP/7/8 just fine. But this latest project, when I run it under XP (from a VM), nothing happens.
    No error. No crash. It just never runs! I tried setting the .Net Framework to 3.5 as always (though it really doesn't need .Net), but it made no difference.
    Any ideas why? Are there controls XP just doesn't support? My first app to use "ListView" and "ObjectList" objects if that matters. :(
    App runs perfectly under Win 7 & 8.

    VS 2013 cannot be installed on Windows XP.  Neither can VS 2012.  If you try to run a program created with VS 2012 or 2013 in Windows XP, it will not work!.  It is simply not compatible.  You need to recreate the program from scratch
    in VS 2010 in order to run it in Windows XP.
    I am running both Windows XP and Windows 7 on the same computer, with 2 partitions.  I am more comfortable with Windows XP, but was required to use the newer version of VS for school.  When I tried to install VS 2012, it refused.  I had no
    other choice but to use Windows 7, and I am going back and forth between the 2 operating systems.  That's how I was able to answer your question.
    Solitaire
    Solitaire,
    Are you saying that if you create a program in the latest version of VS, even if you target an earlier version like framework 3.5
    and also set it to compile for x86 (32-bit), that it will not work on XP?
    If so then that make no sense, but ... I don't know.
    Still lost in code, just at a little higher level.

  • ITunes 9.0.2 installation program won't run

    I've been trying to upgrade iTunes for 2 days now but to no avail. I even uninstalled its v9.0.1.,and did another Windows Updating check. After downloading iTunesSetup file (v9.0.2.25), tried to run/open it but this prompt came out: " Security Warning Windows has found a problem with this file Name: iTunesSetup.exe Publisher: Unknown Publisher The file was blocked because it does not have a valid digital signature that verifies its publisher." I tried scanning it with the antivirus program, the result came out with this message: " This file is signed with a broken signature issued by: Apple, Inc." I need help, please....

    Downloaded the setup file using Firefox. Located the file using Windows Explorer. Ran/opened the installation program but at the STATUS: COPYING NEW FILES this prompt appeared: "The cabinet files 'iTunes.cab'required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-Rom, or a problem with this package."
    Hmmmmm. So, it's looking like something damaging the installers on the way down to your PC. On IE it manifests as digital signature issues ... with Firefox it's just a damaged installer.
    Okay, experimental advice but it will do no harm. Although the following document is for a different sort of error, try the advice in it:
    http://support.apple.com/kb/TS1814
    (If the box is already checked, try unchecking and rechecking it.)
    After that, can any of your browsers download an undamaged installer?

  • My program won't run.

    i'm brand new to java and i'm working on the examples to learn the language. i followed all the instructions from this page www.netbeans.org/kb/articles/gui-functionality.html. it complies just fine and when i click run it doesn't give me any errors, it just doesn't run.
    i'm using NetBeans IDE 5.5 with JDK 6.0 Bundle.
    thanks,
    -Aaron

    here's my out put on compile(F9):
    init:
    deps-jar:
    compile-single:
    BUILD SUCCESSFUL (total time: 0 seconds)
    here's my output on run(shift+F6):
    init:
    deps-jar:
    compile-single:
    run-single:
    BUILD SUCCESSFUL (total time: 1 second)
    and then nothing hapens. the examples that come with netbeans 5.5 compile and exicute when i compile and run, but my program doesn't. i feel like i have to be missing a step. a checked box or a bit of simple code, but i have no idea what it could be.

  • Compiled program won't run

    Hey everyone, I'm trying to compile a program that I wrote, but I cannot get it to come up. In command prompt, I set the directory to where I have the program saved:
    C:\Java
    I already have the path set to:
    c:\program files\java\jdk1.6.0_13\bin
    When I compile the program (javac MyProgram.java), it will compile without an error, but when I go to run it (MyProgram.java), it will open the code from Notepad.
    I hope this makes sense. This has not been a problem up until this week, so I don't know what could've changed in my settings. Everything looks the same as it has always been. Any suggestions?
    Thanks,
    Dave

    imagine_1009 wrote:
    Hey everyone, I'm trying to compile a program that I wrote, but I cannot get it to come up. In command prompt, I set the directory to where I have the program saved:
    C:\Java
    I already have the path set to:
    c:\program files\java\jdk1.6.0_13\bin
    When I compile the program (javac MyProgram.java), it will compile without an error, but when I go to run it (MyProgram.java), it will open the code from Notepad.
    I hope this makes sense. This has not been a problem up until this week, so I don't know what could've changed in my settings. Everything looks the same as it has always been. Any suggestions?You are trying to execute the sourcecode, which will load the the textfile into an associated editor (notepad in your case). You might want to read up on the tutorial: [http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html]

  • My Compiled Program Won't Run

    I am relatively new to Java. I am having a problem with a very simple program I decided would be my first. I am able to compile it but it will not run. Here is the code.
    //A Very Simple Example
    class ExampleProgram {
    public static void main(String args[]){
    System.out.println("I'm a Simple Program");
    It will compile so that I may recieve my .class file but when I use DOS to open it. DOS writes "Exception in thread "main" java.lang.NoClassDefFoundError: Example Program."
    I'm sure this is a runtime error but besides that I have not found anything that will help me fix the problem. I would be greatful for any help.

    Is that the exact error?
    Did you run it as
    java Example Program
    (that's what it looks like)
    try:
    java ExampleProgram
    ~David
    If not, it relates to the 'classpath' issue, well documented, and asked at least 1000 times prior in this forum (see the search engine on the top right corner?)

  • C++ compiled programs won't run in windows

    I've been learning C++ for a week or two now, getting a good hang of it. I just use Kate as my editor and g++ to compile the program. It all runs fine under linux, but I'm not sure how to make a program to execute easily (terminal) in windows. So if the program runs in terminal on Linux should it run in a DOS window on windows? What do I need to do to allow my little apps to work properly under windows?

    pecan wrote:I've been learning C++ for a week or two now, getting a good hang of it. I just use Kate as my editor and g++ to compile the program. It all runs fine under linux, but I'm not sure how to make a program to execute easily (terminal) in windows. So if the program runs in terminal on Linux should it run in a DOS window on windows? What do I need to do to allow my little apps to work properly under windows?
    You have to recompile your source code under Windows.

  • How do I uninstall Firefox 6.0 and go back to Firefox 5.x. I am a teacher and several secondary programs won't run with 6.0 and I do not want to upgrade them-too many downstream problems.

    The most recent update was apparently on 8/18/11 and 8/20. Message comes up to upgrade Java, Real Time Player, and two other programs. I have not been able to use Real Time Player for about a month and it used to work well in the old version of Firefox. By the way, everything works fine in Internet Explorer (which I really don't want to use).

    http://kb.mozillazine.org/Uninstalling_firefox
    this site helps me a lot......hope this can help

Maybe you are looking for

  • Legacy integration between Exchange 2003 and Exchange 2010

    Dear Team, we are using Microsoft Exchange 2003 & 2010 Server for Emails, now we have both servers are connected, we want to raise new Single incident request for doing this activity, we want disconnect 2003 server from 2010 server so accordingly nee

  • AirPort Express - won't install w/ OS X 10.5.2!!!!!

    I just purchased the AirPort and tried to install the software, CD version 5.1.1. The instructions with the software state that the software is compatible with "OS X v10.4 or later." I'm running OS X 10.5.2 which, if my understanding of the English l

  • Automatic clearing (SAPF124) - Clearing across multiple customers

    Is it possible to use F.13 to clear open items across two different customers if the matching criteria is fulfilled? Eg: Receivable is created in Customer A. We do not have any visibility to who the payment will come from. Payment comes through an in

  • DVD ejected before completed

    I am trying to burn a DVD movie that I made on iMovie onto a DVD-R using iDVD. I get to the "multiplexing and burning" stage when the DVD is ejected. Nothing displays on the screen, it looks like it is continuing to burn. There is nothing burned onto

  • WHY make a PDF portfolio?

    WHY make a PDF portfolio? There is a lot of information on how but I don't understand why. What is the point, why not make something else? Does someone have an example of a situation in which makeing a portfolio really benefitted them in ways that ot