Creating a library and use it

Hi all,
I'm new in Java (but not with other programming languages).
I have created some util classes, compiled them successfully and put them in a jar file.
suppose i'm writing a program that call some classes of that compiled library.
What do i must to do to compile my program (without having the message class not found) and without unzipping my jar file.
any small example will be appreciated.
Thanks in advance.
Taha.

you will have to but these files of yours into some package, then optionaly jar that package and then add these classes/that jar into your class path...
and that's it.
suppose you do this:
create file Utility.class that's in myutil package, then jar it to something.jar and later when you try to execute your other program, then inculde something.jar with commandline option:
java -cp path_to_something/something.jar MyOtherProgram
or add your .jar to class path
or copy your .jar to location were all extentions of jdk lie...

Similar Messages

  • How the **** do i get back my library i was just using.No didn't save image or restore been using it for months the same way no tells me to choose or create a library and my previous versions don't recover

    How the **** do i get back my library i was just using.No didn't save image or restore been using it for months the same way no tells me to choose or create a library and my previous versions don't recover.Please help I just deleted all doubles did allmy artwork Etc..

    Do you have a back up?
    If not you're into using file recovery software like  File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • A friend gave me her VAIO laptop.How can I remove her ITUNES library and use mine which I want to sync with my Ipad and Iphone?

    A Friend gave me her VAIO laptop.How can I remove her ITUNES library and use my library.  Want to sync my Ipad and Iphone to My library.

    I believe when you plug her old iPhone in to your computer it will notify you that the phone is synced with another library and ask if you want to register it with your library.  At least this is how iPods work.  I'm not sure about iPhones.  If you want to actually use the phone as your own you may need to go through AT&T.
    If you're just looking to use the iPhone as an iPod (without the phone portion of it) you may run in to some problems.  The iPhone really wants to be on a cell network all the time.  I think you'd have to jailbreak it to get it to work properly as an iPod.
    Let us know what happens when you plug the phone in to your computer.

  • How to create RFQ s and use them to complete the program

    hi,
    how to create RFQ s and use them to complete the program
    thanks in advance

    Hi Santosh,
    RFQ is created through transaction ME41.
    You need to write down BDC for mass update of RFQ, because BAPI is not available.
    Regards,
    Tutun

  • Is it possible for Apple Time Capsule place iphoto library and use it with my macbooks

    Is it possible for Apple Time Capsule place iphoto library and use it with my macbook pro & macbook air? How about the simultaneous use? Will I as well open it in my ipad and iphoto?

    How Come? I thought that to an external drive move iphoto library is not a problem  -  https://discussions.apple.com/thread/3012995?tstart=0. And Apple Time Capsule including the an external drive.

  • Creating multiple libraries and using an external drive for data

    I'm a recent switcher and new to iphoto. On the windows platform, I used adobe album. I have a around 10k of images that I put on an external drive which is attached to my new imac. I deleted the iphoto folder and redirected it to my images on my external. All is working great. I'm looking for some advise on work flow of file/iphoto management. i.e. I'm assuming the more images I accumulate, the slower I photo is going to run? I hear you can create multiple iphoto libraries. Will that only load the photos that are associated with the library and I'm assuming optimize iphoto's performance versus always loading every photo you have taken every time you work in iphoto? If adding libraries is the way to go, can someone direct me to instruction on how to do this?
    This may be beyond this threads scope but I plan to put all my data (iphoto, imovies, itunes) onto an external drive in order to keep the imac main drive as clean a possible. Is my thinking correct in doing so. Any negative repercussion in doing so?

    Joe:
    I'm assuming the more images I accumulate, the slower I photo is going to run?
    You'll have to get quite a lot of photos into iPhoto before you start to see a real slowdown in performance. Users have reported libraries of 40K files and they perform just fine. However, do not keep all of rolls open as that will really do a job on the performance. Just open the rolls you need and close them all before quitting.
    Yes, you can use multiple libraries and only load what's in each. I use iPhoto Library Manager to manage and move quickly between 10 libraries. With the paid version of iPLM you can move albums and/or rolls between libraries as needed and keep the keywords, ratings, and comments intact.
    Using an external HD in order to maintain sufficient free space (10G minimum is what I recommend) on the boot drive to help optimize performance is a very good idea.
    As far as any negative aspects, it would be a good idea to have a second external HD as a backup to the working external HD. You can't be too careful with those image files (and other important files) that can't be replaced.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to create stored procedures and use those in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    Hello,
    There is a document explainining how to use Oracle stored proc with Crystal reports.
    Check at:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1084c536-711e-2b10-e48a-924a60745253
    It is for older version but it should work and you can refer to it to get general idea how to start with it. It has a sample oracle stored proc and how to connect it from Crystal Reports.

  • Created "2nd" library and previous library is empty

    I wanted to create a seperate library to store my Audiobooks on. I did so, then went back and selected "Previous Library" and found that it opens up the same as the new one - empty! All of my old files are still on my computer under iTunes Media Folder. However, the "Previous Library" folder and the new "Audiobook Library are empty. How can I associate these files with the "Previous Library"? Thanks in advance for the help

    Welcome to the Apple Discussions.
    It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss.
    It sounds like, as you've been "organising" your photos in the folders, you've got rid of your pics and kept the wee thumbnails that iPhoto uses for display.
    So, what did you do with your actual photos? The "fix" is to get them back from where ever you put them.
    Regards
    TD

  • Creating a view and use the view in a model

    Hi All,
    I am new to OBIEE and i have a requirement that i have two fields to be added to a subject area. Since we can't add queries directly to a model, i have to create a view and then put the query in it and then use the view in that model.
    I couldn't understand this much, if anybody could help me explaining in detail about the views and adding a query in it?
    Thanks
    Gohan

    Hi,
    Please refer the screen short below link
    http://imgur.com/b9sXS
    Right click any of one physial table(RPD physical layer) -> Select Properties -> from the properties windows choose 'Select' as Table type ->
    Please enable feature 'CREATE_VIEW_SUPPORTED' view just go to 'Features' tab and from the available option select 'CREATE_VIEW_SUPPORTED' is checked or not. If it is not checked then check the option.
    can you explain your current model and scenario?
    for example to you can use to fetch two fields from Subqueries,all trypes of joins(inner,left outer,right outer etc..,) its upto you case
    e.x:fetching two tables columns mapping subquery:
    SELECT column1, column2 FROM table1 WHERE column1 IN (SELECT column1 FROM table1
    INTERSECT SELECT column1 FROM table2 )
    SELECT column1, column2 FROM table1,table2 WHERE table1.column1 = table2.column1
    Alternative there is feature call "mulitple subject area" method will work (Union,Union all etc..,)
    Thanks
    Deva
    Edited by: Devarasu on Jun 6, 2012 4:40 PM

  • How to create @icloud Mail and use it as my Apple ID

    My current appleID is @aol email address I used first for my iPod and iTunes but now I have iPad and iPhones and want to create an @icloud address as primary and also use it as my new appleID instead of the one I use now. Never had any @me, @mac or @icloud before, but I've read switching apple IDs may be tricky. Your advise is very welcome. Thank you.

    You can't change the ID/login address on your Apple ID to your @icloud.com address if you already have one.
    However you can create a new Apple ID and iCloud account using a new @icloud.com address if you follow the procedure outlined here:
    https://discussions.apple.com/message/22283348#22283348
    You can only create an @icloud.com address: new @me.com or @mac.com addresses can no longer be created.
    You would need to keep the existing ID for iTunes as purchases cannot be transferred - there's no problem about having different logins for iTunes and iCloud.

  • How to create new rules and using 'From' condition ?

    All,
    I know, rules are a quota max as 256 ko.
    So, my problem is to move all mail from external writer of my directory.
    I want to create a folder Inbox\external where all mail have to be move on except internal mail.
    So I looked at :
    [-From <RecipientIdParameter[]>] ; [-FromAddressContainsWords <MultiValuedProperty>] and [-ExceptIfFrom <RecipientIdParameter[]>]  but, because of quota limitation, I could add all internal exchange recipients.
    Any idea ?
    Thanks

    Hi,
    If you would like to move the emails from external senders to a specific folder using Inbox rule.
    I’d recommend you create a  Dynamic Distribution Group and name it as
    internalrecipients. Then set it as All recipients in the filter tab. Now it is a group which contains all users and contacts in your organization.
    Next, set the Inbox rule in your client as below:
    Click on the Inbox folder and  new a Rule.
    Apply the rules on messages I receive.
    Send only to me.
    Move to the specified folder (new a folder named external).
    Except if from people or public group (internalrecipients).
    Run the rule now on message already in “Inbox”
    Finish.
    See if it works as you expected.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Create a user and use  the objects of another Shema

    Hi all oracle`s gurus
    i need a little help .....
    i, create a shema named "a" that the owner is user_dba and here there are all objects of the aplication but i want all other users of the app can use those objects; the users are created in the database ,
    Thanks

    I would be very leary about granting privileges to PUBLIC, particularly privileges other than SELECT, because most systems end up getting a few special-purpose accounts that shouldn't see everything.
    The standard approach is
    - Create a role
    CREATE ROLE my_application_role;- Grant appropriate privileges to that role. This generally takes the form of a PL/SQL block initially
    BEGIN
      FOR x IN (SELECT * FROM dba_tables WHERE owner = <<schema owner>>)
      LOOP
        EXECUTE IMMEDIATE
          'GRANT select, insert, update, delete ' ||
          '    ON <<schema owner>>.' || x.table_name ||
          '    TO my_application_role';
      END LOOP;
    END'- Grant that role to the user(s) that will be connecting to the database,
    GRANT my_application_role TO some_user- Create appropriate public synonyms for the various objects. Again, this can be a PL/SQL block and can be combined with the block that grants privileges
    BEGIN
      FOR x IN (SELECT * FROM dba_tables WHERE owner = <<schema owner>>)
      LOOP
        EXECUTE IMMEDIATE
          'CREATE PUBLIC SYNONYM ' || x.table_name ||
          '    FOR <<schema owner>>.' || x.table_name;
      END LOOP;
    END'As an alternative to public synonyms, you can set the CURRENT_SCHEMA attribute (potentially in a login trigger) to SCHEMA_OWNER when the users you want to access these objects log in.
    Justin

  • Creating an Intranet and using IIS 6 and recieiving a 403.14 error when trying to access remote servers share.

    I can access the remote shares contents in my browser if I use file:////<server name>/share/filename.file but when I set up a link in the html code, I receive the 403.14 error in the log files.  I also have directory listing set on the IIS 6 webpage
    on our intranet server.
    I am stuck and at a loss... I'm not terribly familiar with IIS...
    Thanks in advance,
    Eric

    Hi,
    Base on my experience, the UNC must use the
    \\+PATH format, in some case if your code is not standard it will cause unknow error, more about the IIS question please post to the IIS forum.
    More information:
    IIS support forum
    http://forums.iis.net/
    Naming Files, Paths, and Namespaces
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    Thanks for your understanding and support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to create a Wallet and use  &  in organization name

    Im trying to create a wallet but my organizacion use & in his name and webcache not allow it
    Any help on this

    sorry the error is not a problem of webcache. The main problem was oracle wallet manager not suport special characters like &
    So oracle sugest use 11g wallet manager and then import on oracle wallet 10g
    Regards

  • Can't add all my movies to iTunes library and use home share

    I tried to enable home share from my computer to my ipad and iphone. I couldn't add all of my movies to the library, just a few was added although i tried to add the whole folder many times.. Is there some filetypes that iTunes doesn't work with?

    Welcome to the Apple Community.         
    Have you looked in home videos

Maybe you are looking for

  • How to embed reports into proposals.. ?

    Hi All, I followed the steps as per the bookshelf "http://supportweb.siebel.com/support/private/content/Bookshelf/78Siebel/books/CorProPre/CorProPre_Proposals10.html" and embedded the report section in to my proposal template section. but the report

  • Word document in forms 6i

    Hi, I need to open a word template when the user selects a template from the list box. The template is having bookmarks and I need to pass the field values into those book marks when the user opens the template. Then, the user should be able to edit,

  • Updating oOrders open quantity

    Hi Experts, I am creating a Delivery Receipt based on a specific Sales Order thru DIAPI. My problem is my Sales Order open quantity per line is not updating when its reference DR quantity is less than on the Sales Order document. Is there a property

  • Oracle Collaboration Suite Slow Performance

    Hi, I have encountered with problem with OCS 10.1.2 with following information: Hardware : DL-380G5 Operating System : OEL 4 update 5 64 bit Oracle Product : Collaboration Suite 10.1.2 The installation has been done in three server as follow: Server

  • Manipulating an existing XML document

    Hi, is it possible to use SAX to parse an XML document and append new elements to it? i know it can be done using DOM but in this case DOM is too expensive so is there any way that the same can be achieved using SAX? Any help is greatly appreciated