ClassPath and still NoClassDefFound

To copy files from one directory to another, I've written a small program that uses the Apache Commons package. Since it is an external package, I include the classpath when compiling, and it works fine:
javac -classpath /Apache_classpath_dir/commons-io-1.3.1.jar GetFiles.javaWhen running the program, however, things don't go that well
java -classpath /Apache_classpath_dir/commons-io-1.3.1.jar GetFileswhich results in: java.lang.NoClassDefFoundError: GetFiles
Since that didn't work, I tried running the program without the classpath option:
java  GetFilesbut this failed with the message: java.lang.NoClassDefFoundError: /org/apache/io/FileUtils
To me it seems like I have to put my own program in the same directory as where the jar file from Apache is, which seems unlikely. Any suggestions?
Simon

java -classpath /Apache_classpath_dir/commons-io-1.3.1.jar GetFiles
which results in: java.lang.NoClassDefFoundError:
GetFiles
...You will probably have to include the current working directory to the classpath as well when running your class file.
Try this:java -classpath .;/Apache_classpath_dir/commons-io-1.3.1.jar GetFiles
                ^^
                ||
                |+--- semi-colon
                |
                +--- periodnote that the period represents your current directory (where GetFiles resides) and the semi-colon is a dividor between classpaths.
Good luck.

