Why won't it package?????

I'm using the new Tomcat 5.0 and apparently it won't read a class unless it's part of a package.
I'm trying to compile a very simple Bean.
package mypackage;
public class StringBean {
private String message = "No message specified";
public String getMessage() {
return (message);
public void setMessage(String message) {
this.message = message;
With the "package mypackage;" I expect it to put it into mypackage directory but all it does it create the .class file in the same directory I'm already in. I'm using Java 1.4.1.
Why won't it package???

you can compile java files anywhere, you have to put the class in the correct place to use them during runtime. typically you have a src directory with all of your java files in the correct directory stucture for you rpackages and then a classes directory with the correct directory stucture for you packages. You use a build tool like ant to do the compile and place the class files in the classes directory.

Similar Messages

  • HT3702 I only download things that are free from App Store, but sometimes it doesn't let me download something saying there is a problem with a previous purchase?  So why won't it let me??

    Why won't the App Store let me download things that are free, just because I don't have money on my card sometimes, it's free so I just don't get it??

    You can try to make a new account on iTunes Store if you didnt have yet.
    I had the same problem with iTunes Store, the only thing you can do is to put some money on that credit card you are using with you account. iTunes Store already keeping some money for the last purchase you made you can see all info on the Account option and then Purchase history ...

  • I am a new iPhone 4s owner. I have a tone in iTunes that I downloaded from the web as a m4r file. Why won't it sync to my iPhone so I can set it as a ringtone.

    I am a new iPhone 4s owner. I have a tone in iTunes that I downloaded from the web as a m4r file. Why won't it sync to my iPhone so I can set it as a ringtone?
    Lois

    Yes, the tone is available and checked in iTunes under the Tones library.
    Yes, it is also listed under the Tones tab for my iPhone, but it is grayed out.
    Yes, tones are selected under "sources" in General Preferences, along with everything else.
    SyncTones was NOT selected under the Tones tab for my iPhone. I did so and it synced.
    Thanks for your help!
    Lois

  • Why won't Apple give out the unlock code for an iPhone 3Gs when the contract was honored and I am still an AT

    Why won't Apple give out the unlock code for an iPhone 3Gs when the 2  year contract was honored and I continued to be an AT&T customer with an iPhone 4. I wanted my old 3gs unlocked so my daughter could use it overseas when she is deployed. AT&T service over there *****, the international plan was not worth it. The individual SIM cards per country are much more reliable and cheaper. Teslestial in Iraq and Afghanistan, Telecom in Croatia,Vodafphone in Germany and Italy.  Why Apple will not unlock these phones for our military to utilize is incomprehensible to me.  These young men and women are fighting for these Apple people to go to work every day, safe, to live lives they have become accustom to yet releasing a phone to use on another network they can't do at least for the military.... WHY APPLE??  WHY?   A good excuse not some of the many lame excuses I have received on the phone many times. AT&T states it is Apple that will not allow them to unlock the phones...  Please tell me why?  All I want Is my daughter to have a phone I trust, to be able to call me when she is given the free time to do so and I trust the apple phone.
    Apple, please reconsider your stance on this issue.  I am having a hard time understanding why you will not unlock the iPhone. 
    A simple code could allow me to talk to my daughter while fighting for our country the Great USA.  Apple should be on the front line and enabling those fighting for our life, liberty and pursuit of happiness to use unlocked phones on reliable local GSM networks.
    I honestly hope that someone who has some sort of authority to begin allowing the release of unlock codes, and not forcing people to unlock their phones with some program produced by some hack just to be able to use your wonderful phone.  That is is in a nutshell, People love the iPhone so much that they want the ability to use it on the most reliable GSM carrier available to them.  That should be a major compliment. Even men and women on the front line want your phone. I agree, my service is not the best where I live either, love the GSM technology so stay with it, but if I had the ability to change to the other GSM network that has much better coverage in this area of the country I would change. To change now I would not have my iPhone and that I will not part with. 
    Apple, please reconsider opening up the lock code and allow your gem of a phone to be used by many more people in many more areas and most importantly overseas fighting for our country.  I know if this is really thought about Apple would understand and come to the conclusion to release the unlock codes, and stop the people from hacking in to use the iPhone on other networks.
    I would love for my daughter to be able to use my iPhone 3gs while fighting for our Free country.
    A response would be appreciated.
    Thank you.
    An Apple customer for 10 years, phones and computers.
    P

    Defiled:
    I did sign a two year contract and completed that contract. The 3gs is no longer in service. My daughter is going overseas to protect you and your family. I was attempting to find a way for her to have a reliable phone that could offer her some connection with home as she travels through the middle east.  She travels in missions all over.
    At&T unlocks other phones of theirs why not the iPhone?  AT&T says that Apple will not give them the code, it is not the carrier.  If I would have known this situation would have come up I would have bought and unlocked 3gs phone"Deggie" .  My main complaint is that Apple has not good excuse as to why they will not allow their phones to be unlocked from services well, AT&T .  I bought the phone full price, completed the contract terms, even went for and iPhone 4 with another2 year contract, along with owning an apple computer... I love the product.  My main issue is give me a good answer as to why you won't allow a phone to be unlocked. It doesn't hurt Apple, People still have to buy the phones from them, and use their App store and iTunes.
    Sorry, just upset about my daughter heading over there, boots on the ground, and just pray she will be safe. Would have liked to facetime her while she is in the airports and in specific areas allowed for that.
    Please don't come down on me for asking this question. I understand all the contracts etc.... but to single out the iPhone specifically to not unlock after contract is over does not seem fair.
    Thank you for your responses.

  • Using Mac OS 10.8.5 why won't disk image from Utilities mount to open a .dmg file?

    Using Mac OS 10.8.5 why won't DiskImage from Utilities mount in order to open a .dmg file?

    Select the .dmg file and double-click it. FWIW, there's no DiskImage thing in Utilities on any of my boot volumes.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • ITunes says my computer isn't authorized to play one song, but all the rest of them work. The song works on my iPad so why won't it work on my computer or my iPod?

    iTunes says my computer isn't authorized to play one of the songs I just downloaded, but all the rest of them work. That song works on my iPad so why won't it work on my computer or my iPod? It says my computer isn't authorized to play that song so I type in my password and it pops up with a menu saying my computer is already authorized and it skips to the next song. No matter what I do it won't play that song on my laptop or my iPod.

    Could be a Corrupt download of that song...
    If you live in a Region that allows re-downloading Music...
    Delete the Song(s) and re-download...
    See Here  >  Download Past Purchases
    http://support.apple.com/kb/HT2519
    If not... Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • Why won't my iphone 3gs charge even though it is plugged in?

    Hi guys, so I've had my 3gs for nearly 2 years. A couple of weeks ago I noticed that charging it wasn't going easy. When my iphone shuts down from no battery life and I plug it in to charge, it charges enough to turn itself back on, but when it eventually turns back on it won't charge anymore? Even though it is still plugged in and switched on by the plug. So I have to take out the USB, turn off the switch to the plug, turn the switch back on, plug the USB back in and it charges again.
    BUT, recently not even that does it. I've tried different plug sockets, i've rebooted it. I've tried leaving the USB cable in and just turning on and off the plug switch.
    So at the moment it's just going through a circle of running out of battery, charging and turning itself back on, having 4% battery and dying again and repeating.
    So I googled my problem and didn't really find a solution. I mean the plug and USB cable are fine. Clearly it charges fine because it charges enough to turn itself back on when it's shut down. 
    I found out that when the iphone is plugged in but turned off it still charges so I tried this when it started itself up again, and it charges!!
    But why won't it charge when the phone is on and plugged in??

    Hi waplington123,
    If your iPhone will not start up unless connected to power, you may want to troubleshoot using the steps in this article -
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Specifically -
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Why won't iTunes 11.0.1 sync my Podcasts to my 3rd Gen iPod Touch on IOS 6.0.1?

    Why won't iTunes 11.0.1 sync my Podcasts to my 3rd Gen iPod Touch on IOS 6.0.1?  I'm running iTunes on my MacBook with Mac OSX 10.6.8.  I've checked to make sure in iTunes that the Podcast Sync box is checked and it is.  I've tried checking communities and tried several suggestions and nothing seems to work for me.  Everything else syncs except Podcasts.  I can't figure it out. Any suggestions to get Podcasts syncing to my iPod Touch again?  Thanks!

    One other step I've tried was removing and completely reinstalling the playlist to the iPod. That cleared up the problem for about two days.

  • Why won't Adobe reader no longer let me view previously download (from Safari) pdf's? I am running OSX 10.8.5 and have uninstalled and reinstalled latest version of Reader?

    Why won't Adobe reader no longer let me view previously download (from Safari) pdf's? I am running OSX 10.8.5 and have uninstalled and reinstalled latest version of Reader. I get this error message "Adobe Reader could not open 'OD Test Bed Proposals_0.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."  I have tried changing the 'open with' options too. Thanks

    Try this:
    Go to: Mac HD/Library/Internet Plug-ins
    Trash the AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin files
    Empty the trash
    Relaunch Safari. You can now download undamaged PDFs.

  • Why won't icloud work with windows vista anymore?

    why won't icloud work with windows vista anymore?

    I had to re-install after the newly released iTunes - for Vista it does work with iClud 2 - not 3. You can download from this site.

  • My iPod will charge in the computer but not my iPod dock, my sisters iPod dock or the wall charger. My sisters iPod will charge in all and we both have the same sofware and generation. Why won't mine charge?

    My Ipod will charge in the computer but noy my iPod dock, my sisters iPod dock or the wall charger. My sisters iPod will charge in all and we both have the same software and generation. Why won't mine charge?

    Look the dock connector on your iPod. Look for abnormalities like bent or corred contacts, foreign material and cracked/broken plastic.
    Try:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears..
    - Restore from backup
    - Restore to factory settings/new iPod

  • Ipod touch will not connect to itunes @ work computer, but will connect to itunes @ home computer? why won't itunes see my ipod at work?

    ipod touch will not connect to itunes @ work computer, but will connect to itunes @ home computer? why won't itunes see my ipod at work?

    Try here:
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X
    Mac OS X v10.6 or later: iOS device not recognized in iTunes after restart

  • HT1351 why won't my ipod nano sync automatically anyone? I got a new laptop, authorized it, but can no longer sync music. right now there is no music at all on my nano. Hellp!

    Hi
    Bought a new laptop and can't sync anymore. I enabled my laptop...should be all set. But, my nano now has no music on it! My music library shows up in itunes. Why won't music sync to my nano?
    Help!!argh

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
      - Restore to factory settings/new iOS device.                       

  • Why won't my new Airport Extreme recognize my USB Hard drive?  My MacBook recognizes it.  I already have had a great deal of trouble connecting my printer to print wirelessly, but finally resolved that.  Now I want to add the external drive with a USB por

    Why won't my new Airport Extreme recognize my USB external hard drive.  I put a USB port on the base station, and the system recognizes my printer.  When I click on disks - it lists my printer, and when I click on Printers it lists my printer.  What do I need to do to get it to recognize the external drive?  BTW, the MacBook recognizes it, no problem.  I have erased it and reformatted it.  I am running the new Lion OS.  Any help is appreciated.

    Yes, I saw a post on one of these threads about a powered USB hub so I ran over to Office Depot and picked one up.  I was finally able to see the HD in the Airport Utility.  Yay! 

  • Why won't my printer print with Windows 8?

    Why won’t my printer print with Windows 8?
    Have you just upgraded, or purchased a new computer with Windows 8, and now you can’t get your printer to work?  If so, this may help you.  A lot of people have questions about installing their printer on a new OS.  This will help you answer those questions and make sure that you get everything installed. 
    Before You Start
    Before you try to install the printer on a Windows 8 computer, you should check to make sure the printer is compatible with the new OS.  The link below will give you a list of the printers that will work in Windows 8.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03168175&lc=en&cc=us&destPage=document&dlc=en
    If you have upgraded your computer to Windows 8 form another version of Windows, make sure to completely uninstall all of the software for your printer.  It should still print, but to use all the functions you will need to reinstall the software, if it’s available.
    Another thing to consider is how you want to connect the printer to the computer. 
    USB.  You should make sure that you have a USB cable that is no longer than 6 ft. (roughly 2m).  Make sure to connect the printer directly to the computer.  Do not use a USB hub. 
    Ethernet cable.  Make sure you have the network setup, that you have a free cable port on the router, and that you have an Ethernet cable available.
    Wireless.  You should make sure that you have the wireless network setup, and that you have the password for the wireless network. 
     1.     Installing Via USB
    Installing via USB in Windows 8 has become much simpler for HP printer users.  In other versions of the Windows OS you had to start the installation and wait for it to ask you for the USB connection.  If you didn’t, you would have to uninstall the printer from the Printers/Devices folder, and then start the install.  In Windows 8, that will not be a problem.  If you plug the printer’s USB cable in and then install the printer’s software, it will still work.  Now for in depth instructions on installing the printer via USB click the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03460670&tmp_task=solveCategory&cc=us&dlc=en&la...
    2.     Installing Via an Ethernet Network Connection
    For an Ethernet network connected printer the install is amazingly simple.  All you have to do is connect the printer to the network.  Once you have that done, Windows 8 will automatically install the drivers for you.  Then, all you have to do is install the rest of the software, if it’s available.  It’s really that easy.
    http://www8.hp.com/us/en/support-drivers.html
    3.     Installing Via a Wireless Network Connection.
    For a wireless network connected printer the install is amazingly simple as well.  All you have to do is connect the printer to the network.  Once you have that done, Windows 8 will automatically install the drivers for you.  Then, all you have to do is install the rest of the software, if it’s available.  It’s pretty much the same as an Ethernet install, just wireless.
    http://www8.hp.com/us/en/support-drivers.html
    Alternate Install Methods
    With Windows 8, many printers’ drivers are installed with the OS.  These are known as InOS drivers, since they come built into the operating system.  If you have one of those printers, all you should have to do is connect it to the computer via USB, or connect it to the network via Ethernet or wireless.  Once you have that done Windows will handle the rest.  There are alternate methods of installing your printer if the normal methods are not working for some reason.  You can install the printer either using the Printer Install Wizard, or through Windows Updates. 
    Printer Install Wizard:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02681060&tmp_task=solveCategory&cc=us&dlc=en&la...
    Windows Update:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03460648&tmp_task=solveCategory&cc=us&dlc=en&la...
    Note: The Laserjet drivers for the Asia-Pacific and Japan won’t be released until a later date.  Check the support site linked below for driver availability.  I will update this post once they become available.
    http://www8.hp.com/us/en/support-drivers.html
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    This question was solved.
    View Solution.

    Hope this answers some questions.  
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

Maybe you are looking for