I can't import enums for some reason

In a class I made, I can't seem to import an enum. Eclipse tells me "The import de.game.ground.Constants.Board cannot be resolved." Board is the name of my enum sitting in the class Constants.
What's so weird is that other classes have imported the enum and are using it just fine. But for some reason this one class won't. These classes are all in the same packet. What's up with that? It makes no sense to me that other classes can import it, but I get an error message trying to import it to this class.
After some googling, I tried adding import java.util.*, even though the other classes didn't need it, but that didn't seem to make a difference. I also made sure my "compiler compliance" is set to 1.6. I can't think of anything else to try.

codinatrix wrote:
There is no code. The problem is with an import. The code in its entirety would be:
...Of course there is! The entire contents of a .java file is source code.
Here's an example of an SSCCE:
test/Constants.java:
package test;
public class Constants {
    enum Board { A, B, C }
}And a small driver class to test it, test/Main.java:
package test;
import test.Constants.Board;
public class Main {
    public static void main(String[] args){
        Board b = Board.B;
        System.out.println(b);
}Both classes compile just fine and when I run the Main class, 'B' is printed to the console. No errors.
See what I mean with SSCCE: you can copy, paste and compile my code without altering any of it.

Similar Messages

  • I can't download Lightroom for some reason.  I keep getting this error:  Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ...  -------------------------------------- Summary ------------------------------------

    I can't download Lightroom for some reason.  I keep getting this error:
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR: DW006 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ----------- Payload: Adobe Photoshop Lightroom 5 5.4.0.0 Adobe Photoshop Lightroom 5.pkg_5.4 -----------
    ERROR: DW006: Apple Package failed to install successfully.
    ERROR: Third party payload installer Adobe Photoshop Lightroom 5.pkg failed with exit code: 1

    Link for Download & Install & Setup & Activation problems may help
    -Chat http://www.adobe.com/support/download-install/supportinfo/

  • Can't launch Iphoto for some reason

    Hello,
    I'm unable to launch IPhoto for some reason
    Here is the log from the console
    28/02/10 20:19:55 com.apple.launchd.peruser.501[154] ([0x0-0x1ec1ec].com.apple.iPhoto[4038]) Job appears to have crashed: Bus error
    Here is the start of the crash log
    Process: ReportCrash [4040]
    Path: /System/Library/CoreServices/ReportCrash
    Identifier: ReportCrash
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: launchd [154]
    Date/Time: 2010-02-28 20:19:55.380 +0100
    OS Version: Mac OS X 10.6.2 (10C540)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: 0x000000000000000a, 0x0000000106907000
    Crashed Thread: 1
    Application Specific Information:
    Analyzing process: iPhoto[4038], path: /Applications/iPhoto.app/Contents/MacOS/iPhoto; parent process: launchd[154], path: /sbin/launchd
    I see there some "Bad Access"
    I used disk utility to check permissions and it didn't resolve the issue
    Could someone help me ? It would be much appreciated
    Luc

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2. Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only...’
    Regards
    TD

  • I want to use Thunderbird on my IPad and I can't install it for some reason

    I can not figure out how to install Thunderbird on my IPad

