Keeping all files together - servlet or htdocs?

Howdy all!
We are putting together a project that will accessible from the web via servlets and applets and with a substantial amount of java and xml processing on the server side.
We have code that exists in the servlet folder so it can be run from the servlet code. But we also have applets in the webserver's htdocs folder so that it can be referenced by the webserver.
This is not good - we are splitting up our packages to deal with a path problem.
Is there any way around this? I have read about using the context container:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
and war archive.. but I am quite confused about how we should utilize these things.
Thank you for any help!
Rob

I think that the classes you use for you applet should not be in the local classpath. After all, they are for use in another machine's JVM - the one that will run the applet.
One solution would be to put each applet in a jar file that contains all the classes that it needs to run. There are dependency checkers out there that will tell you what classes a given applet uses. This may mean that one class file may exist in many jars, but your applets will be self-contained.

Similar Messages

  • Lightroom and ACR - Keeping all files together

    Not sure I'm asking the right questions but I'll give it my best shot.
    According to what I've read, it appers that the only way to get a job into Lightroom is to choose Import. What if I have a job folder with RAW files that have already been manipulated in ACR? Is there a way to simply point Lightroom to that folder without having to import into LR and have all the files be copied again?
    Also, if I open the RAW files in LIghtroom after working on them in ACR, will LR cause the RAW files to first go back to their defaults? If so, is there a way to get them back in ACR as originally worked on?

    Ian,
    It's so nice to see you. I was thinking about you recently and wondering how your were doing.
    Thank you for your help on this. I must have overlooked the drop down menu.
    I am relieved to discover that even though LR copied and converted the files to DNG, it didn't seem to affect my previous work. Also come to find out it created a new folder for the DNG within the other folder.
    Thank you again!
    Linda

  • How to keep all files in differents browsers

    I use differents browsers how to keep the bookmarks organised in all of them ?
    Is better url manager or Bookit ?
    Thanks

    What del.icio.us would do is make all bookmarks you create there available to any browser on any computer you happen to be using. It will not give you the same set of bookmarks in each of your browsers. I mentioned it because it has become a popular way of keeping bookmarks which is not dependant on any one browser and is available even when you are not on your own computer.
    The bookmark/url managers would be the better way to go to actually manage the bookmarks in your various managers. With them being shareware, you can try them out to see it they fit your needs before you would have to pay for them. The two I mentioned both got high user ratings on VersionTracker. You might be able to find other url managers there as well. It has been a while since I tried any url managers myself, so I cannot give a personal recommendation on any of these programs.

  • Reinsall fresh OSX keeping all files, apps and settings

    I am getting ready to install a fresh copy of OSX 10.9 for a friend on her i mac.  She has 480gb of data mostly doc's and photos and apps.  The os has become very sluggish and is freezing when opening some apps and has become very slow.  I want to verify the correct way to reinstall the OS without losing any of her files.
    Now first off as a precaution I have made a full Time Machine backup in-case something goes wrong.  To reinstall the OS I will boot into the recovery partition and just simply reinstall the OS and it will replace the entire OS files but not affect any personal files, apps settings .. Correct ?
    Thanks for any help with this issue.

    Activity Monitor - Mavericks  also Yosemite
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy
    6 Easy Tips to Speed Up OS X Yosemite on Your Mac
    Try running this program and then copy and paste the output in a reply. The program was created by Etresoft, a frequent contributor.  Please use copy and paste as screen shots can be hard to read.
    Etrecheck – System Information

  • I want to use my Time Capsule as a central 'hub/hard-drive' in order to keep all my working files in one place. I then plan to use my laptops/desktops as peripheral devices for editing and creation of these files. Is it possible? Create a personal cloud?

    I want to use my Time Capsule as a central 'hub/hard-drive' in order to keep all my working files in one place. I then plan to use my laptops/desktops as peripheral devices for editing and creation of these files. Is it possible? To create a personal cloud?
    Can someone advise as to whether i can do the following:
                                Future Internet connection -------------------TIME CAPSULE (containing all files) -------------- Backed up on the WD 2T Hard-drive I have
                                      (not connected yet)                                         I                                                          (*connected to timecapsule physically)
                                                                                                            I
                    I                                         I                                                I                                                              I                                                I
          Macbook Pro                             iMac                                       HP (PC)                                             OLD Macbook Pro                         iPhone
    (used for remote working)       (Used for home working)     (used for heavy CAD and rendering)    (not being used for anything at the moment)        (& iPods)
    I am looking to have all my files in one place as i am hopelessly disorganised. I know the online clouds are a good solution (used Dropbox at work and uni for 3 years) however i am wanting to create my own 'dropbox/icloud' at home. So whenever i get back home with my laptop, any work i have been working on whilst out that day is updated to the timecapsule, and then ultimately as i turn on the other devices, they update to those newer versions of the files. Please tell me that the 3TB time capsule i have can do this, otherwise it feels rather overpriced as a wireless storage device?
    Another note (to those in the know) If i am to be working on large files (REVIT/SOLIDWORKS/KEYSHOT/CREO/AUTOCAD) - is the timecapsule connection good enough to support editing and updating these files?
    I know i may be asking a question that many have before, but as a bit of a technical novice I wanted a clear-cut answer to my specific circumstances. Your help is greatly appreciated.
    (*can i use this WD hard-drive that is connected to the Time Capsule as a back up? so that the time machine back-ups/any back ups are also backed up onto this one? can the WD be a backup for the TC?)
    Kind Regards
    Joe

    The diagram was supposed to look more like this......
    Internet ---------TIME CAPSULE(containing all files) --------WD 2T Harddrive
                                                I
         I                           I                          I                            I                                   I
    Macbook Pro         iMac                 HP (PC)            OLD Macbook Pro           iPhone
    Sorry!
    Regards
    Joe

  • How do I copy and paste a shape (or layer) from one file to another keeping all of its attributes?

    Our department currently uses MS Paint to place varied colored boxes for callouts on top of screen figures used in our documentation. As you know, MS Paint is not a robust image editing application, and we are frustrated at its limitations (especially not having a "non-destructive" edit capability). Consequently, we are evaluating a trial version of PS to see how a workflow could be developed that would allow the department to use callout boxes "stored" in a PS file that could be applied in an easy, consistent manner to our screen figures (but also keep each callout box editable) using PS.
    Consequently, in PS using the shape tool, I created a file with our colored boxes for callouts, each on its own layer. Now I am trying to determine how you copy and paste a box (or layer) from this file to a "working" file (one containing a screen figure), while keeping all of its attributes (color, line weight, being editable, etc.). I can't seem to find an option to do this. Is there? If not, is there another workflow in PS that you can recommend for this type of procedure?

    Thanks - I used the Layer > Duplicate command and it worked great!
    P.S. How do you drag and drop a layer? I tried dragging a layer to the other open image, but nothing happened. Do you have to hold down a specific key for this (I'm using Windows)?

  • Is there a way to put a large amount of music on your iPod without having to keep all the files in iTunes on your computer as well? I want to put my entire music collection (including cds) on my iPod but don't want to take up the space on my computer.

    is there a way to put a large amount of music on the ipod without having to keep all the files on itunes as well? I want to use my ipod as an externa drive and put all of my music on it without taking up the space on my computer. I also don't want to lose all my files everytime I plug ipod into my computer. Is this possible? Is there a way to avoid using itunes and only use the ipod as an external drive?

    You cannot put music onto your iPod without using iTunes, that what iTunes is for.
    It's also not a good idea to wipe the music from your computer and having it only on your iPod. We see countless posts here from people who have done just that - and then lost everything when the iPod needs a Restore. Even if you never need to Restore your iPod, what happens when you eventually replace the iPod? You'll be back here asking how to get the music from one iPod to another. That's not easy to do, we see countless posts about that too!
    A much better idea is to buy an external drive (a proper external drive, not simply an iPod) and put your large amount of music onto that drive. Then point your iTunes Library to that drive. However, you need to remember two things:
    You still need a backup of that Library.
    Using an external drive as your iTunes Library means that the drive must be connected and ready to read before starting your iTunes programme. If it isn't, then iTunes will look on the C: drive - and you will find no music in your Library. (Once again, lots of posts about that as well!)

  • HT1711 When I load one of my own CD's onto itunes, it creates separate albums for each unique pairing (ie: singer/composer or singer/orchestra). How can I keep all the cuts together on one album?

    When I load one of my own cd's onto itunes, it creates separate albums for each unique pairing (ie: singer/composer or singer/orchestra). I end up with
    the cuts scattered over several albums.  How do I keep all the cuts on an album together rather than divided between several albums? I'm brand new with this technology, so I need your information in simple terms.  Thank-you.

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    The site could do with updating as some options have changed with iTunes 11, but the principles are the same.
    tt2

  • Old Macbook to New Macbook Air Transfer but new Macbook Air has less Storage Space. I only want to keep all iTunes and iPhoto Files. I can keep the rest on an External HD. How should I do this?

    Bought a New Macbook Air and wanting to transfer only iTunes and iPhoto stuff to the new Macbook Air. How should I do this? Ive got and External HD acting as Time Machine but the Data on there is 143G worth and the New Macbook Air is a 128G HD. So i dont need all the extra Documents but want to keep them on the External HD which has been Partitioned.
    Question is - How do I transfer the iTunes and iPhoto info into the New Macbook air and keep all its settings ect and also keep the Docs ect in the HD? Time Machine wont work as there is too much info for the New Macbook Air.
    What should I do?

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

  • How do I keep a file open and am able to look at all the pictures in the file?

    I want to oepn a file with 24 picturees for example.  I want to keep that file open so that I can see all 24.  Then I can work on 1 picture or another.  Now each time i finish with a picture and save it if I then open another pciture it overlays the other.  I was able to do the above in my earlier version of photoshop.

    Editor preferences>general, and turn on Allow Floating Documents. Then Window>Images>float all in windows.

  • I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance

    I want to move the location of my iTunes library music files. At present they are all on my time machine . I want to move them all to my imac. Can I do that and keep all my playlists and play counts? Thanks in advance
    its 1000s of songs . Originally I used the time machine as a networked drive but it can cause the songs to pause so I'm thinking it would be better to have the songs on the internal imac drive
    how can I move the songs so I can re-open iTunes and the playlists (with plays in the 100s) find the song in the new place?

    Do you mean on your Time Machine backup drive? Or are you actually accessing the backup? In either case you shouldn't be doing that. If you haven't space on your HDD to store the iTunes Library, then at least put it on another external drive.
    Since you did not provide any information about what's actually "on my time machine," here's what you would do. The entire iTunes folder should be stored in the /Home/Music/ folder. Within that folder you would have three folders: imm Media, iTunes, and iTunes Playlists.

  • How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop the fil

    How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop all the files that I had open are there already in the same position as when I closed Photoshop?
    I've been a Fireworks user for over 10 years and just switched to Photoshop. I cannot find a setting that will enable all my file windows to reopen when I quit Photoshop. This is really a problem since I often work on several files at the same time.
    Please let me know if the feature exists or point me to where I can post a message for a new feature to be implemented. The feature is a must for any designer working on large projects.
    Thanks!

    There is no such functionality. You could perhaps create a script that stores that info in a custom text file and arranges them accordingly in the workspace, but that's as good as it gets...
    Mylenium

  • I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I strongly advise against upgrading the OS without first making a backup. Were something to go wrong you would lose all your files without the backup. See:
    How to Install OS X Updates Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your current OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Purchase the Snow Leopard Retail DVD.
    Boot From The OS X Installer Disc:
    Insert OS X Installer Disc into the optical drive.
    Restart the computer.
    Immediately after the chime press and hold down the "C" key.
    Release the key when the spinning gear below the dark gray Apple logo appears.
    Wait for installer to finish loading.
    E. If updating:
    Download and install update(s) 
    Use Software Update, or
    Download standalone updater(s).

  • HT1473 i've been trying to import a cd into itunes that has different artists on the cd. (queen of the damned soundtrack) after its done, all the tracks aren't together. its all sepreated. how can i keep all the tracks together?i've been trying to import

    i've been trying to import a cd into itunes that has different artists on the cd. (queen of the damned soundtrack) after its done, all the tracks aren't together. its all sepreated. how can i keep all the tracks together?

    Happens all the time and you are probably correct about cause.
    Some CD manufacturers use various forms of copy protection on discs designed to interfere with computers reading the discs. I have found iTunes to be very picky about this too. I have had several discs iTunes would not acknowledge but could rip with another program. Other times the fix is as simple as cleaning the disc ro turning on error correction for the ripping process.
    Message was edited by: camoracer

  • When i purchase os x mountain lion from the app store and install it will i keep all of my files and apps on my hard drive

    If i purchase mountain lion will it wipe my hard drive or will i keep all of my files and applications

    Simply connect an external hard drive to it. Format it if it's not labeled as made for Mac using Disk Utility.
    I'd recommend backing it up using Time Machine. Your Macbook should ask you if you want this drive to be used for Time Machine....you do.
    Once the backup is done you can, later on, use the backup drive to migrate everything to your new iMac.

Maybe you are looking for