How to organize classes for distribution...

hi have written a program that i would like to distribute for free. i have many user defined classes but i also used the Java Mail Framework and i know that not all users will have that installed on their computer so i must ship all the classes that are part of the Java Mail Framework. actually, i would like to package all the user defined classes in a jar and ship the jar files associated w/ Java Mail (mail.jar, activation.jar). any ideas on how to do this? i guess i'm not sure how the separate jar files can communicate? if what i am doing is not a good idea, what is the best way to include Java Mail w/ my program for others to use. i am lost, any help will be much appreciated. Thank you very much!

If it's a desktop app, put them all in a JAR file, add CLASSPATH to the manifest, and make it executable.
If it's a Web app, put them all in a WAR file.
If it's an enterprise app, put them all in an EAR file.
MOD

Similar Messages

  • How to organize class

    Hi
    I'm new to Java :), and the biggest problem for in Java is to figure how to organize classes. I want to write small program with GUI using Swing. Program should help to collect and search data from simple database. First of all I want to develop logon window. I developed itlike that:
    class LogonWindow extends JDialog implements ActionListeners{
    //draw gui with buttons. When user click on that button authorization should occur.
    //When user is authorized destroy logon window display main window
    So when the user click button it should be authorized and main window displayed. I stuck becouse I don't know how to organize it in classess.
    I would be greatfull for any clue

    This one is for you:
    http://java.sun.com/docs/books/tutorial/java/javaOO/index.html
    http://java.sun.com/docs/books/tutorial/uiswing/
    Good luck,
    Rasmeet.

  • Sales Organization Structure for Distribution Industry

    Hi Experts,
    Need some inputs wrt Distribution Industry
    1. In Distributor set up. how should we set up the different manufactures which supply the products for distribution.
    2. How should we link the manufactures to Products they supply.
    3. How should we link the sales representatives to specific manufactures.
    4. Would it be a wise decision to incorporate manufactures as a division in the organization structure. Or should we map the manufactures as vendors and maintain the Vendor Info records.
    It would be really great if any one can share their experiences wrt to sales organization structure in the Distribution industry especially Pharma Distribution.
    Regards,
    KK

    hi
    this is to inform you that:
    first of all  i have a question to you.  you are manufacturer of products that means are you paying excise duty for manufacturing products or only distributor of products.
    1. In Distributor set up. how should we set up the different manufactures which supply the products for distribution.
    1.a. You can consider if you are manufacturing and distrubuting products
    If you are a manufacturer - tae material FERT if you are a distributor - tae HAWA asa material type.
    2. How should we link the manufactures to Products they supply.
    2.a. the organisation struccture lins each other & MMR also helps to lin 
    3. How should we link the sales representatives to specific manufactures.
    3.a. it may be specific to divisions tae one sales group for each specific divisions.
    4. Would it be a wise decision to incorporate manufactures as a division in the organization structure. Or should we map the manufactures as vendors and maintain the Vendor Info records.
    4.a. manufacturer as a vendor and different products a divisions.
    It would be really great if any one can share their experiences wrt to sales organization structure in the Distribution industry especially Pharma Distribution.
    sales organizations : 2 - domestic & exports
    distribution channels : 3 - retail - super stocists - C & F agents.
    retail/wholesales/distributors/superdistributors/super distributors - all you can consider all into one distribution channel or tae as different distribution channels you have to analyse from reports perspective to have all these.
    divisions - products = divisions lie cardiac - orthopedic to name a few.
    sales office : you can have many as per your requriment.
    sales group : basing on divisions = sales groups
    company code = how many balance sheets you are submitting now to AAI that many company codes you have to have.
    batch management with FIFO or LIFO strategy has to be mandatory in implementation.
    balajia

  • How to find class for object

    I'm trying to find the class for a given object. In Java, I
    could do something like:
    myObject.getClass().getName();
    but I can't find the equivalent in Flex. How do I find the
    class for a given Flex object? I don't know what it might be (other
    than Object), so I don't want to do trial-and-error with "is" or
    "instanceof."
    Thanks!

    Object introspection can be done through the "describeType"
    function.

  • How to use class for Translate..codepage/numer format

    In the Unicode context, TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed.

    this is the class to be used for  Translate…Codepage/number format.statement
    Unicode Error : In the Unicode context, TRANSLATE... CODEPAGE/NUMBER   FORMAT is not allowed.
    Before Unicode
      TRANSLATE T143T-TBTXT FROM CODE PAGE '1100' TO CODE PAGE '1105'.
    After Unicode
       Use class for Translate codepage to codepage.
         Data : g_codepage LIKE tcp0c-charco VALUE '1100'.
    CONSTANTS: c_unicodecp(4) VALUE '1105'.
    PERFORM translate_codepage USING g_codepage
                                     c_unicodecp
                               CHANGING T143T.
    FORM translate_codepage  USING    P_G_CODEPAGE
                                      P_C_UNICODECP
                             CHANGING P_T143T.
      DATA: converter  TYPE REF TO cl_abap_conv_obj.
      DATA: l_out      TYPE string.
      DATA: l_fromcode TYPE cpcodepage.
      DATA: l_tocode   TYPE cpcodepage.
      l_fromcode = P_G_CODEPAGE.
      l_tocode = P_C_UNICODECP.
      CREATE OBJECT converter
        EXPORTING
          incode  = l_fromcode
          miss     = '.'
          broken   = '.'
          use_f1   = 'X'
          outcode  = l_tocode
        EXCEPTIONS
          invalid_codepage = 1
          internal_error   = 2.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
          WHEN 2.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
        ENDCASE.
      ENDIF.
      CALL METHOD converter->convert
        EXPORTING
          inbuff         = P_T143T
          inbufflg       = 0
          outbufflg      = 0
        IMPORTING
          outbuff        = l_out
        EXCEPTIONS
          internal_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
          WHEN 2.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
        ENDCASE.
      ENDIF.
      P_T143T = l_out.
    ENDFORM.                    " translate_codepage

  • How to declare class for library like function

    Hey guys I want to declare class Math and define method subtrction so that i can use it in other class like
    package p1
    public class Math
    Math( ){}
    int Subtration ( int a, int b)
    return (a-b)
    package p2
    import p1.*;
    Public Class Test
    Test()
    int somenumber=Math.Subtration(3,4);
    For some reason I cannot see any methods inside Math class. when i type
    somenumber = Math. it show me only one option and that is 'class' instead of mathods inside Math. any thoughts?
    thx

    Yes I am aware of Math class in java. The question is
    how do i declare a class and call it's method in some
    other class with out declaring an object of that
    class.
    Like I can just call Math.sqrt(4) with out
    specifically declaring Math as an object. I want to
    declare my own class which has some methods I wish to
    call in some other class.MyClass.someMethod(). Just make sure that the methos is actually declared static. I suggest looking up the static keyword to find out what it means.

  • How to organize variables for file saving and scalability?

    Hello,
    I have created several CVI applications that store production data for numerous machines.  To organize the data for file saving I have implemented structures.  This has worked well with one limitation, the inability to scale the structure at a later date without invalidating existing files.  I would like to consider alternative approaches that would allow scalability.
    Here's an example of my current method...
    // Definition of structure per machine.
    struct machine_1
       int  int_param_1, int_param_2, int_param_3;
       double  dbl_param_1, dbl_param2, dbl_param3;
    struct machine_2
       int int_param_1, int_param_2, int_param_3;
       double dbl_param_1, dbl_param2, dbl_param3;
    // Definition of inclusive structure. (Member name and structure tag name are the same.)
    struct
       struct machine_1   machine_1;
       struct machine_2   machine_2;
    } machine_parameters;
    To assign a value to a structure variable:
    // Assign value.
    machine_parameters.machine_1. dbl_param_2 = 77.47;
    Then when it comes time to save the populated structures:
    // Save structure.
    error = fwrite (&machine_parameters, sizeof(machine_parameters), 1, dest);
    The problem comes later when multiple files already exist and one of the machine structures needs an additional variable added.  For example, if I need to add int_param_4 to the machine_1 structure.  Adding this variable will invalidate the previously saved files because they were saved with a different structure and will not be able to be opened with a new structure containing one additional variable due to the structure definition mismatch.
    I have added spare variables per data type to the structures for each machine, but it's a losing game.  If I add 10 spare variables, I end up needing to store 11 more pieces of data.
    Is there a better approach?
    Thanks,
    Aaron T.

    One simple way is to output the data as ASCII comma separated values, with a newline character at the end of each row of data.
    I.E., the only structure to your file data is a "row" of CSV's, with the file containing some number of rows.
    Then, you load the data into Excel, and it will parse the CSV's for you and when it sees the newline, put the next set of CSV's on the next row of the worksheet.
    If you ever need to expand the number of items in a row, you just add them as you generate data, pushing the newline to the right, the extra data  extending the row.
    So you get an Excel worksheet filled with rows of (possibly varying length) data.   So long as you add data at the end of the row when you redefine what you're saving, anything reading the file should see the same stuff that was always there.
    You can write a macro to reformat or parse the CSV's once they're in the spreadsheet.  With Excel 2007 supporting very large worksheets, you can put a lot of data into one.  I think they expose a C interface for writing fast data manipulation of cell data now too - sort of a fast macro from the Excel viewpoint.  I think the number of columns is 16384 and 1 million rows in a "Big Grid". The Excel 2007 engine is multi-threaded and you can tell it how many cores to use on a multicore machine.
    So the only problem I see is the loss of local structure (your C structs get serialized and get concatenated to one another) but you could re-introduce the structure with a macro.
    Or, if you were to write out serialized binary values and then view the file data using a hex editor like Neo, you can tell Neo what your C structs were and it will pick up binary file data and put it back into the C structs for viewing.
    Or use MatLab to read the CSV's and reformat it.
    Or use the CVI SQL interface and write it out as database records.  I think the SQL toolkit costs extra, maybe it comes with the FDS. 
    Menchar

  • HT2486 How can I send an email to all of the email addresses associated with one contact? Similarly, in regard to group lists, how do you include for distribution all email addresses associated with each contact in the group?

    Often times there are multiple email addresses associated with a single contact in address book.  How can I included all of these email addresses when creating an address book group?

    Don't be surprised.
    Apple offers free, basic Mail and Address Book apps and creates paid, more sophisticated solutions, also allowing Developers to provide more sophisticated solutions for sale in the marketplace.
    When I need to repeatedly email to multiple contacts, I create a blank draft email, and use the Address Book button to list the appropriate address book group. With the Address Book window open, it's easy to click to add multiple email addresses for a single contact name. Each is added to the message email address list. Then I save that blank email to iCloud Drafts, and it retains the email addreses I've entered. Next time I need to send a message I double-click on it in Drafts to open it, and drag it to one of my other email accounts to add Subject and details, then send from the other account.
    Message was edited by: kostby

  • How to load classes for a particular package

    I have a package name say com.test
    i need to get the names of all the classes starting with "Test" under this package. Also, i need to get the names of all the methods starting with "test" in each of these classes.
    ideas/suggestions welcome :)
    cheers
    yogesh

    Kaj,
    thnx for ur time :)
    i am developing a testing framework for our web applications. all our applications wd require to have com.test as the package which will contain all the JUnit test classes. the package name (com.test) will be provided by the tester thru a properties file. my framework will load all the classes (and also fetch the method names starting with "test" in those classes) and display them on a gui in a html form. the tester will just select the junit test cases he wants to run and my framework will expose this service thru a servlet. the servlet will then invoke all the methods selected by the tester via reflection.
    if the way i want to do it is not possible cd u please suggest any alternatives ?
    cheers
    yogesh

  • How to organize codeline for both java ME and java SE?

    Hi,
    I am working on a project that requires a library for java ME and java SE versions, I wonder what is the best practice for codelines
    1) put ME and SE source in different directory. If some java files are identical, just put seperate copy and maintain them seperately.
    or
    2) create a "common" directory and put common files in it. create a ME and SE directory for java files that ME, SE are different
    or
    3) Use one directory. Try to make ME and SE java files be the same. i.e. only use java 1.1 features and a limited util classes (like not use HashMap, ArrayList etc... for SE version)
    I wonder what is good for easy development and easy sustaining?

    If it's a desktop app, put them all in a JAR file, add CLASSPATH to the manifest, and make it executable.
    If it's a Web app, put them all in a WAR file.
    If it's an enterprise app, put them all in an EAR file.
    MOD

  • How enable material class for Material Advance Search in MMnn transaction?

    Hello,
    Isn't possible to include material characteristics in Advance Search (via TREX) for every material fields in ECC? So I can enter material characteristics value in 'Full Text Search' field of material 'Advance Search for Material Using Search Engine' searchelp in order to find material that I want.
    I tried to include BUS1088 in SES_ADMIN transaction and succesfully indexed it. But I still can't search with characteristic.
    Would you all help me, please.... Thanks.
    Regards,
    Zam

    Hi Colleague,
    No. This function is not provided in the R/3 System. Only one record is taken into account during the free goods determination with the existence of several valid condition records. This record is the one with the largest minimum quantity. For this record the system only generates one free goods subitem.   
    Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: #eWith material 1, material 2 and material 3 are free of charge#e or #eIf material 1 and material 2 are ordered at the same time, then material 3 is free of charge#e.                        
    You can refer FAQ note 549963 which clarifies this point.
    I hope it can be helpful.
    Regards
    Ruy Castro

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to organize j2me classes into packages?

    Hello!
    I'm using Wireless Toolkit 2.5.2 and I have got a question about it.
    Does anybody know, how to organize j2me classes into packages?
    As far as I know, all source files should be placed inside WTK_home_directory\apps\my_project\src folder.
    Although it is possible to create arbitrary folder structure (for example, src\com\my_company\www\my_package) and successfully compile the project,
    it's not possible to run it on the emulator or any target device. Trying to do it, I get ClassNotFound exception.
    It's not surprisingly, because virtual machine on the device doesn't know, where to look for desired classes.
    So the question is how to add new entries to the device classpath (of course, if it exists)?
    And is it possible to configure it through application descriptor (jad) file somehow?
    Any ideas, references, descriptions?
    Thanks in advance,
    A.

    Hello!
    So, I have found the solution and this question is not actual any more.
    The solution is quite simple - you have to properly configure application jad-file.
    It can be done like this (in ktoolbar):
    1. Open project settings from main menu (Project - Settings).
    2. Then go to MIDlets tab.
    3. There you have to change value in "*class*" column (for example, to smth like this - com.my_company.www.my_package.my_midlet_class_name).
    4. Press Ok button.
    Having done these steps, you will be able to have any package structure you need
    (because after it AMS on the device will know where to look for your application class files).
    A.

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • How to find classtype and class for a material.

    Hi,
    How to find classtype and class for a material.
    which table contains this data.
    Thanks
    Kiran

    Hi Kiran,
    Check below sample code. Use this BAPI which will give all info about the class for the material.
      DATA:      l_objectkey_imp    TYPE bapi1003_key-object
                                         VALUE IS INITIAL.
      CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
                                         VALUE 'MARA',
                 lc_classtype_imp   TYPE bapi1003_key-classtype
                                         VALUE '001',
                 lc_freight_class   TYPE bapi1003_alloc_list-classnum
                                         VALUE 'FREIGHT_CLASS',
                 lc_e               TYPE bapiret2-type VALUE 'E',
                 lc_p(1)            TYPE c             VALUE 'P',
                 lc_m(1)            TYPE c             VALUE 'M'.
      SORT i_deliverydata BY vbeln posnr matnr.
      CLEAR wa_deliverydata.
      LOOP AT i_deliverydata INTO wa_deliverydata.
        REFRESH: i_alloclist[],
                 i_return[].
        CLEAR:   l_objectkey_imp.
        l_objectkey_imp = wa_deliverydata-matnr.
    *Get classes and characteristics
        CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
          EXPORTING
            objectkey_imp         = l_objectkey_imp
            objecttable_imp       = lc_objecttable_imp
            classtype_imp         = lc_classtype_imp
    *   READ_VALUATIONS       =
            keydate               = sy-datum
            language              = sy-langu
          TABLES
            alloclist             = i_alloclist
    *   ALLOCVALUESCHAR       =
    *   ALLOCVALUESCURR       =
    *   ALLOCVALUESNUM        =
            return                = i_return
    Thanks,
    Vinod.

