Even a simple program is not working ?

Hi there,
I typed a simple program to display the customer details. The program goes like this :
import java.lang.*;
public class Customer
     String custname;
     String custID;
public Customer()
     custname = "Bob";
     custID = "S20010";
public void displaydetails()
     System.out.println("Customer name is " + custname);
     System.out.println("Customer ID is " + custID);
public static void main(String a[])
     Customer cust = new Customer();
     cust.displaydetails();
The compilation went right. But, when I executed the program the following error message is displayed :
c:\>java Customer.java
Exception in thread "main" java.lang.NoClassDefFoundError: Customer/java.
Please help !!

Don't cross-post.
http://forum.java.sun.com/thread.jspa?threadID=576890&messageID=2891064#2891064

Similar Messages

  • I just signed up for a subscription to adobe reader paying EUR 24.40. The program does not work, and I can not even go to my personal page .... help ...?

    I just signed up for a subscription to adobe reader paying EUR 24.40.
    The program does not work, and I can not even go to my personal page .... help ...?

    Adobe Reader is free; it does not require a subscription.
    Did you subscribe to an online service like ExportPDF, PDF Pack, ...?
    What exactly does "not work" mean?

  • Hello Since yesterday evening. My itunse program does not work my mobile. Note  I update the program to ios7 Please help me Thank you

    hi
    Hello
    Since yesterday evening. My itunse program does not work my mobile.
    Note
    I update the program to ios7
    Please help me
    Thank you

    I found this strange glitch that wouldn't let me open my iTunes Store. I tried all the reset options and still iTunes would close a second after it opened. I fixed this. Instead of using the iTunes Store icon on your home page to open it. Go into music and click on store. It will say "Cannot Connect To Store". Just tap ok. Then tap on "featured" on the bottom of the screen. That will take you to the store front page. After that is loaded. Back out and the icon for iTunes Store on the home page should work just fine. Hope that helps.

  • I have an iMac from 2009 updated all my OS programs even purchased Snow Leopard. Tried to import pictures from my iPad mini and found out my iPhoto program is not working.  Can I get a replacement

    I have a 24 inch 2.93GHz Intel Core 2 duo,purchased April 2009.  I tried to import my photos from my iPad mini and found out that my iPhoto program was not working correctly.
    Is there a way that I can get an updated version of iPhoto.
    Thanks
    <Email Edited by Host>

    What does "not working correctly" actually mean?
    What version of the OS do you have?
    v8.1.2 is the latest version of iPhoto 09. Upgrading beyond that requires a purchase.

  • I downloaded Windows 10 and my Simple Pass is not working.

    I downloaded Windows 10 and now my Simple Pass is not working. I get a message that HP Connected Remote isn't responding and to be sure the service is running. I went under programs and repaired it but I still get the same message. Thanks in advance for your help. Please don't make it too complicated. 

    DUPLICATE POST
    Please see: https://discussions.apple.com/thread/5513386?tstart=0

  • TS1702 Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a

    Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.

    Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
    By the way, it might help if you indicated where you are located.
    To complain to Apple use http://www.apple.com/feedback/ipad.html

  • I installed mountain lion os on my mac book pro and now Word for Mac and my Fluenz Spanish programs do not work. How can I go back to my original OS? Thanks

    I installed Mountain Lion OS on my Mac Book Pro and now WORD for Mac and Fluenz Spanish program do not work. How do I reinstall original OS and scrap ML?
    Thanks

    My previous answer still stands: Restore from your backup taken before you upgaded to Mountain Lion. For example, a Time Machine backup, a Carbon Copy Cloner clone, or a commercial backup service. Not the disk that came with your computer (which is how I read "OS back up disk").
    If you reinstall the original OS from the disk that came with your computer, it will wipe out everything on your computer. (The installer won't install an older OS over a newer one, so you'll have to wipe the disk first.) Then you'll need to restore your data from your backup and reinstall applications like Word.

  • Simple short cuts not working in CC?

    Does anyone know why simple commands are not working in Illustrator CC (Copy, Paste, Undo) This is such an irritating problem as these short cuts are so frequently used. My cloud software is up-to-date. Having upgraded my software I would prefer not to have us CS5 to combat this problem.

    Hi Vaibhav,,
    Thankx for the prompt help!!
    I'm using Submit to SAP button only and I do have xACF installed on my local m/c. I'm able to use buttons and validations on the form but I'm not able to get the values in my WDynpro ABAP Appl. For Eg. : and internal table is bound to a table UI in adobe iForm , I'm able to add row (using formcalc/JScript eventing in Adobe) but I'm not able to get the changed internal table in my WDynpro ABAP application after submit button is pressed.
    Any help will be highly appreciated.
    Regds,
    Aryan

  • JSObject programming was not working when compiled in JSDK1.4.2_06

    JSObject programming was not working when compiled in JSDK1.4.2_06.
    But problem solved when i compiled with JSDK1.3.1_15 and tested with JVM 1.3.1_15.
    Still I could not run the class file generated in JSDK1.3.1_15 in JVM 1.4.2_06.
    What do you think happened across the SDK versions? Shouldn't the JSObject
    and other classes be part of the browser JVM.
    I want to know whether JSObject supports in JSDK1.4.2_06.
    It goes into the loop. It neither say error nor execute.

    Do not spam the site by posting to 4 forums

  • The installation program is not working so I can't install anything. What do I do?

    The installation program is not working, it won't start and I have to quit by forcem so I can't install anything. What do I do?

    Hi Caroline,
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/
    http://osxdaily.com/2011/09/19/change-password-mac-os-x-10-7-lion-without-knowin g-current-password/

  • I just upgraded to OS 10.8.4 last night and my Office 2011 programs will not work.

    I just upgraded my MacBook Pro (early 2011) to OS 10.8.4 last night and my Office for Mac 2011 programs will not work. To test in safe mode, I shut down my computer, restarted in safe mode to see if I could open any of my word or excel documents, which I was able to do.  I restarted, and tried opening an office document (word and excel), which did not work.  Does anyone have a solution to this?  I cannot revert back to OS 10.8.3 because I did not use Time Machine.  Any help will be appreciated.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • I purchased a program on Mac App store and the program does not act as it should,  also was required to pay up front whereas had I went to the web site, ibank 4 I would have had 30 days free trial an would have found that the program does not work.?

    I purchased a program on Mac App store and the program does not act as it should,  also was required to pay up front whereas had I went to the web site, ibank 4 I would have had 30 days free trial an would have found that the program does not work.?

    Free trials are not available through the Mac App Store.
    Apple is not here. Apple does not answer questions here. This is a user to user support forum. There are only folks here who use Apple products.

  • Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Drag the Word icon back to where it belongs.
    Applications > Microsoft Office 2011 > Put Word there.
    I'm assuming you have Office 2011. If you have 2008 there should be a similar location to put Word.

  • Now a few of programs does not work with mountian lion. what to do?

    now a few of programs does not work with mountian lion. what to do?

    espons printer/scanner, toast titanum 5.2.1, intuos 4 wacom, appleworks, already updated ms office & order the upgrade for reunion which I hope it will work. 
    thank you mr michael allbritton for your help!

  • Just bought my white iphone4 and after syncing with my computer the speaker doesn't work now. I tried reset and even restore and still does not work. Do I have to exchange?

    Just bought my white iphone4 and after syncing with my computer the speaker doesn't work now. I tried reset and even restore and still does not work. Do I have to exchange?

    Make sure the silent switch is not set to mute.  If you can see the red dot, it is on mute.
    It may think you have headphones plugged in, try plugging and unplugging a wired headset a few time.
    The next step would be to restore as new.
    If none of that works, a warranty exchange would be the resolution.    

