Can't run anything with an import statement

That seems to be what's going on, anyway. HelloWorld works for me, but ECJ (http://cs.gmu.edu/~eclab/projects/ecj/) does not. NoClassDefFoundError when I try to run the thing, even though . is on my classpath and I'm in that directory (and yes, it's compiled), but (this is weird), with .. on my classpath, running ec.Evolve works for me from ec\, and being in ecj\ and running ec.Evolve works for me, but not being in ec\ and just running Evolve. C:\Documents and Settings\Nikola Tesla\Desktop\ecj\ecj\ec>java -classpath . Evolve throws a NoClassDefFoundError (I have . on my CLASSPATH, but I thought that I'd double-check). There are no .jars anywhere. I've talked to someone else who can run ECJ just fine, and he just has . on his CLASSPATH. Everything that I've seen makes me think that this is a CLASSPATH proble]m, but mine looks fine to me (unless . isn't the current directory). Help? XP, JDK1.6.0_01. I've found several people saying that they got a NoClassDefFoundError on HelloWorld, but only one person saying that they could run that but not anything that imported anything, there was no solution, and that thread is in an archived forum.
e: Oh, and I forgot: javac *.java works for me, but javac *\*.java does not. It looks like my classpath isn't recursive, but I was under the impression that, for directories and not .jars, they are.
Message was edited by:
Schizoguy

Apologies for the messed up formatting. Sun took away some of the goodies after some dickole exploited them, and I'm too lazy to clean up my stock answers at the moment.
Javapedia: Classpath
How Classes are Found
Setting the class path (Windows)
Setting the class path (Solaris/Linux)
Understanding the Java ClassLoader
java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

Similar Messages

  • Since installing IOS7.0.2 my iPad keeps rebooting itself every few minutes.  I can't do anything with it and cannot download the new IOS7.2 because it doesn't run long enough to accomplish the download.  What can I do?

    Since installing IOS7.0.2 my iPad keeps rebooting itself every few minutes.  I can't do anything with it and cannot download the new IOS7.2 because it doesn't run long enough to accomplish the download.  What can I do?

    Try a Restart. 
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider. Press and hold the Sleep/Wake button until the Apple logo appears.
     Resetting your settings
    You can also try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. You won't lose any data, but it takes time to enter all of the settings again.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears. Apple recommends this only if you are unable to restart it.
    Or if this doesn't work and nobody else on the blog doesn't have a better idea you can contact Apple. 
    Here is a link to their contacts with most of the information below. 
    http://www.apple.com/contact/

  • Firefox will no longer open completely. My home page appears, but I can't do anything with it. See "details" box for full description.

    Firefox will no longer open completely. My home page appears, but I can't do anything with it--can't use "Help," can't search the Web, can't even use "Sign Out." I have to close it entirely to get out of it. A box comes up and says "Yahoo Mail is loading especially slowly" and tells me my computer speed is slow. But this is the same computer I've always used for Firefox, and Yahoo comes up quickly and completey through Internet Explorer (which is how I'm sending this message). Can anyone help me load Firefox so that it works? I even downloaded the latest version of Firefox, but it makes no difference. Thanks.

    Do a clean reinstall and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\) before reinstalling a fresh copy of Firefox.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 15.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    You can also try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that works.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Can't do anything with Windows 7 Account

    Hello, I have an old test account called Administrator, it is an administrator account and I can't seem to do anything with it, when I go to Control Panel and Manage Users there is no Delete Account button. I tried going to Start and typed netplwiz and
    tried to remove the account their and it wont let me have access to, I even tried switching it from Administrator to Standard and it still won't let me have access to do that. I even tried it in safe mode. I was logged into the original administrator account
    I always used, not in the one I was trying to delete.

    Hi,
    You mentioned that you can't do anything with this old account, For this account, can you log into it? we can do a test to check whether this account has "real" admin privilege, try to open device manager, see if you are prompted a warnning message. or just
    run lusrmgr.msc and view the user account list in your system.
    Another situation is that the old account profile is corrupted, if you want to fix it, try this link:
    http://windows.microsoft.com/en-in/windows/fix-corrupted-user-profile#1TC=windows-7
    And from your description, seems you want to delete it with another admin account but failed, could you please tell us the error message prompted when you delete? or check the Event viewer.
    Yolanda Zhu
    TechNet Community Support

  • After Installing Flash Player 9, i can't open anything with Flash

    After ungrading to Adobe Flash Player 9, i can't open
    anything with flash on any of my browsers (Safari, IE)
    and it just keeps on running in circles...like it tells me to
    go to the download page and then i would download it and install
    the software, but after installation, it directs me to the
    macromedia pages and it says:
    "The page “Macromedia - Flash Player” has content
    of MIME type “application/x-shockwave-flash”, but you
    don’t have a plug-in installed for this MIME type. A plug-in
    should be available on this page:
    https://www.macromedia.com/go/getflashplayer
    Do you want to open the page?"
    and when i open the page. it's just the page where I
    downloaded the Flash Player...
    it just keeps going back in circles after i've done it like 8
    times already!
    URGGHHH!!!! help!
    now i can't open anything with flash on the page!!!!
    and just any webpage with flash movies...it would just say
    that "either your javascript is turned off or you do not have flash
    player installed" something like that!!!! SOOO ANNOYING!
    and there isn't any help on the forum at all!!!!
    anyways. i'm with Mac OS X 10.3.9 on a PowerPC Powerbook
    G4

    Are you using any MS Office third party Add-ins? Test:  Remove third party Add-ins other than PDFMaker.  Test to see if the MS Office apps run afterward.
    Did you attempt to repair MS Office?  Test:  Go to Add/Remove Control Panel run Repair.
    Finally, have you tried testing to see if it's PDFMaker?  Test: Use the Add/Remove Control Panel to modify the Acrobat installation to remove PDFMaker.  See if MS Office applications launch and behave correctly?

  • After installing acrobat my Microsoft office package does not work properly, word will not open and in my email i can't select anything with the mouse

    After installing acrobat my Microsoft office package does not work properly, word will not open and when I want to write an email in my outlook email i can't select anything with the mouse. so copy past en delete are not an option.@

    Are you using any MS Office third party Add-ins? Test:  Remove third party Add-ins other than PDFMaker.  Test to see if the MS Office apps run afterward.
    Did you attempt to repair MS Office?  Test:  Go to Add/Remove Control Panel run Repair.
    Finally, have you tried testing to see if it's PDFMaker?  Test: Use the Add/Remove Control Panel to modify the Acrobat installation to remove PDFMaker.  See if MS Office applications launch and behave correctly?

  • HT5622 my icloud id does not match my apple id and i can't do anything with my phobne

    i am trying to give this phone to my son to use as an ipod and i want to erase it first but my iclound id is not the same as my apple id and i can't do anything with the phone. and no i do not know the password to my icloud id since i never set up the account

    Hey quaisser,
    Some of the following steps don't fully apply to your situation, but I'd run through the ones I haven't crossed off to see if that resolves the issue:
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more about restoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
    If the above steps do not resolve the issue, contact Apple.
    via: iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • HT1212 So my phone is messed up and you can't do anything with the screen...in order for me to sink it to back up i have to enter the passcode because it had a lock on it...and i can't due to it being messed up...is there any way around this...

    So my phone is messed up and you can't do anything with the screen...in order for me to sink it to back up i have to enter the passcode because it had a lock on it...and i can't due to it being messed up...is there any way around this...

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • I didn't realize that I had a trial version and I can't do anything with my photos and I'm on the 2014 cc version. Now what? If I have to purchase the 2015 version, will I be able to work on my photos and will it be the software and not the download versi

    I didn't know I was using a trial version of PDF files and now I can't do anything with them and I keep getting a notice for the 2015 version as I have the 2014 cc. If I have to purchase the 2015, will it be the download version or will I get the software version?

    Hi scarabs55,
    Are you working with Acrobat or Photosohp? (You mention both PDF files and photos, so it's not clear.)
    Let us know what software you're thinking about upgrading and we can point you in the right direction.
    Best,
    Sara

  • Import collides with another import statement

    Suppose I have 2 packages, train and plane. Each package has a class called Engine. In addition, train.Engine and plane.Engine have nothing in common. In a 3rd class, I import both of these:
    import train.Engine;
    import plane.Engine;Doing so results in the following error:
    The import plane.Engine collides with another import statement
    How do I do this?

    One of these imports have to be commented. The imports are reside in the source code, not just in jar or other class path entries. If the imports are in different files then you'd browse the sources and find import with the same name but in different name spaces. This is happened if you you don't wanna add a big jar to the class path instead you created a class file with the same name because of huge references. And you just wanted route it out of the jar and possibly remove dependency.

  • I have € 0.09 in my account and I can not buy anything with this value. I want to undo (give up) this value. What do I do?

    I have € 0.09 in my account and I can not buy anything with this value. I want to undo (give up) this value. What do I do?

    Click here and request assistance.
    (68968)

  • HT1212 I found that suddenly the app store wasn't working. So I went to settings and tried to reset ......something, can't remember what. Now I've got an apple icon against a black background and my phone is locked. I can't do anything with it. What do I

    I found that suddenly the app store wasn't working on my iphone 4s. So I went to settings and tried to reset ......something, can't remember what. Now I've got an apple icon against a black background and my phone is locked. I can't do anything with it. What do I do?

    What "voice thing" are you talking about?   Can you retrace what you did and explain it a little more clearly so we can help you.

  • I have just upgraded to OS X Mavericks. It wanted me to upgrade my 20000 photos before the New iphoto could use them. I did. 43.6GB of photos became 1.8GB of very small photos of arounf 178KB instead of 2.5MB. Can't do anything with them. Help?

    I have just upgraded to OS X Mavericks. It wanted me to upgrade my 20000 photos before the New iphoto could use them. I did. 43.6GB of photos became 1.8GB of very small photos of arounf 178KB instead of 2.5MB. Can't do anything with them. Help?

    The obvious and simple solution is to restore from the back up you made before upgrading.
    Other than that you'll need to give us a lot more detail. Mavericks doesn't ask you to upgrade your Photos, upgrading to a later iPhoto asks you about upgrading the Library. Where is the library? What version were you upgrading from? Anything else you can tell us that might help understand the problem you're having.

  • I try to pull up photos in iPhoto and it shows a big "!"  I can still see the photo, just can't do anything with it or view it larger.  Help!  Thank you!

    I try to pull up photos in iPhoto and it shows a big "!"  I can still see the photo, I just can't do anything with it or view it larger.  What happened?  Help!  Thank you!

    This is what I found, Idon't know if it will help, but I'll send them anyway.
    https://discussions.apple.com/thread/3873468
    http://support.apple.com/kb/PH2449
    http://support.apple.com/kb/TS1140
    http://support.apple.com/kb/HT1044

  • HT1339 I did a reset on my iPod, the a restore now I can't do anything with it, turns off and on all the time, is there anything I can do cheers

    i did a reset on my iPod, then a restore now I can't do anything with it, turns off and on all the time, is there anything I can do?? cheers

    Try the remaining items of:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

Maybe you are looking for

  • The bookmarks disappeared in safari on iPad and I am unable to create new ones or bring back the bookmark bar

    During the day yesterday, the bookmarks I had in Safari disappeared, as well as the bookmark bar.  In preferences I still have the "show bookmark bar always" option marked.  When I hit the bookmark symbol, to create the bookmarks the display has chan

  • Change value in service entry sheet

    Hello, Can we change the values In Service entry sheet.if yes how and no why? Regards sap man

  • Can't get rid of old podcasts on ipod touch

    I use my ipod touch mainly for the many podcasts I subscribe to. On the itunes settings for podcasts it's set for keep only most recent episode. I've been creating smart playlists (perhaps irrelevant) to listen to the podcasts because before when jus

  • Forcing failure in ssis

    Hi.  We run 2012 and i'm faced with this... I'd like to fail a package in a final component based on certain conditions.   Is the only way to do this via a script task that perhaps throws an exception no matter what or just returns with Dts.TaskResul

  • APs continually registering with secondary controller

    Hi All, For some reason all of the APs on a particular controller deregister from it and register with their secondary controller. Both controllers are running version 4.1.171.0 and I cannot see any issues on the LAN that would disrupt comms between