How do you share code across projects?

I'm a newbie to Java and am wondering how best to do this: I've created a Java class that implements javax.faces.validator.Validator to do email address validation. It needs to be shared with other projects so they, too, can validate emails. Should the class be wrapped in a JAR file? If so, how do you do this? Thanks.

That depends a lot on what tool you are using to write code.
Most IDEs have the concept of 'dependent projects', where the contents of one project are added to the classpath of another. When I use these sorts of things I will usually isolate just the code that several projects share into their own project, then make it a dependency for other projects. How you do that is IDE specific so read up on your IDE's manual.
If you aren't using an IDE, then yes, you should build a JAR file and add that JAR file to the project's classpath. Search google for help on making JAR files and setting classpaths, there is a ton of how-tos out there for each...

Similar Messages

  • How do you share an iMovie project to DVD now that iDVD not available

    How do you share an iMovie project to DVD now that IDVD not available on iMAC? Thanks.

    Hi
    If there is no iDVD on Your Mac (and it's not on newer Macs as Apple discarded it) then You need a program that can do this.
    Your Mac can burn CDs and DVDs - BUT DVD as Data-DVDs not as Video-DVDs - they need a program to be encoded and STRUCTURED as such.
    • iDVD is part of the boxed version of iLife'11 and can only be bought outside Apple as on Amazon and e-bay
    • DVD Studio pro - Part of FinalCut Studio Pro bundle - this to has expired and can only be bought second handed. (High price and tough learning Curve - but best ever done.)
    • Roxio Toast™ - Not as elegant as iDVD - but has many other positive additions (I like it as 10-Pro incl BD-component) (now version 11)
    • Burn - only free alternative I know of on Internet. Very simple - Just for doing a plain Video-DVD
    Burn http://www.digital-digest.com/software/Burn.html
    only You can buy from Apple is
    • FinalCut Pro-X which also can burn to DVD but without any nice themes.
    AppleMan1958
    You can also buy Compressor from Apple for $50 US. It will also create DVD and Blu-Ray but without the nice themes.
    Yours Bengt W

  • How do you share Aperture file across multiple users on same Mac?

    How do you share Aperture file across multiple users on same Mac? Seems this should be a preferences choice.

    When you share your library between users, you may run into permission and ownership problems, if both users are editing the Aperture library and not only reading it. To avoid that, it helps to put the Aperture library onto a separate disk or a separate partion of your hard drive. For s separate partition or disk you can enable the "ignore ownership on this volume" flag. Then all users can access the library as owners of this library.
    You might try to put the aperture library into a shared folder on your mac, but that has caused problems recently, i.e. when the library also contains video files.
    Regards
    Léonie

  • How do I share a new project on imovie if the export option is greyed out and not an option?

    how do I share a new project on imovie if the export option is greyed out and not an option?

    nicoleking wrote:
    ... I heard that if you bring in your old iPhone, they will give you a new one with some kind of fee, but I don't know how that works.
    https://discussions.apple.com/message/22920500

  • How do I share an Aperture project with another computer?

    My wife and I each have MacBook Pros running Aperture. How do we share certain Aperture projects?

    There is no way to share _and sync_.  Aperture is a single-user application.  You can copy Projects from one Library to another, but changes made to the Images in the Project copied to the second Library are never written back to the original Library.
    Moving Projects between Libraries is easy.
    Note that you can export a Library, work on the Images in it, and then import it back into the original Library and merge your changes.
    All of this is covered better than I can here in the User Manual chapter "Working with Library Files"
    HTH,
    —Kirby.

  • When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

  • How do you share photos from a Mac Book Pro to an iMac?

    How do you share photos from a Mac Book Pro to an Imac?

    If you are running Lion try AirDrop  http://support.apple.com/kb/HT4783
    Bluetooth file transfer is standard for close range transfer.
    http://ismashphone.com/2011/08/how-to-fix-bluetooth-pairing-in-mac-os-x-lion-iss ues.html
    Target Disc Mode
    http://support.apple.com/kb/PH3838
    DropBox
    https://www.dropbox.com/
    File Sharing. >System Preferences>Internet/Wireless>>Sharing

  • How can you share music wiyh another iphone in the same house that has not been connected to a compter

    how can you share music on iphones in the same houes when one of phones has never been connected to a computer

    Hello weeshaza,
    It sounds like you are wanting to sync more than 1 device to your iTunes Library. This article will help you do that:
    How to use multiple iPhone, iPad, or iPod devices with one computer
    http://support.apple.com/kb/ht1495
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • How do you share a photo album?

    OK I have a photo album in iPhoto.  How do you share that now that mobileMe is gone?  I want to be able to send a link to someone whether or not they have iCloud.
    I tried making a shared photoStream album, and it sort of works.  I can't re-order the photos after they have gone up though.
    What is worse is that when you go to the web site for the album, the photos are all automaticallyt cropped and laid-out into what is supposed to be an artful design, but which really just ruins any photos which are cropped to fit into squares.
    Is there another way?  A way to at least disable that auto-layout?
    Thanks
    Bob

    iCloud provides a simple gallery in the form of 'Photo Journal' - uploading of photos from iPhoto to web pages hosted on iCloud, but only from iOS devices; and the photos are compressed to a size adequate for online viewing but are not available in full resolution as with the old MobileMe Gallery. Apple have provided a sample album here.
    This page examines some alternatives:
    http://rfwilmut.net/missing4

  • How do you share a form fillable pdf in adobe connect?

    How do you share a form fillable pdf in adobe connect? ItI used to do it like I would share any other document but now it says "could not process document for viewing." Anyone know what cahnged and how to fix it?

    I hope its not preview.

  • Can you Share Scenes between projects?

    Can you Share Scenes between projects?
    I would like to take already created scenes and share them
    between files and projects so multiple people can use them as a
    resource. Can it be done?

    pndrgn wrote:
    > Can you Share Scenes between projects?
    > I would like to take already created scenes and share
    them between files and projects so multiple people can use them as
    a resource. Can it be done?
    Scenes are just for authoring convenience, they basically
    blank frames giving an end to one
    and beginning to another timeline so you can't actually
    define scene like you could a movie clip.
    What you can do however is to Copy frames by unlocking all
    the layers, highlighting all the frames
    and CTRL ALT C than open new file and paste the frames CTRL
    ALT V
    That's the only way to share the scene.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • How do you share thousands of pictures with text and captions outside of PSE?  (PSE 4)

    One of my dad’s retirement passions is family genealogy and old family pictures.  Several years ago I gave my family PSE 4.0 for Christmas so that we could each have backup copies of our dad’s pictures.  Usually once per year, I made backup copies of everything and emailed the DVDs to my brothers and sisters.  Everyone knows the basic PSE 4 functions and share our dad's enjoyment with the old family photos.
    My problem is that my dad is running out of pictures to scan.  He wants to “share” or “show” his photos with others so that he can “borrow” their photo albums in order to scan their photos.  He plans to attend a hometown high school reunion later this fall.  He hopes to "collect" photo albums from cousins and classmates.  I have been struggling with this for several days without any good ideas.
    The scanned pictures lack any text (added as a layer?) or captions.  Creating a slideshow (on my dad’s computer is slow).  Also, a slideshow doesn’t let others select individual pictures to save from the slide show
    He has old pictures pre-PSE 4 that allowed him to add captions directly to the picture when it was scanned.  I never liked this approach as it "destroyed" the actual picture but these old pictures are more easily shared as individual pictures.
    How do you share thousands of pictures with text and captions outside of PSE?  Can you save or export a composite picture with all the layers?
    Thanks in advance for your help and replies.

    I think it is one of the printer option screens that gives me the choice of tabbed 4x6. All of the choices specifiy HP or Other so I am pretty sure it is printer software that offers me this choice.
    Make sure your image has a 4x6 aspect ratio. I have been quite happy with the tabbed 4x6. Just need to remember to load the paper with the tab last.
    So, in elements you set to 4x6, in printer options you should be able to choose 4x6 tabbed paper.

  • How do you share some photos from an album in iphoto to facebook without bringing over all the pictures?

    How do you share some from photos from an album in iphoto to facebook without bringing over all the pictures?

    Select the photo(s) and click share and share to the face book album you want
    LN

  • With latest iPhoto how do you share photos within network?

    With latest iPhoto how do you share photos within network?

    You don't, in a nutshell.
    Tell the devlopers what you think:
    iPhoto Menu -> Provide iPhoto Feedback

  • How do you share reminders with others in new (as of 14/09/12) iCloud?

    Now that reminders has its own 'app' on icloud.com, how do you share reminders lists with others? It has all changed in the past 24hrs or so. It used be possible by sharing from the calendar 'app' on icloud .com, now there is nowhere.

    See my post here: https://discussions.apple.com/message/19562486#19562486

Maybe you are looking for

  • Open in same browser window

    I made a flash element for my dreamweaver website. I have an invisible button on the top so when you click it, it opens a new page. i'm trying to make it so when you open it, it opens in the same browser window. I tried making the target self and it

  • XML encrypt/decrypt

    Hi All, I'm a newbie, and want to know if the output XML file (UUT test report) from TestStand can be encrypted without using any third party software? Actually I want to know if TestStand itself supports encryption/decryption of XML? And if TestStan

  • Where is the iCloud app for iOS?!

    Can anybody explain please how iCloud works as a replacement for Google Drive or Dropbox?! Despite being very au fait with everything Apple I still can't work out how it's meant to work - I'm using iOS 8 on all my devices and OS X Yosemite. So, as an

  • HT201413 i cant launch itunes, all i see is a ? on it, when i try to update it wont work says need oxs 10.8 how to i fix my itunes

    need help fixing my itune, when i click on it it wont open all i see is a ? on it.

  • Portal Upgrade scripts???

    Where have the portal upgrade scripts gone??? Do I need them to transfer from 9iAS Version 1.0.2.2 to Version 1.0.2.2.1??? Please can these IMPORTANT scripts be placed somewhere so that we can find them.