Maybe you are looking for

  • How to use function module 'MC_POPUP_TO_MARK_VALUES' ?

    Hai, I  used   CALL FUNCTION  'MC_POPUP_TO_MARK_VALUES'   to delete duplicates in the F4 help  but    in my program ,When we press F4 help , radio buttons are appearing in the F4 help window. How to avoid that ? Or is there any other function module

  • Change layout controller for permissions in details command

    How can we change layout controller for permissions shown when you select any repository > details > settings > permissions. here only 5 users are shown in the table i wanted to change the layout to see if i can display more than 5 rows but i can not

  • JDBC or MySQL cache - update query

    The following query is ok but only works after a second refresh of the page. The query is manupulated by the URL: UPDATE activiteiten SET afgerond = 'checked' WHERE id=6 UPDATE activiteiten SET afgerond = 'unchecked' WHERE id=6 The query works (witho

  • AD binding lost after reboot 10.5.8

    Hi All, i'm running multiple machines on a cross platform network, a few machines i have noticed after a reboot will not be bound to AD. They have full connectivity to it and when i log in as the local admin acocunt i am able to rebind it but it will

  • Create new Siebel Application Object Manager

    Hi, guys! Tell, please, to me explicitly how to create the new Call Center Object Manger. Mainly me interests as to create for this AOM a new virtual directory on Sun ONE webserver. Please explain me this question very explicitly.