How to and why create a package ?

What is the advantages and the impact of using create a package with our classes ?

1) If you are working on a big project, there can be hundreds of classes to keep track of, all being worked on by different developers. Within the project, therefore, it is possible that 2 or more classes can have the same name (how many classes called "HelloWorld" exist??! :-)
Packaging helps the compiler and JVM to distinguish between them
2) Packaging also helps you keep your code organized Packages can be used somewhat like a "directory structure" to group related classes together.
3) Sometimes you need to deploy different apps from the same project (eg a client app and a server app), and those apps won't necessarily need the same support classes (nor will they need all the classes from the entire project). Thus, grouping related classes makes it easier to determine which classes are needed for which deployments, and these can then be easily jarred together.

Similar Messages

  • What's   "...start in Single User  mode"? HOW? and WHY?

    A silly question...
    What's "...start in Single User mode"? HOW? and WHY?
    Can anyone, please explain that to me?
    Cheers!

    Hello Nando,
    The only silly questions are the ones that never get asked
    Have a look in here...
    Single User Mode
    Hope that helps
    Regards
    Ian

  • How to Initiate For Creating Business Package.

    Hi all,
    We donu2019t have NWDI setup in our landscape; therefore I would like to know that how i can initiate for creating business package of custom specific application development using Web Dynpro JAVA and DB Oracle. If anyone has idea about this type of in-house development, please suggest.

    Hi Gautam
    Please setup NWDI for creating custom business pachage.
    Download DTR, CBS and CMS same patch level as your Server and delpoy.
    then Create Software component in System Landscape Directory(SLD) and create custom business package track in the CMS for development using Web Dynpro JAVA
    Hope this will help.
    Thanks
    Arun

  • Windows 8 Packages - How Many and Why ?

    Just to clarify, beyond the regular Windows 8 drivers etc.
    For the "new age" apps I am currently getting the following as needed :
    Lenovo Dependency Package @ 1.5.23.0
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS034404
    Lenovo Settings Dependency Package @ 1.1.0.18
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS031946
    Lenovo Settings Metro Application
    Firstly, why are there two similar dependency packages with completely different version numbers.
    Secondly, what was the other metro app that preload windows 8 people got that we haven't got.
    Thirdly what options are you getting in the Settings App, the Dependency Package (1.5.23.0) installs two things I haven't seen before :
    System Agent Driver and Service + QuickSnip Service - there is no mention of either anyway.
    All in all this rollout is proving to be a bit cloak and dagger - no one knows what is doing what (the very little they do do) and it's all a bit confusing to boot.
    DangerMouse
    Current Machines : T420s/W530/X1CT

    Answered my own question about Quick Snip
    http://www.partnerinfo.lenovo.com/partners/us/resources/windows8.shtml
    Seems it's an app we don't have access to yet, also answered another question of mine - what other apps are there in the preload.
    Other questions still count
    DangerMouse
    Current Machines : T420s/W530/X1CT

  • Rethrowing the same exception - how, when and why?

    Hi,
    I have just gone through the Exception Handling chapter and found don't understand when should I use the rethrowing of same exception?
    e.g.
    catch(NullPointerException e) {
    e.printStackTrace();
    throw e;
    or
    catch(NullPointerException e) {
    e.printStackTrace();
    Throwable changedE = e.fillInStackTrace();
    throw changedE;
    I am not sure how, why and when should I use this syntax?
    Any advice and a given example is much appreciated.
    Thanks in advance.
    gogo

    Think about the information you would want when this exception occurs; if you rethrow the exception then the entire stack trace will be available which will allow you to find the root of the problem more easily than if you have filled in the stack trace at an intermediate point in the call graph. Never throw away information in an exception.
    Note also that fillInStackTrace() does not actually create a new instance of the Throwable. It just returns the same instance but with it's stack trace modified.
    There are two other points to note about your example:
    First, catching NullPointerExceptions or any subclass of RuntimeException (except for the curseworthy NumberFormatException) is generally a bad thing to do. RuntimeExceptions usually indicate that something is wrong with your code or with the VM and catching them is just masking the real problem. They're not like checked exceptions (subclasses of Exception that are not RuntimeExceptions) which can occur because of something 'unexpected' happening in the environment which has nothing to do with bad code and for which recovery from the problem is often possible.
    Second, consider whether you really want to catch an Exception anyway. Exceptions should only be caught when:
    a) you want to try to recover from the problem i.e. you can handle the exception
    b) you want to transform the exception into something more meaningful to client code, i.e. if the exception comes from deep in some library code and you can't handle the exception but the actual class of exception won't be meaningful to the client code, then you might want to create your own Exception subclass and throw an instance of that in place of the original exception. If you do this, then you should chain the original exception so that you still preserve all the stack information and the original message (this is why all Throwables in JDK 1.4 have constructors that take a Throwable 'cause' parameter)
    Lance

  • Just had my new iphone5 and I can't restore my previous setting of my iphone4. Keeps coming up with Error 1140. How frustrating, and why do I go for the first date to have one ??

    Please help ??

    I have this problem on my wife's 4. I see your comment is in 4S, my 4S is fine so far.  Have you taken it to Apple or your service provider?

  • Just got an ipad air and while creating my apple ID with credit card, I got to itunes gift card/ itunes gift section and was asked to supply a CODE to proceed with the form but I don't have the code. please how how can i get the code?

    Just got an ipad air and why creating my apple ID with credit card, a CODE was requested in the itunes gift card/ itunes gift in order to preceed with the form but I don't have the code. Please how can I find the code so as to enable me complete the form successfully. Thanks alot

    The iTunes gift card field is optional, you don't have to fill it in - leave it blank if you don't have a gift card.
    iTunes gift cards are country-specific (they can only be used in their country of issue), and they are not available in all countries - so you might not be able to dill it anyway.

  • How do MIRO and MR8M create Accounting doc?

    Hi guys,
    How MIRO and MR8M create accounting document?
    Does it use any FM or BAPI to create accounting doc? If yes, what FM or BAPI?
    Thanks a lot!
    Rgds,
    Mark

    Hi Mark,
    Try MRM_INVOICE_CREATE or MRM_INVOICE_POST
    Edited by: Joyreen Maceda on Feb 18, 2009 3:59 AM

  • Just installed Creative Cloud how do you remove full cloud package?

    I work in a App packaging role and just created a package for Creative Cloud.  Is there a way to run a mass removal clean up? Or will all items need to be removed individually?
    Looks like the MSI will not do any sort of clean up
    thanks

    Thanks, I know the tool will work well locally. I was looking for something I could push with SCCM or initiate remotely on a machine to clean up the whole lot.
    I suppose I could create a batch file with all the products install codes.

  • How come although iPads are getting more powerful, the iOS apps from apple are so mediocre and just not that great? We spend all this money for the latest ipad and all we get is these $5 video and music apps from apple. Why create the iOS platform and onl

    How come although iPads are getting more powerful, the iOS apps from apple are so mediocre and just not that great? We spend all this money for the latest ipad and all we get is these $5 video and music apps from apple. Why create the iOS platform and only offer so so apps like IMovie and GarageBand ? While other developers are offering much better apps like pinnacle studio for video, Cubasis and Auria for music production, apple has not showed much growth in terms of innovation. While there's nothing wrong with making an app like GarageBand where "anyone " can make a song, how about something for real musicians or an app not so basic as it get for video editing? After spending 0ver $700 on an ipad I'd be willing to spend more than $5 for a better video or audio app.

    First, try a system reset although I can't give you any confidence.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

  • How to create a content profile and Why this need

    how to create a content profile and Why this need

    Hi,
    You will need profiles to control the following behavior:
    - Which metadata to be shown in the checkin form and search form
    - Define default values to certain metadata
    - Make metadata editable, hidden, info only etc
    - Allow the user to see only relevant metadata, for example you could have 50 metadata defined, but all you need for the user to input is 10 for say HR documents, you can show only these 10 metadata for the user to contribute
    HTH
    Regards,
    - Anand

  • When and how to create a package

    I have a doubt about how Oracle loads a package.
    Let's suppose I have a package PACK1 with N procedures inside. When I execute a statement such an EXEC PACK1.PROC3(), does Oracle load all the N procedures of the package PACK1 into the SGA? I ask for that for a simple reason. I usually create a package according to the fact that all the procedures inside that package are "connected" among them in some way. A collegue of mine said me that he would like to put in a same package some more procedures even if they aren't all called among them, but because in some way thay deal with the same topic. Since I think Oracle loads all the package in SGA, I believe it would make sense to put inside a package only the procedures called among them.
    Can you help me?
    Thanks!

    Mark1970 wrote:
    I have a doubt about how Oracle loads a package.
    Let's suppose I have a package PACK1 with N procedures inside. When I execute a statement such an EXEC PACK1.PROC3(), does Oracle load all the N procedures of the package PACK1 into the SGA?Whenever any element of the package is referenced, the whole package is loaded into memory and (assuming it is not aged out) remains in memory for future use.
    I ask for that for a simple reason. I usually create a package according to the fact that all the procedures inside that package are "connected" among them in some way. A collegue of mine said me that he would like to put in a same package some more procedures even if they aren't all called among them, but because in some way thay deal with the same topic. Since I think Oracle loads all the package in SGA, I believe it would make sense to put inside a package only the procedures called among them.You are right. Also if other elements in the package are needed the overhead of calling them is very small, because they are in the same memory area. This means that you can and should group related program units together so that they can share data structures when needed and call each other with minimal overhead

  • Why created package with SE80 can't be found in Transport Connection?

    We want to transport our custom InfoCubes from Developement environment to Test environment:
    RSA1 -> Transport Connection, select an InfoCube we created and drag it over to the right frame, group it by "In Dataflow Before and Afterwards".  The Package column shows it's attached to $TMP that we would have to change it to a custom package that it can be transported over.  We click the Package picture icon with a pencil trying to change the package attached from $TMP to a custom one, but can't find any custom package we created with SE80 from here.  Could someone tell us why?
    Thanks

    hey AHP,
    Yeh, if I run rsdcube and follow the menu you specified, I can assign the InfoCube to the custom package I created with SE80.  I wonder why it's to work in this way?  If clicking the Package picture icon with pencil in Transport Connection doesn't work or successfully to bring up the correct custom package we created, then why SAP has this stupid picture icon over there to mislead our developers?
    You asked me how we created the custom package, we created them with SE80. 
    BTW, someone says that's BASIS work to create package to do the transports in their companies, how about your company?  You don't have to create custom package and just assign the objects to the package BASIS creates for you?
    Also someone says the ideal transport strategy is to group by "Necessary" other than "Dataflow Before and Afterwards", how do you think?
    Thanks

  • How are ePrint apps created and maintained?

    Just bougt a new small HP printer for my home office and discovered ePrint and apps support. And amazed, did not expect this technology in entry level small/home office type printers.
    And immediately new questions on what possibilities this opens up for printing applications
    What is required to create new apps?
    Is it possible to use this technology to add local office apps? I.e. to print site/office specific forms, trivial network interactions and maybe a bit more.
    Is subscription type apps supported/allowed, where the app is only available as part of a third party subscription package?
    A lot can be built around the email based ePrint service alone, but having ability to also do some simple interaction with the user at the printer would open for a wide range of new possible uses.

    Hi,
    Double post, please use:
        http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/How-are-ePrint-apps-created-and-mainta...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • My ipod does not work on my laptop but it works on my PC

    When I plug in my ipod to my laptop, it doesn't load up but when I plug it into my home PC, it starts up right away. I looked through all of the options that are selected on the PC to see if there are any differences but I dont see any.  Maybe I unin

  • Macbook freezes on start up, diskwarrior and/or tiger disks not working

    Hi, My laptop slowed whilst I was accessing my wireless modem via the ethernet cable, it wouldn't restart and I waited an hour, but no luck, so I held down the power button to turn off. Upon turning it on again I got the grey screen, then the apple w

  • Flash player drops frames with playing live h264 frames

    Hi i have been tryin to get to a adobe representative for a long time now regarding this but unfortunately no one responds fast enough. I am facing a terrible issue. When broadcasting h264 live video from a flash based encoder client i notice severe

  • TS4002 rejected the password

    i am getting this message " The iCloud IMAP server "p99-imap.mail.me.com" rejected the password for user ...". I am getting mail fine on my iphone and Ipad, just not thru MAIL.

  • Remove ALL Images from PDF Export?

    I'd like to remove ALL images from a PDF export (Indesign CS6), with the intention of having the smallest file size possible for review. All the images are Photoshop PSDs. I have created a PDF Preset (PDF 1.7) that omits EPS, PDF and Bitmap. That cov