    Also there is no version of Thunderbird or Firefox for the iOS.
    https://wiki.mozilla.org/Mobile/Platforms#Other_Platforms
    iPhone/iPad/iPod
    We have no plans to release the full Firefox browser for iOS. The iOS SDK agreement requires apps to use Apple's own JavaScript engine (or none at all, like Opera Mini which downloads pre-rendered pages from Opera's servers and cannot run JavaScript code in the client). Because of this, we have no supported way to distribute Firefox's rendering and JavaScript engine to iPhone users.
    However, you can download Firefox Home for iPhone, an iOS app that uses Firefox Sync to deliver Firefox bookmarks, browsing history, and tabs to your iPhone or iPod Touch.
    For Firefox but applicable to Thunderbird also.

  • I have windows 7 and have been using Firefox for the last several months and now I can' open it up for some reason.

    I've been using firefox as my principle browser for quite some time. I normally just click on it once and it opens to the home page with google search in the middle of the page. I downloaded some e-mail attachment about a job and that's when it seemed to act up. I ran a scan on my computer and it says there is no problems but I still can't open up Firefox home page by clicking on the fox/world icon.

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • I can't buy anything for some reason idk why

    unable to purchase stuff

    The Classic operating system which this forum is about is very old.    There are some browsers like Wacom Mozilla and Tenfourfox available for Macs compatible with Classic, but running a newer Mac OS X, but many sites no longer support these.    iCab is another old browser for secure transactions.    
    Without knowing which Mac model you have, it is very hard to tell what you need to purchase stuff.    Also not knowing the website in question, won't let those of us with older Macs to find out if there is an older browser compatible with it.
    Classic is available for Macs like the one on your avatar, and other Macs that do not have the Intel CPU.    By the same token none of them can run Mac OS X 10.4.11 or higher with Classic in virtualization, or Classic as a boot operating system with anything higher than Mac OS X 10.5.8.    To learn which does what, see this tip:
    https://discussions.apple.com/docs/DOC-1757

  • I am trying to install the new version of itunes but bonjour won't let me and I can't uninstall it for some reason

    I bought an ipod for my mother for mothers day and when I went to put music on it, I had to update my itunes to do so. when I did, bonjour cme up with an error message and wanted me to find the path "bonjour.msi". I've tried uninstalling bonjour with no success. I've tried uninstalling itunes then re-installing itunes with no success. Is there anything I can do to fix this, because it's really getting on my nerves that I can't install a simple update without this message comming up. I've searched the net for ways to fix this, and none have worked. so any help would be great. Thanks.

    when I went to put music on it, I had to update my itunes to do so. when I did, bonjour cme up with an error message and wanted me to find the path "bonjour.msi".
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • My apps sync to my iPod but it still says that it can not be synced for some reason. Like it has the line where the blue thing pops up to sync it but it wont work. By the way the app is called LostWinds2

    So like it's on my iPod but i can't open it it just says underneath the name it says " wait.. " plus I just got this like a month or 2 ago & it also freezes alot. What can i do about it freezing & the app?? It's the 4th generation & the app says that it's compatible with it.

    See this previous discussion:
    Downloading apps stuck on waiting...: Apple Support Communities

  • HT1695 My wife is working in London for 5 weeks and for some reason her ipad will not connect to btfon or btopenzones at her digs, but she has a ethernet socket, so can a wifi only ipad2 be connected to the internet via an ethernet cable

    My wife is working in London for 5 weeks & staying in digs, so we thought it would be a good idea to buy an ipad2 so we could skype each other, she could watch movies from the icloud, access skygo etc,and it wouldn't be as bulky as a laptop. All fine if you can get wifi, but for some reason her ipad cannot locate any btfon or btopenzone hotspots (or provider), IN LONDON??!! We can access them at home in a little village in Northern Ireland. Her digs have an ethernet socket, is it possible to connect her ipad to this socket via an adapter?

    No. She will need to come up with an alternative way to connect. A mobile hotspot perhaps.
    Finding some way to connect to these hotspots would be the ideal situation. I know that you realize that. We know nothing about what is happening, but if you can explain in some detail, maybe somebody here can help.

  • TS3899 Hi i have tried to sort this myself but to no avail i cannot for some reason forward  mail everything else is ok i have tried to reset the phone can you help please

    Hi I have tried to sort this myself but I am not having much luck.
    I can receive mail but for some reason ( Imay have caused) Icannot send or forward mail can you help me please.
    I am with BT Yahoo on windows 8.1 on my computer and mail is ok on my pc. Thank you in anticipation.

    Try to disable the camera notification: http://support.apple.com/kb/TS1500
    and make sure that Apple Mobile Device Service is active on your computer: http://support.apple.com/kb/TS1567

  • I recently had the genius bar change my imac hard drive because it crashed. For some reason Time Machine didn't back up some of my important files. Can I get my damaged hard drive back from the genius bar to see if I can access that info?

    I recently had the genius bar change my imac hard drive because it crashed. For some reason Time Machine didn't back up some of my important files. Can I get my damaged hard drive back from the genius bar to see if I can access that info?

    Unfortunately, that drive is long gone, probably back to the mfr. Drives are not returned when they are exchanged. You can go by and ask them, but the chances are slim to none.

  • For some reason, I can not delete bookmarks. I did one at a time, then tried 5 or 6 and it worked once then no more. I then tried 1 at a time and it worked once the no more. This is a brand new computer (Win7) and FF just loaded about 3 hours ago.

    # Question
    For some reason, I can not delete bookmarks. I did one at a time, then tried 5 or 6 and it worked once then no more. I then tried 1 at a time and it worked once the no more. Why is this happening? This is a brand new computer (Win7) and FF just loaded about 3 hours ago. Do not know how the bookmarks even got in there. Some were ok, but no order and some that were never bookmarks. Looks like FF tried to import some BM's from the Virtual XP installed, but did not get it any where near right. I need to completely delete all of them and install from a saved .html file.

    Well, I did not see the exact problem that I was having listed in the articles, BUT the problem is solved for now.
    I opened FF and the Bookmarks to Organize again. I deleted all of the folders and entries, ONE AT A TIME, AND IT WORKED. Evidently, for what ever reason, FF did not like "Batch" deletes of ANY amount greater than 1 and the HANG UP would occur.
    Deleting one at a time then importing the good .html from a good file, loaded the wanted Bookmarks. Yea

  • I just noticed that I can no longer select photos out of my finder that are located in my Aperture/Iphoto Library.  I used to be able to attach photos to my gmail out of the aperture library in the finder and for some reason, no longer can.

    I just noticed that I can no longer select photos out of my finder that are located in my Aperture/Iphoto Library.  I used to be able to attach photos to my gmail out of the aperture library in the finder and for some reason, no longer can.
    I can't access these images except to go into the applications. 
    Also, I'd like to import my iphoto library into aperture, and move aperture library to an external drive.  I tried the import first, but there wasn't enough space.  Then I tried copying over the aperture library onto the external drive but it failed bc it said file was in use. 
    As it is, I only have 50gb left on my imac, and the aperture library is 150gb.  Also, I have over 10k images in both libraries combined and there are tons of duplicates that need to be sorted, and hopefully not messed up because I've organized most of them.
    So in short, I need to know how to do the following:
    -select photos in finder in aperture/iphoto libraries
    -move aperture library to live on external drive
    -import iphoto library into aperture library
    -eliminate dups but maintain organization
    -moving forward i need a better workflow so that I import images from camera, and can organize right away into albums rather than creating projects by default and then creating albums so essentially the photos are in 2 different places, even tho they are referenced
    -live happily ever after
    Thanks in advance for any support you can offer!!

    If you're using apps like iPhoto or Aperture then they replace the Finder for managing your photos. The point is that you use the (many) options available via these apps for the things you want and need to do with the Photos.
    So, simply, you don't select the photos in the Finder. I'll append the supported ways to do this - which are faster and will yield the current version of your Photos - to the end of this post.
    -move aperture library to live on external drive
    Managed or Referenced Library? Managed -
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit Aperture
    2. Copy the Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching Aperture. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Referenced -  relocate your Masters first.
    These issues are covered in the Manual and on this forum hundreds of times.
    -import iphoto library into aperture library
    FIle -> Import -> iPhoto Library? Have you done this already? If so are you trying to move the Masters to Aperture from an  iPhoto Library? Or Consolidate them?
    -moving forward i need a better workflow so that I import images from camera, and can organize right away into albums rather than creating projects by default and then creating albums so essentially the photos are in 2 different places, even tho they are referenced
    You can't. Every photo is in a Project.  They’re the basic building blocks of the Library.
    You might want to spend a little time with the manual or the video tutorials. I'm not sure you've grasped the app  you've purchased.
    The following is written for iPhoto, but about 97% works for Aperture too.
    There are many, many ways to access your files in iPhoto/ APerture:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics. This is what you use to attach your shot to your GMail
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto/ Aperture.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto/ Aperture not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    or use this free utility Karelia iMedia Browser

  • I downloaded a new tv series on the computer, when a new episode needs to be downloaded I can't for some reason get it on my iPad when it's synced

    I downloaded a new tv series on the computer, when a new episode needs to be downloaded I can't for some reason get it on my iPad when it's synced

    Do you have enough storage space on your iPad?
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    How to Remove “Other” Data from iPhone, iPad and iPod Touch
    http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
    What is “Other” and What Can I Do About It?
    https://discussions.apple.com/docs/DOC-5142
    iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
    http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
    6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
    http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
    Also,
    How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
    http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
     Cheers, Tom

  • Safari can't open del.icio.us, for some reason. Help!

    This is probably something quite obvious, but I'm all out of ideas, so hopefully you can help! I also hope it hasn't been asked before, though I've searched previous topics...
    For some reason, Safari displays the 'Failed to open' page whenever I visit http://del.icio.us. "The server unexpectedly dropped the connection, which sometimes occurs when the server is busy," it says. "You might be able to open the page later."
    I've tried later, I've cleared my cache, I've tried it on another browser and even on a Windows machine. Might there be something with my network, perhaps my IP address or - and I'm getting into areas I don't know much about - something about my DNS settings that are preventing me from seeing this particularly website?
    I really hope someone can help - all my bookmarks are stored at del.icio.us!
    Many, many thanks, in advance,
    San

    Hello my friend!!!
    Well i don't know yet. I read in some other posts that safari has problems in some specific web links. Till now safari is running tranquil and "cozy" i can say but let's hope that it was a myspace problem, cause i own a music booking agency company and the internet is my most important tool for my work and promotion.
    If the safari is making that problems then i suggest to Apple that they should try the application's reliability first before giving them for public usage.
    Hope that the updates in the future will fix some "small" problems of the OS X Snow Leopard.
    With respect,
    Panos

Maybe you are looking for

  • How can I send digital Output at faster rate than 1ms period?

    Hi! I'm using a PCI-6229 to send digital outputs to a power source and I need to send n different numbers in binary code. I need this to be periodic so I've used a while structure and the diferent numbers as the different components of an array. In t

  • Confuse..where are the java files(bean) related to JSP in Portal??

    Hi.. Can anybody plz help me.. I already deploy the new JPDK Jan 2003. It's works fine in the Portal. Just, i don't understand, where they put the java files(bean) related? For example..the Lottery (lotto.jsp) it called this bean.. "<jsp:usebean id =

  • Which is better: DB vs. JSP?

    In a JSP, I have a list of categories in a form on the page. I can store the category data in the DB and populate it when the page is up. Or, I can list the category directly on the page. Both approachs seem fine to me from the maintenance aspect: ch

  • Think I fried my external FW HD

    Today I got the little spinning ball that wouldn't go away, so after the usual things to do I had to force restart by holding down the power button. I have 2 external LaCie firewire drives connected, nothing happened to one the other one won't mount.

  • Website search term code

    I have a website with a search field that uses some basic sql to search the web database. For marketing purposes and to understand our customer better, we want to learn what our customers are searching for on our website. Whats the best way do you th