Again with Dana Nourie tutorial...

I have this error:
DiveLog.java:79: cannot resolve symbol
symbol : class Resources
location: class divelog.DiveLog
new Resources(),
^
it repeats for all the other classes Diver(), Dives...
I know that the problem was explained in the troubleshooter part
of the tutorial but it didn't solve the problem
The java files are in the directory c:\divelog
I go to divelog directory in MSDOS prompt that now shows
C:\Divelog>
If I compile divelog.java with the command:
javac -classpath c:\ Divelog.java
I receive the errors above.
I moved the files to c:\divelog\images and then tried
C:\Divelog\Images>javac -classpath c:\divelog Divelog.java
but it was useless.
Please help.

Thanks, it worked!
But now when I enter the command
java -classpath c:\ divelog.Divelod
these errors appear:
Exception in thread "main" java.lang.NoClassDefFoundError: divelog/Divelog (wron
g name: divelog/DiveLog)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
What can I do?

Similar Messages

  • Dana Nourie tutorial - compiler error

    For the ones that read the tutorial:
    when i try to compile DiveLog.java this error appears:
    divelog.java:77: cannot resolve symbol
    symbol : method addTab (java.lang.String,<null>,java.lang.String)
    location: class javax.swing.JTabbedPane
    tabbedPane.addTab("Resources",
    ^
    it repeats for all the other classes: Dives, Diver...
    If you experienced this problem please tell me what to do.

    For the ones that read the tutorial:
    when i try to compile DiveLog.java this error
    appears:
    divelog.java:77: cannot resolve symbol
    symbol : method addTab
    (java.lang.String,<null>,java.lang.String)
    location: class javax.swing.JTabbedPane
    tabbedPane.addTab("Resources",
    ^
    it repeats for all the other classes: Dives, Diver...
    If you experienced this problem please tell me what to
    do.tabbedPane.addTab("Resources", <- is there supposed to be a "," there

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • IPhone5s stuck in recovery mode after lots of times displaying blue screen of death, cannot restore it as iTunes displays error 14 on verification, same time phone crashes again with blue screen.

    hi, my iPhone5s is only 3 months old, it has been like a whole month now since it started crashing, displaying the blue screen of death, since yesterday it was in the loop of restart-crash, and now it is stuck in recovery mode after lots of times displaying blue screen.
    I cannot restore it as phone continues crashing again with blue screen, when iTunes displays error 14 on verification.
    help please, this phone is all the means of communication I have.

    It's a hardware problem. That's it. You shouldn't bother yourself with this situation. Just see an AASP.

  • IPod classic hard drive needle sometimes skips (Red X).  When it doesn't and seems to power on normally, I start to restore it in Itunes and then it starts to skip again with the Red X on the screen.

    iPod classic hard drive needle sometimes skips (Red X). When it doesn't and seems to power on normally, I start to restore it in Itunes and then it starts to skip again with the Red X on the screen.  One time I was able to run the disk utility in time and reformat the hard drive, but the red x ended up appearing again and the hard drive started skipping again.
    Is there anything I can do besides get a new hard drive?
    P.S. I have also tried the banging on palm/floor trick and it hasn't worked yet for me.

    There nothing we can suggest to save a bad iPod hardisk, except to try some 3rd Party software to try repair the Hardisk.
    The Super Fix for Most iPod Problems
    See this earlier post on partition repair using 3rd Party EaseUS Partitipon Master software.

  • Formatting the encrypted hard drive or intalling OS again with PXE boot can change TPM owner password file?

    Hello,
    1) I realized that when MBAM bitlocker encryption start both Recovery key and TPM owner password file are send to MBAM server. If we change the computername of the notebook, we can find out Recovery key from MBAM server with the KeyID as we can read it from
    computer screen, but we can not find out TPM owner password file with the existing new computername information from MBAM server, so we have to know old names of all computers but it is impossible. So we have to do decryption and clearing TPM than we
    can again encrypted it with its new name. is it right?
    2) We will going to deploy mbam encryption to our notebooks. But sometimes when a person quit the job his notebook can given to another person or new employee and based to our procedure when a notebook will given to another user it should installed
    OS again with PXE boot. I would to know will it be enough to installing with this method again with a diffrent computer name or should I firstly clear its TPM than install OS with PXE to keep TPM owner password file missing as item 1?
    I hope i can explain what i mean :)
    Regards,
    SibelM

    I would suggest you to first decrypt the laptop and then follow the process:-
    - Clear the TPM
    - Encrypt the type.
    - Check for the encryption behavior.
    Cause I have found on some model that if the OS drive is encrypted, PXE boot fail on that machine even though I also did a direct PXE on an encrypted machine with clearing the TPM.
    TPM ownership password is a hash file that gets generated with a set of algorithm. SO each time when you PXE boot, by clearing the TPM, the TPM hash password for the TPM will change. This has been done for security measures.  
    Gaurav Ranjan

  • I have an old project with AVCHD clips and I want to import the clips again with surround sound. How can I relink the project clips to the re-imported ones without doing the project from the begining?

    I have an old project with AVCHD clips and I want to import the clips again with surround sound. How can I relink the project clips to the re-imported ones without doing the project from the begining?
    I have a sony handicam and I imported the clips to iMovie and they lost quality and converted the audio to stereo. I want to import the project to final cut X and import the AVCHD in 1080p and surround sound and export the movie in bluray. Can I relink the clips without editing everything again?
    thanks!

    Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad - either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view.
    Photos that were synced from a computer are deleted by moving/removing/de-selecting them from where they were synced from and then re-syncing. If you want to remove them all then normally you could just sync an empty folder (in terms of photos) to the iPad, but as you don't want to sync at the moment you can't do that.
    You can reset the iPad back to factory settings and start from scratch with it : Settings > General > Reset > Erase All Content And Settings

  • Hi, I would like to synchronize the calendar's items of my iPad Mini with my MacBook Pro. At today I can only do the reverse operation (from MacBook Pro to iPad Mini). Can you help me maybe with a little tutorial or something? Many Thanks.

    Hi, I would like to synchronize the calendar's items of my iPad Mini with my MacBook Pro. At today I can only do the reverse operation (from MacBook Pro to iPad Mini). Can you help me maybe with a little tutorial or something? Many Thanks.

    Hello there Tonynos.
    The following Knowledge Base article should help with guiding you on how to synchronize information from your iOS device to your computer:
    iOS: How to transfer or sync content to your computer
    http://support.apple.com/kb/HT1296
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • Help (again) with Average Script

    Hi Everyone:
    I have problems again with a script in calculation manager:
    I need to calculate the average of a member in one account across the year. For example, for Jan the average of Count_1 is equal to the value of Count_2 in Jan; for Feb Count_1 is equal to the sum of values of Jan and Feb from Count_2 divided for 2; for Mar Count_1 is equal to the sum of values of Jan, Feb and Mar from Count_2 divided for 3 and so on.
    I'm using the follow script:
    *"Count_1"=@AVGRANGE(SKIPNONE,"Count_2",@CURRMBRRANGE("YearTotal",LEV,0, ,0));*
    But this script is averaging bad, because what it does for January is to take the January value and divide by two, to sum the values in February January and February and divide by 3, to sum the values in March, January, February and March and divided by 4 and so on.
    How i can solve this problem and make a script that works?
    Thanks for your help again.

    Please, someone can help me???

  • Please can someone help me out. I initial configure my bluetooth stereo ear piece with my iphone 4 and it was working but I mistakenly forget the bluetooth device and I cannot reconfigure it again with my iphone 4.

    please can someone help me out. I initial configure my bluetooth stereo ear piece with my iphone 4 and it was working but I mistakenly forget the bluetooth device and I cannot reconfigure it again with my iphone 4?

    place the device in pairing mode and re-pair.
    If you don't know how to do this, go to the manufacturer's website and download the user guide for your device.

  • Linksys E4200 - has to reboot to connect again with the internet

    I bought the E4200 a month ago (replaced D-link DIR-655) and since then I have to reboot it twice.
    I have a NAS connected to the router (and router to cable modem) and sometimes I have to FTP files from abroad. If I use the FTP too much time the E4200 just loose connectivity with the internet. Once home I have to reboot it in order to connect again with the internet. It never happen me before with the D-Link.
    Does anybody has a similar problem?
    Thanks!

    Actually mine is working great now, almost as if it had a break-in period.
    Mine has not flashed once in the past day (or more) and the last time I rebooted it was Wednesdsay evening (only to see if I could stop the flashing which was still happening
    at that time).
    I was also online on an interactive (gaming / gambling) site that is very quick to report what it considers "disconnects" if it sees any weakness in the connection to its servers and when using the E4200 it did NOT disconnect a single time all day yesterday.
    (My Belkin N1 Vision wireless router connection via my Rosewill RNX-N1 USB adapter had been "disconnecting" multiple several days in a row although I was able to surf the web without issues while it reported me as disconnected).
    Possible reasons everything is fine:
    1) I placed the router's four ridiculously tiny feet on four thick wooden drink coasters
    to give it more breathing room.
    The flashing stopped a day or two later... (Keep in mind the router is less than a week old, so the reason it stopped flashing could be unrelated).
    My wireless signal strength does seem to be sensitive to a 5.8 GHz cordless phone strangely even though it is a 2.4 GHz wireless adapter.
    Just turning the phone (which has an INternal anntenna and is about 3 1/2 feet away from my wireless adapter at the moment) 15 or 20 degrees immediately changed the wireless signal quality from 4 bars to 3 bars and vice versa!!! 
    2) As far as my needing to reboot it that one time (during the first full day I owned the E4200):
    I had been switching between two different model Rosewill wireless adapters a few times that afternoon (same chipset, same driver I believe and even show up as
    same device in 32 bit Windows 7 Device Manager) without restarting the router after each switch
    Since that one reboot, everything has been fine and my connection has been solid (pingtest.net tests over wireless produce an 'A' and speed has been for the most part relatively stable at 130 Mbps).
    I hope thay helps others here (especially Part 1 above).
    So overall I am extremely happy now.
    I now just need to see what the implications are by the current lack of official IPv6 support in the E4200 (will post separately about that).
    I noticed that my "IPv6 connectivity" on the wireless connection showed "no internet".
    I just ran some IPv6 tests online (on two separate sites) and they passed and, lo and behold, now it shows "internet access" (again) for IPv6 (and not just IPv4 as it did before)!

  • When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
    Regards.

  • Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it?

    Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it? When I already paid the the fee to rent it for 24 hours?

    Start the video and slide all the way to the beginning. If the video isn't in your Movie app, then the rental expired.

  • I installed Adobe FlashPlayer version 13.0 however I am getting an error message "Plug in error". Can anybody provide an answer. I already uninstall the version and install it again with the same results. Thanks.

    I installed Adobe FlashPlayer version 13.0 however I am getting an error message "Plug in error". Can anybody provide an answer. I already uninstall the version and install it again with the same results. Thanks.

    Adobe admits to a Flash problem here:
    http://forums.adobe.com/message/6285851#6285851
    YOu can apply the fix they show and tehn wait for them to fix the problem

Maybe you are looking for

  • Converting Button in Icon in taskbar

    There is a taskbar on the desktop. Generally at bottom where start resides. When we open any application one button is created in task bar with respect to application. If we minimise the application the button is still there. Can this button be remov

  • Configuring Cache Expiration in Toplink using Jdeveloper

    HI I am using Toplink10g, Jdeveloper10g. I have a batch job running over more than 25K records, It initially perform a findall query, then updates data and calls commit on Unit OF Work(which merges the entity and all entities in relation), Commit is

  • WHEN-WINDOW-CLOSED trigger

    When the trigger fires I would like to exit the form even when the usr is in ENTER-QUERY mode. I can't get it to work with only one mouse click. null

  • Broken screen (LED does not light up) help

    ok.. so i have a macbook 13.3 white.. im pretty good with computers/etc.. So i turn on my macbook and the screen is dark.. but surely the macbook is on.. you can see the screen under bright light shined on the screen. But the screen does not light up

  • QuickTime Player Window Unresponsive After Switching Apps or Hiding

    When I'm watching a movie in QuickTime Player, pause the movie, and switch to another app or hide the QuickTime Player window, the window becomes unresponsive when I try to switch back. None of the buttons in the window work, but I can still get the