How come I can't compile this file in this folder,but can in others

import java.util.*;
public class AlphabeticComparator
implements Comparator{
public int compare(Object o1, Object o2) {
String s1 = (String)o1;
String s2 = (String)o2;
return s1.toLowerCase().compareTo(
s2.toLowerCase());
this code can be compiled in any folders except
e:\java\
why??? the error is:
--------------------Configuration: j2sdk1.4.0 <Default>--------------------
E:\java\AlphabeticComparator.java:3: AlphabeticComparator should be declared abstract; it does not define compare(java.lang.Object,java.lang.Object) in AlphabeticComparator
public class AlphabeticComparator
^
E:\java\AlphabeticComparator.java:6: inconvertible types
found : Object
required: java.lang.String
String s1 = (String)o1;
^
E:\java\AlphabeticComparator.java:7: inconvertible types
found : Object
required: java.lang.String
String s2 = (String)o2;
^
3 errors
Process completed.

It looks like you have a class called "Object" in that same directory that the compiler is using when you use "Object", and then the compiler complains because it wasn't "java.lang.Object". Get rid of it -- you should have called it something else, anyway.

Similar Messages

  • How come I can't use the back gesture in certain apps with my magic mouse on certain applications in Lion OS?

    How come I can't use the back gesture with my magic mouse on certain applications in Lion? I figured out that in Safari i have to use a 1 finger swipe to go back a page instead of 2 fingers like i used to do in Snow Leopard. But apps like iTunes and iPhoto and i can't do that. Any ideas? is there a setting im missing to make this work? It works in Safari but not any other applications, so im assuming theres no setting for this. Just want to know if this is just a bug that will be fixed in the next update or if its something I can fix now. Any help would be appreciated because its kind of annoying. Other than this minor issue I love Lion. Full screen apps are unbelievable.

    Hi.
    I managed to compile open-vm-tools and the kernel module against 3.14.5 kernel.  Here is the tarball with the all the files.
    I still have an issue : With vmware-player 6.0.2, I can't acces my shared folder :
    root@P146S011b ~ # lsmod | grep hgfs
    vmhgfs 41622 0
    vmw_vmci 47960 2 vmw_vsock_vmci_transport,vmhgfs
    root@P146S011b ~ # vmware-hgfsclient
    R
    D
    C
    root@P146S011b ~ # mount -t vmhgfs .host:/R /mnt
    Could not add entry to mtab, continuing
    root@P146S011b ~ # tail -1 /etc/mtab
    .host:/R /mnt vmhgfs rw,relatime 0 0
    root@P146S011b ~ # cd /mnt
    cd:cd:6: not a directory: /mnt
    1 root@P146S011b ~ #
    Forgot to add an install file with a depmod -a inside. You will have to run it by yourself

  • How come pages won't open PDF files made by Pages?

    How come pages won't open PDF files made by Pages?
    I have files I made with Pages and exported as PDF but I can't open them with pages to edit?
    Also, where are the recent files created by pages located? Can't find those to open either..

    Hi Tom,
    I was delighted when I signed up for Pages. Clunky yes, but it worked. I've been a graphic designer on a Mac for 25 plus years and have logged too many horror stories of "upgrade" wars which cost me massive lost time, data and money forcibly extracted just so I could finish a project.
    When I first used Pages in April of 2012? or there about, I was able to open Word documents exported to .pdf format, emailed to me, which I then dragged into Pages. I could make the changes I needed to make, export as a .pdf, return it back to my client which they could then edit on whatever it was they were using. I'm not a neophyte with this. I've had Original Photoshop as a stand alone, Quark (which locked users out 6 months after I purchased it.) Quark again, Freehand, Pagemaker, Illustrator, Photoshop again, Creative Suite for several upgrades, Acrobat Pro. 2 years ago I lost 6 years of Quicken data and had to and "upgrade" start over. This last go around I  had to "upgrade" my Apple ID - yes I had 2 on purpose, lost my Pandora One and my ability to get into the Tulsa County Library website.
    At this point, I'm retired and feel like what I've paid for in the past should WORK today. I have a 100+ page cookbook in Quark which I was able to export as a .pdf, that I've lost the tags too, Easier to start over. I have artwork that is hundreds of megs in Photoshop. Not the least bit interested in anybody's "cloud".
    Thanks for letting me vent. I'm determined to keep my equipment and software up to date so I can enjoy the skills I've acquired, but I completely cringe at Apple's antics. I truly hate it when I have to respond to some new "tip" or product offer. BooHiss. Happy Turkey Day. Pages is a "turkey" program.
    Best regards, mbd

  • How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud

    How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud and will only be available on this computer"?
    You must surely be able to add and subtract songs on specific playlist?

    I fixed this issue (with help from tech support) and it involved several things.
    After adding a song to iTunes, right-click on the song in iTunes and select "Update iTunes Match."
    OR go to the iTunes menu-->Store-->Update iTunes Match.
    Maybe that's the reason, it just hadn't updated to the cloud.
    OR maybe it's not a high-enough bitrate file.   This happens to me because most of my tunes are home-recorded.
    Sometimes converting to .mp3 or Create AAC version might work. (You do this with a right-click in iTunes, and then you will want to remove the original file from iTunes.)
    There is an iTunes Preferences setting, under General Preferences called Import Settings.  Try setting it to AAC Encoder and iTunes Plus.   That (I think) causes imports to be slightly better quality.
    Good luck!  The tech support person at Apple is requesting that a knowlege-base article be written about this.

  • How come I can't put music on my ipod? I already have a fair amount of music on my ipod but I have enough space for more. I am using a new computer with itunes and it is telling me if I wasnt to put the new music on my ipd i need to erase my ipod HELP!

    How come I can't put music on my ipod? I already have a fair amount of music on my ipod but I have enough space for more. I am using a new computer with itunes and it is telling me if I wasnt to put the new music on my ipd i need to erase my ipod HELP!

    Because you can only synce with one iTunes library and you are switching libries by using the new computer. To nake this yyour syncing computer:
    - Move all the media(apps, music, synced video and photos etc) to the new computer.
    - Connect the iPofd yo the computer and bake a backup fo the iPod by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup.
    Note that the backup that iTunes makes doe not include media.
    To move mdia to the new computer see:
    iTunes: How to move your music to a new computer
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer

  • HT2404 I just clicked on Software Updates; BUT nothing shows what's happening? How come I can't see the updates & time it will take?

    Help!  I just got this Lion, and SO many changes & not necessarily for the better !
    I went to the Apple icon, but  "Software Updates" did not show ... though I had deferred installing some updates ...
    Finally it showed up, I clicked on it, saw the updates to do - BUT when I clicked on install - the "box" that usually shows the updates & how long to install - just disappeared! I can't get to it to see what's next. (I have to leave soon & will turn off the mac)
    What's happening? How come I can't see the updates as they are installed, & how much time it will take?
    How do I know IF they have been installed?  Is this the "new Normal" for Lion? Or is there a glitch in my mac somewhere?
    How about updates you download from Apple (not bought) - they go to Downloads on the Sideboard, but are they installed automatically, & put where they belong too? Is there no more restart, etc.?
    - I just went to Systems Preference, to see the "Installed Software" - shows they were ... but don't I have to restart anymore? Are all updates now automatically placed where they belong?
    Thanks to any who can help
    PS One other question - just checked my "profile" & it has my email addy that's 4 years old... how do I change That?

    software update not working
    https://discussions.apple.com/thread/3967755?start=0&tstart=0

  • HT4972 how come i can not use iOS 6 on my ipad 3 to get the youtube or pinerest app? it keeps giving me a message to use iOS5

    How come i can not use iOS 6 on my ipad 3 to get the youtube and pinerest app? i keep getting a message to update to iOS5 if i must use iOS5 how do i update to that one because it just took me 4 hours to figure out how to update to iOS6

    We have read that any apps that use the google map app (removed by ios6) will not work.  We have lost a great camping app for this reason, and have heard that some weather apps are not working either.  The company line we've been given is it's up to the app developer to rewrite their apps.  ***** doesn't it.

  • How come iMac can see Pmy iPhone with iPhoto but cannot syncronize with iTunes? Maybe need an update version? As a matter of fact iTunes version on iMac is a 10.4 and in iPhone I How come iget a 10.6: the iMac is brand new sunce I used a pc before. Thanks

    How come iMac can see my iPhone with iPhoto but cannot syncronize it with iTunes? Maybe need an update version? As a matter of fact iTunes version on iMac is a 10.4 and in iPhone I get a 10.6: the iMac is brand new since I just come from a pc. Thanks

    Hi ...
    see Pmy iPhone with iPhoto but cannot recognnized with iTunes?
    Try this support article > iOS: Device not recognized in iTunes for Mac OS X

  • How come i can't remotely lock my stolen macbook air since last week?

    how come i can't remotely lock my stolen macbook air since last week?
    Is it possible for the thief to go arround this system?
    When it was stolen around the afternoon, i could only trie to locate it in the evening.
    They must have done already something to avoid the locate my iphone app, beceause it is
    already since 13th of june that it is trying to lock my mac, but it still didn't go online...
    Is there another way? can someone help me out?
    I would appreciate it a lot!!
    greetings,
    Fred.

    Hello:
    If you did not set it up like this beforehand, you cannot:
    http://support.apple.com/kb/TS4006
    Make a police report.
    Barry

  • I have purchased a new iPhone on the online store, but how come Apple can send me an repacking old device (with scar on both the border and the cable port)!!!!  And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons??

    I have purchased a new iPhone on the online store, but how come Apple can send me a repacking old device (with scar on both the border and the cable port)!!!!
    And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons???? This action make me very angry. I have pay for my goods, but they are giving me some repacking rubbish, and trying to treat me as a beggar????
    I have make the request to give me back a new device in good conditions, I will wait and look for what they will delivery.

    Do you feel better now that you have vented?
    This is a user to user forum... if you want/need assistance, contact Apple directly.

  • How come I can't access itunes when I could  yesterday?

    How come I can't access itunes when i could yesterday?  When I hooked up my iphone to sync it asked me to reset phone to factory settings!  I don't think so!  Then when I tried to download update it won't do it.

    On my iPod touch I don't have a spotlight search icon or option available. Also under my settings and general there is no "restriction" options or settings. I reset the iPod several times and that doesn't work.
    The thing is the music that is on my iPod is not all in my iTunes library so I can never sync automatically. Also if i restore to factory settings then it will erase what i have on my iPod and not in my library. I always manually add songs. When I plug in my iPod and i go under Summary...the only other tabs are music, tv shows, photos and info. There is no Apps tab. When i plug in my iPhone i do get the apps tab.
    I got my iTouch awhile ago....is it possible that this is why i can't get apps?? I got the iTouch back in 2008.
    Ughhh this is so frustrating. I just want to get this one app on my iPod Touch. Please help!!

  • How come you can not use more than 126GB of a 1.5TB diskdrive with LabVIEW Real Time?

    How come you can not use more than 126GB of a 1.5TB diskdrive with LabVIEW Real Time?
    This is only 8.3% of the available disk drive space!
    http://digital.ni.com/public.nsf/allkb/E7E2F5657B6​026358625750B007201A6?OpenDocument
    National Instrument's solution is either reformat you drive to less than 126GB or replace the drive with one less than that size.
    Please NI, tell me you are going to fix your LabVIEW Real Time soon, and that we won't have to wait for LabVIEW RT 9.2.1 in 2011 for this one to be fixed.
    http://upload.wikimedia.org/wikipedia/commons/9/90​/Hard_drive_capacity_over_time.svg
    Drives as large as 126GB or more have been around since about mid 2002.  That's about 7 Years now and LabVIEW Real Time STILL can't use drives larger that 126GB!  Please NI.  Do something.
    We deserve fixes to the old versions of LabVIEW RT.  How about updates to LabVIEW RT.  Such as 7.0.2, 7.1.2, 7.6.2, 8.0.2, 8.2.2, 8.6.2.
    We don't need new features or versions of LabVIEW RT such as 9.0 until we have some of bugs fixed in the existing versions. 
    Kevin. 
    Message Edited by kmcdevitt on 05-29-2009 03:39 PM
    Solved!
    Go to Solution.

    Coq rouge wrote:
    NI is not making the Real Time OS in house. I do not remember which firm that is making it. Anyway you are allowed to use a hard drive that has been partitioned. And 126GB is some space is it not? I remember Bill Gates declared one time that 640Kb ram should be more than enough for any PC application also in the future 
    Coq Rouge (formerly t06afre),
    The RealTime OS is an NI Product that is purchased from NI.
    NI may or may not outsource design, developement, or manufacturing of the products that it sells under its own Company name.
    For this reason I would be concerned if I were a PXI Embedded Controller designer/developer in the United States. 
    Yes, 126GB is some space.  I see that there are now 2TB drives available.  126GB would be 6.3% of a new 2TB drive.  Should we all be happy with being able to use 6.3% of the available drive space.  Moore's Law seams to be alive and well.  Drives larger than 126GB have been readily available for 5 or 6 Years.  This should not be a surprise to NI.  Why don't they do something about it.
    Thanks for the trivia on Bill Gates.  I must have missed that one since I don't try to keep up with Microsoft.  I believe that he is a wonderful person and he and his family are doing wonders for the world in their "retirement".   The world needs more like him.
    What I do remember is Steve Jobs telling us that we would never need more that 128MB and that we would never to need to do anymore software development because everything was already in the "ToolBox".
    McKevin.  

  • How come I can't use Bill me later to purchase a gift card

    how come I can't use Bill me later to purchase a gift card

    From what I've read, you don't get a credit card number on a BML account, just an account number. Because of this, there is really no way to use the account as a funding source for the iTunes Store. You may be able to use Bill Me Later with the Apple Store to order gift cards, but I'm not certain. You can call the Apple Store and ask.
    Regards.

  • How come you can't put a Tab in a Cluster?

    Hello,
    How come you can't put a Tab Control in a Cluster?
    It looks like users have been asking this question
    for years, and all the way back to LV versions 6.1.
    Someday, please, pretty please, NI.
    Please. Maybe by version 9.5 of LV?
    Kevin.

    Ben wrote:  This idea just weirds me out!
    Kevin:  Sorry Ben, but think how I must feel.
    Ben wrote:  I understand the cosmetic and GUI interaction part of it OK.  Its the "how would it code?" part that send my head spinning.
    Kevin:  We don't need to worry about that.  We'll let the NI LABview guiruis worry about that.  They know how to program for TABs and they know how to program for Clustors.  Now they just need to put them together.
    Ben wrote:  Would the tab control be available via bundle by name and unbundle?
    Kevin:  Yes.  It would simply return the value indicating which page is selected.
    Ben wrote:  If the cluster was an indicator and the tab value was "page1" would the user be able to select page2?
    Kevin:  Of course, the block diagram would simply pass the enum indicating which page to display.
    Ben wrote:  On the block diagram, would there be a relationship between the tab and the elements on each tab?
    Kevin:  None.  Or no more so than the relationship of any element on a panel or front panel.
    Ben wrote:  On the FP the tab control has a "pages" property and from those we can get an array of refs to the controls on the pages. Would we still be able to that within a cluster.
    Kevin:  Yes.  No Differrence.
    Ben wrote:  Aside from the above Q's I would guess that the tab in a cluster would only allow greater abuse of clusters i.e. "Super Clusters".
    Kevin:  It is not my intent to abuse any Super Cluster in any way shape or from.  In contrast, would help to spread out some clutter from ones front pannels and move the clutter into tabs within a cluster.  The beauty of it would be that it would come automatic, and handled by labview.
    Ben wrote:  There was also until recently, limitations on the size of the type descriptors. Very complex FP's and large clusters would be hit by the problem that the type descriptor need more than the 16 bit allocated.
    Kevin:  I would never suggest even coming close to putting more that 65535 items in a cluser in any fashion.
    Ben wrote:  I do not pretend to know why NI did or did not allow this. In the end I can only share my guess and hope somone who does know will post.
    Kevin:  Yes, somebody from NI might know something about why we can't put a Tab in a Cluster.
    Ben wrote:
    Related story:
    I had often been mystified by "Why I could not create a waveform datatype block diagram constant?". While at NI Week and talking to Jeff Kodosky I asked him (thinking that I would get a good under-the-hood explanation of the data type used blah, blah, blah... He said "I'm not sure. It ws probably an over-sight."   I noticed that in LV 8, you can now create a waveform data type constant.
    Ben
    Kevin:
    Maybe it was an oversite.  Maybe we can have Tabs in Clusters in 64bit Lab View 9.
    Kevin's Disclaimer:  The variation in case usage, while referring to LabVIEW, should not be construed as disrespect, nor should it be interpreted as an indication of Kevin's LabVIEW programming skill or experience or knowlege.

  • How come I can't download forms into Smartview 11.1.1.3?

    Hi,
    2 weeks ago I was able to download forms from Planning 11.1.1.3. Today I can't. The forms option is faded. Essbase client was so much simpler than Smartview!!
    How come I can't download forms into Smartview 11.1.1.3?

    You inquiry is unrelated to the topic of this forum.
    Smartview is a Hyperion product not a database product.

  • How come we can no longer see how many responses were made to a question?

    I see that you have changed around the DE a little again. How come we can no longer see how many responses have been made to each question? I found that to be useful when looking through the posts.
    Brian

    Hi Brian,
    Thank you for the feedback that you found the list of the number of responses to a question to be useful. This feature was unintentially not included as part of the site update on January 19th, and I am working with the site developers to see if we can get it reinstated on a future update.
    If you have additional feedback, please feel free to post them here or to e-mail them to me.
    Best Regards,
    Wilbur Shen
    Web Support and Operations
    National Instruments
    [email protected]

Maybe you are looking for