Maybe you are looking for

  • From G3 or G4 to duo core

    can anyone tell me if I will be able to use software from my G3 or G4 on one of thenew macbook duo core machines?? Am thinking of up grading as my ibook is very old and well worn but don't want to have to buy a ton of new software.

  • I recently purchased a powerbook 1400c/133 at a yard sale and need to know where to find a 24v,1.9a adapter to get it started?

    I recently purchased a macintosh powerbook 1400c/133 at a yard sale and was wondering where i could get a 24volt,1.9a adapter to get it started?

  • Lightroom Not Regonising Photoshop CS2.

    Hi all Just selected an image and others in Lightroom 1.3 and when you right click my option to edit in Photoshop is no longer their. I only get the option to use Windoes Explorer. When I go into Edit> External editing, it states Photoshop is not fou

  • Touchsmart iq790uk upgrade

     will my touchsmart iq790uk support an upgrade from windows 7 (32 bit) to windows 7 (64 bit) and also support a memory upgrade from 4gb to 8gb without there being any conflicts. This question was solved. View Solution.

  • Coredump during installation of iAS 6 SP4 on Solaris 2.6

    We have iAS 6 sp4 and iWS 6 sp1 on Solaris 2.6 (updated patches!). We can install iWS, ldap, admin server, but if we install iAS itself we get a coredump right after enter the ports etc, before he starts to extract the data: Finished with gathering o