Similar Messages

  • Classpath and cannot find symbol

    I have been working on getting my first program (a simple one) to compile/run. I've tried to include javax.swing.JOptionPane however I am not sure where/why I can't get it to do so. I'm using linux and I'm sure the class must be in one of the jar files, but I can't seem to figure out how to point it in the right direction.
    Any pointers would be much appreciated.
    Thanks!!

    I for some reason am having a difficult time adding any sort of classpath. I am using Linux and have tried
    set CLASSPATH=/opt/jre1.5.0_06/lib
    export CLASSPATH
    but when I type echo $CLASSPATH it still returns nothing.
    Any thoughts??

  • My mail wont open. I even changed my cel phone and still won't open

    My mail app won't open. I even changed phone and still the same

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Hi there, suddenly I can't send email from my iphone. I use mac mail, have deleted it, restored it, done a sync to my mac book, read endless help paged and still get the message *unable to connect to smtp.me.mail . Some one please help!!!

    Does anyone know why my mac/me mail would suddenly stop sending mail? Happend a few weeks back since the software update and now won't send a thing. LIke I said I deleted the acount, set it up again, did a sync to my mac book, checked settings again and still it wont send mail. Received fine.
    I've looked through the threads but cant find one for me/mac mail on the iphone with same problem

    I spoke with Apple Support this morning and they believe anything MobileMe related is due to the conversion over to iCloud that's taking place.
    As for other email clients, check with your host to see if settings have changed on their end. I use inmotionhosting.com and over the weekend the updated their outgoing requirements so that a password authentication is now needed.
    Hope that helps get some on the right path to resolving their issues!

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • On my windows 8.1 pc (i5 processor with 8GB ram) I can't get the automatic update voor CS4 master collection. I removed my panda antivirus and still can't automatically update. somebody any suggestion?

    on my windows 8.1 pc (i5 processor with 8GB ram) I can't get the automatic update voor CS4 master collection. I removed my panda antivirus and still can't automatically update. somebody any suggestion?

    thanks for your reply.
    in Dutch it says that there are no updates available. I know that after
    installing cs4 there are updates but i can't load them automatically. I did
    a delete and reinstall, but still get the message.
    kind regards,
    2014-09-23 16:28 GMT+02:00 Atul_saini123 <[email protected]>:
        on my windows 8.1 pc (i5 processor with 8GB ram) I can't get the
    automatic update voor CS4 master collection. I removed my panda antivirus
    and still can't automatically update. somebody any suggestion?  created
    by Atul_saini123 <https://forums.adobe.com/people/Atul_saini123> in *Downloading,
    Installing, Setting Up* - View the full discussion
    <https://forums.adobe.com/message/6755843#6755843>

  • How do I get a song to play when it requests authorization, I authorize it, then iTunes acknowledges it was already authorized and still won't play?

    I have gone through several different troubleshoots and still the problem remains. Inside the "get info" tab on the song it says that it was authorized by my account. The song is part of an album where I purchased the entire album. Out of the 14 songs I purchased on the album, 2 bring up the following screen when clicked on to play:
    This computer is not authorized to play "You Reign Alone". Would you like to authorize it?
    To play this song you must authorize this computer to play songs using this account. You may authorize up to 5 computers for each account.
    So I input the Apple ID and password for the account and it gives me the following screen:
    This computer is already authorized.
    Including this one, you have authorized 3 computers out of your available 5.
    But nothing has changed. I still can't play the song. As I said above, I checked the Get Info tab on the song and it showed the account I had logged in for authorization. Is there something I can do to get iTunes to play the songs I purchased?
    (Side question: does anyone know how to email iTunes support. They say on the website that it can be done, but 45 minutes of frustrated screen hopping landed me nowhere but the same FAQs and Express lane call in support options. I just wanted a simple email option.)

    Hi there cfarrington18,
    You may need to remove and redownload the tracks that giving you troubles. Take a look at the article for more information.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    -Griff W.

  • TS4268 Ever since I uploaded i0s7 I haven't been able to receive I messages or face time. I have took it to the apple store and they couldn't figure it out. I have also followed the trouble shooting from I tunes and still can't get it working

    Ever since I uploaded i0s7 I haven't been able to receive I messages or face time. I have took it to the apple store and they couldn't figure it out. I have also followed the trouble shooting from I tunes and still can't get it working

    Hi,
    Strikes -
    Go into compositionReady and have 3 variables you will be able to set them like this
    strike1 = 0;
    strike2 = 0;
    strike3 = 0;
    So on the wrong item click have
    if(strike1 == 0) {
    PLAY STRIKE1 ANIMATION
    strike1 = 1;
    else if(strike2 == 0) {
    PLAY STRIKE2 ANIMATION
    strike2 = 1;
    else if(strike3 == 0) {
    PLAY STRIKE2 ANIMATION
    strike3 = 1;
    So this will make it so when the wrong item is clicked each strike will be played in order.
    Random Scrolling -
    You should look into the Math.Random function to make things random in edge.
    This is an example of the Random function. It will generate a random number up to 100.
    var random = Math.floor (Math.random () * 100);
    Lose Screen Score -
    So we can create another variable in compositionReady for the lose score.
    score = 0;
    Now when the user gains a point to add to the score you could do this code on the click
    score++;
    which would add 1 to the score, However you can add however much you like to the score doing "score + 2" and so on.
    To edit a text with the score at the end which I'm assuming you will want to do you will use .html
    so $("Text").html("You score is " + score);
    I hope this helps!

  • How do I remove my credit card from my account and still download free apps. Bc that card is no more good anymore the App Store will not let me download any apps . I no longer have a credit or debit card.so PLS help

    How do I remove my credit card from my account and still download free apps? because that card is no more good anymore the App Store will not let me download any apps . I no longer have a credit or debit card.so PLS help

    On your iPad tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should give you a payments link on your account's page. Or on your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should also be a payment link.
    Changing payment info : Change or remove your payment information from your iTunes Store account (Apple ID)
    If you don't get the 'none' option on the payment details screen : Why can’t I select None when I edit my Apple ID payment information?

  • Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hey lozza567,
    Thanks for the question. I understand that you are experiencing issues sending MMS messages. The following resource may provide a solution:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Issues with sending and receiving MMS
    You will need these to send and receive MMS:
    - An iPhone 3G or later.
    - iOS 3.1 or later.
    - A cellular data connection. MMS isn't available if you are using only Wi-Fi.
    - A domestic MMS plan from your cellular provider. You may need an international messaging plan to send MMS to an international contact. Contact your carrier for more information.
    - A roaming MMS when using a cellular provider's network different from your billing cellular provider's network. Learn more about roaming and contact your carrier for more information.
    To resolve issues with sending and receiving MMS, follow these steps first
    1. Go to Settings and turn airplane mode off.
    2. Go to Settings > Messages and turn MMS Messaging on.
    3. Go to Settings > Cellular and turn Cellular Data on.
    4. Go to Settings > Cellular and turn Data Roaming on if you are roaming on a cellular provider network different from your billing provider's network.
    5. Verify that you have a cellular data connection in the status bar at the top left of your iPhone.
    6. Go to Settings and turn Wi-Fi off. Open Safari and navigate to www.apple.com to verify that you have a data connection. Turn Wi-Fi back on to continue using Wi-Fi for other features. If your cellular data connection isn't available, follow these steps.
    7. Verify that you can send and receive SMS. If you are unable to send and receive SMS, see the "Issues with sending and receiving SMS" section, above.
    8. MMS may not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports.
    9. Restart your iPhone.
    10. Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    11. Reseat your SIM card.
    If you are still unable to send or receive MMS, follow these steps
    1. Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    2. Go to Settings > Messages and turn on group messaging if you are sending a group message.
    3. Make sure that you are using the area code with the contact's phone number. When sending messages internationally, you also need the contact's international code.
    4. Verify a "Pay as you go" MMS plan has enough available balance. Contact your carrier if unsure of your MMS plan or available balance.
    5. If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    6. If the issue occurs with a specific contact or contacts, delete and re-create the contact from the Contacts application. Create a new message to the newly created contact and try again.
    7. Back up and restore your iPhone as new.
    8. If your carrier has recently ported your phone number, the porting process may not be complete. Contact your carrier to confirm that the porting process is complete.
    9. Contact your carrier to verify that you are provisioned to send SMS and are in an area with cellular coverage.
    10. Contact your carrier to verify that there are no blocks or filters placed on your wireless account preventing you from sending SMS.
    11. Your carrier may require APN settings to be modified to use MMS. Learn more about when you should adjust APN settings.
    Thanks,
    Matt M.

  • Ive downloaded it and still wont let me do what i need too do

    I went on my facebook to play a game and it told me i had to download the 11.4 something so i clicked and downloaded it and went back after it went through and i went to play the game again and it yet still said that it wasnt downloaded, so i went back and did it again and still yet able to play the game or beable to get on youtube or any other web site too beable to look at vedios or anything cause it says i have to download this version and i have at leadt tried 5 times and it says it went through successful but yet still not able to play my games or anything and its really making me mad i cant do anything on here with out it and i keep downloading it and still not working what the hell do i do ... i have been at this since 9:30pm and it is now going on 12am in the morning ...

    What is your operating system & version?
    What is your web browser?
    You write that you "downloaded" it; did you also install it?
    [topic moved to Flash Player forum]

  • HT202213 I have suddenly been unable to connect my computer to my apple tv.  I have turned on my home sharing in itunes but it still does not show an icon in the sidebar.  I have reset my apple tv and redone all the passwords and email info and still does

    I have had my apple tv for 2 years and until I updated it I had no problems.  Now it keeps telling me to turn on my home sharing in iTunes which I have done innumerablre times. It won't recognise my macbook pro so I reset my apple tv to original settings and still it won't work.  Any ideas??????

    Me too I have the same problem as MicheleP57!!!! What can I do???

  • ITunes 11.2.2 for Windows x64 will not successfully install.  Removed prior iTunes, and still will not install. 10.7 installs just fine, but constantly asks to upgrade to 11.2.2.  Any Thoughts?

    iTunes 11.2.2 for Windows x64 will not successfully install.  Removed prior iTunes, and still will not install. 10.7 installs just fine, but constantly asks to upgrade to 11.2.2.  Any Thoughts?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component won't install normally.
    If needs be, the Microsoft Program Install and Uninstall Utility (MS Installer "Fixit") may be able to help force through the installation.
    tt2

  • New 13" Macbook Pro trying to connect to a Panasonic VIERA TC-L42U30 as second monitor. I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. The Macbook does not sense the second monitor (TV). Help?!

    I've been a Mac since 2008, so I know my way around the system pretty well. This issue, however, has me stumped. I had an iMac until now and only now am I experiencing some difficulty with my new MacBook Pro. The model I have is the newest 13" Macbook Pro model and I'm trying to connect a Panasonic VIERA TC-L42U30 42" HDTV as a second monitor via the Thunderbolt port.
    It worked the first two times and hasn't worked since, after 10-15 attempts with different configurations, turning things on n off, restarting the mac, unplugging the cables, adapters, TV, resetting the P RAM, etc... I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. No matter what I do, the Macbook does not sense the TV as a second monitor anymore.
    I took the MacBook Pro to the Apple Store, and their "genius" there had it working fine with a DVI connection to a regular monitor. The Panasonic TV I have has HDMI connections and one VGA connection which does not support HD, but no DVI option. I want an HD connection to mirror or extend my MacBook Pro screen. At the Apple Store, they didn't have a Thunderbolt/Mini DisplayPort to HDMI adapter, so he could not try that out for me.
    Anyone else have this configuration or another similar one with a Panasonic HDTV?
    Ideas? Suggestions? Anything?! Help!!
    P.S. I'm running Mountain Lion, if that wasn't already obvious. Everything is up to date in my App Store as well.
    Thanks!

    Hi There,
    I have had the exact same issue but with a projector.
    The issue lies with Mountian Lion 10.8.2.
    I tried many a combination with no luck to get HDMI working.
    Took my mac into the apple store and came to the conclusion it was the software, so I asked them to install 10.8 onto it (this is destructive so a backup is a must)
    Bought my macbook home and voila, now displaying through my projector.
    There is a small graphics update after 10.8.1 which seems to be the cause.
    Hope this helps.
    Thanks.

  • I have a Mac Desktop that is running OS 10.10.1, I am trying to upgrade my iPhoto to 9.6, but nothing happens after the perceived download.  I even retarted and still my iPhoto is in not available, why?

    My iMac = Desktop 20", 2GHz processor, 4 GB memory, running OS 10.10.1
    I am tring to upgrade my iPhoto and when I follow Apple's instructions on how to do so, the download seems to occur, I click on the upgrade package and nothing changes.
    I have restarted the computer after the download and still no change.
    What am I missing?

    leonie,
    Thanks for the reply, I finally got it solved.  I had to find the upgrade in the Utilities folder of the Finder...

Maybe you are looking for