How to create executable programs

How can I create an executable program using J2SDK 1.2.2?
Thank you

There are some programs that can do what you are looking for but most of them just include the JRE in the project and make a small wrapper .exe that calls it.
I agree with MarcinSc - you should make your friends install the JRE even for their own good.

Similar Messages

  • How to create executable jar files??

    how to create executable jar files??
    thx :)

    Using JAR Files to Deploy
    http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava2/jar.html#jar

  • HELP! PDF objects - How to create a program line object?

    Hi Experts,
    I would like to know how to create a Program lines object (icon cog wheels). I need to create additional coding inside the context tab but when I try to right click on a folder --> create -->graphic,address,text,alternative...single record... No
    program lines can be created.
    Hope someone could help me.
    Thanks,
    Jeff

    There are two ways of doing it, depending on what you want to accomplish. Both require that you edit the file ~/.bashrc (I assume you use bash)
    1) If the application places all the executable files in a given directory (let's say /opt/Application/bin/), you can access all those executables directly by simply telling your shell where to look (in the same way the shell automatically looks for executable files in eg. /usr/bin). In ~/.bashrc, you would have to add a line that looks like this:
    PATH="$PATH:/opt/Application/bin"
    2) If you just want to make a traditional "shortcut" that executes a given command, this can be done with alias. Add this command to your ~/.bashrc:
    alias shortcut="some command"
    In this case, typing shortcut into a terminal will be interpreted just like if you had typed some command instead.
    In order to try out these changes, either restart your terminal or run this command:
    source ~/.bashrc
    [EDIT]
    I was obviously beaten to it
    Last edited by Peanut (2009-05-26 23:12:47)

  • How to create a program that will accept a series of strings of 0 and 1 onl

    how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.

    Isn't one thread enough for your homework?
    http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155

  • How to create a program that accepts 5 digits from the user between 0 and 9

    how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..

    You can use a scanner to get user input from the command line.
    import java.util.*;
    public class Test {
        private List<Integer> list;
        private Scanner in;
        public static void main (String... args) {
            new Test ();
        public Test () {
            list = new LinkedList<Integer> ();
            in = new Scanner (System.in);
            for (int i = 0; i < 5; i ++) {
                System.out.format ("Please enter a number (%d more): ", (5 - i));
                list.add (in.nextInt ());
            Collections.sort(list, new Comparator<Integer> () {
                public int compare (Integer i1, Integer i2) {
                    return i2 - i1;
            System.out.println (list);
    }

  • How to Create another program instance in iphone from a COPY previous proj

    Say I've created one program by starting Xcode afresh.
    Now I want to create another program using the previous program as a base, I copy and paste the project folder and rename it, unfortunately, when I run the program, it replaces the previous program in my iPhone.
    How do I tell xcode it's a new program ?
    Message was edited by: Bracer-J

    Thank you

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How to created Freely Programmed F4 help in Select Options

    hi,all
       I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
      Thanks and Best Regards

    Hi Haung,
    You need to use FREE_HELP not the component name.
    Modify you code as below:
       LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
      wd_this->M_HANDLER_V->add_selection_field(
          i_id                         = 'ZCYPHDATE'
          it_result                    = LT_RANGE_TABLE_V
          i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
          i_value_help_id              = 'FREE_HELP'
          i_no_intervals               = abap_false ).
    Hope this helps you.
    Regards,
    Rama

  • How to create SAPScript program? step-by-step process?

    Hi everybody
    Can anybody please provide some information on how to create SAP Script program?
    Please provide step-by-step process if possible as examples given in abap certification program
    thanks

    Hi
    here is the sample program for SAP SCRIPTS
    *& Report  ZHMR_POANNEX                                                *
         MODULE Materials Management
          Objective :Calling program for ANNEXURE FOR P.O
          text ................................................
          text ................................................
          text ................................................
    REPORT  ZHMR_POANNEX                            .
    TABLES :EKKO,STXH.
    PARAMETERS
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE text-001.
    PARAMETERS : P_EBELN LIKE EKKO-EBELN.
    SELECTION-SCREEN END OF BLOCK BLK.
    DATA DECLARATION
    DATA : V_LIFNR LIKE EKKO-LIFNR,
           V_AEDAT LIKE EKKO-AEDAT,
           V_NAME  LIKE LFA1-NAME1,
           V_ADRNR LIKE LFA1-ADRNR,
           V_BSTYP LIKE EKKO-BSTYP.
    DATA : BEGIN OF IT_ADRC OCCURS 0,
           NAME1  LIKE ADRC-NAME1,
           STREET LIKE ADRC-STREET,
           CITY1  LIKE ADRC-CITY1,
           POST_CODE1 LIKE ADRC-POST_CODE1,
           COUNTRY LIKE ADRC-COUNTRY,
           END OF IT_ADRC.
    DATA : IT_TEXT LIKE TLINE OCCURS 0 WITH HEADER LINE,
           IT_NOTE LIKE TLINE OCCURS 0 WITH HEADER LINE,
           IT_DEL  LIKE TLINE OCCURS 0 WITH HEADER LINE,
           IT_SHIP LIKE TLINE OCCURS 0 WITH HEADER LINE.
    DATA : V_ID  LIKE THEAD-TDID ,
           V_LAN LIKE THEAD-TDSPRAS,
           V_NAME1 LIKE THEAD-TDNAME ,
           V_OBJ LIKE THEAD-TDOBJECT VALUE 'EKKO',
           N1 TYPE I,N2 TYPE I,N3 TYPE I ,N4 TYPE I.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = P_EBELN
    IMPORTING
       OUTPUT        = P_EBELN.
    TO GET VENDOR NAME ,,PO DATE
    SELECT SINGLE
                 LIFNR
                 AEDAT
                 BSTYP
                 FROM EKKO
                 INTO (V_LIFNR, V_AEDAT,V_BSTYP)
                 WHERE EBELN EQ P_EBELN.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE NAME1 ADRNR
                  FROM LFA1
                  INTO (V_NAME,V_ADRNR)
                  WHERE LIFNR EQ V_LIFNR.
      IF SY-SUBRC EQ 0.
    SELECT NAME1
            STREET
            CITY1
            POST_CODE1
            COUNTRY
            FROM ADRC
            INTO CORRESPONDING FIELDS OF TABLE IT_ADRC
            WHERE ADDRNUMBER EQ V_ADRNR.
    IF SY-SUBRC NE 0.
    ENDIF.
      ENDIF.
    ENDIF.
    *TO GET HEADER TEXT
      IF V_BSTYP = 'L'.
        V_ID = 'L01'.
      ELSEIF V_BSTYP = 'F'.
        V_ID = 'F01'.
      ENDIF.
      V_NAME1 = P_EBELN.
    SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
                                      TDNAME EQ V_NAME1 AND
                                      TDID EQ V_ID .
      IF SY-SUBRC EQ 0.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            = V_ID
        LANGUAGE                      = SY-LANGU
        NAME                          = V_NAME1
        OBJECT                        = V_OBJ
      TABLES
        LINES                         = IT_TEXT.
    ENDIF.
    *TO GET HEADER NOTE
      IF V_BSTYP = 'L'.
        V_ID = 'L02'.
      ELSEIF V_BSTYP = 'F'.
        V_ID = 'F02'.
      ENDIF.
    SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
                                      TDNAME EQ V_NAME1 AND
                                      TDID EQ V_ID .
      IF SY-SUBRC EQ 0.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            = V_ID
        LANGUAGE                      = SY-LANGU
        NAME                          = V_NAME1
        OBJECT                        = V_OBJ
      TABLES
        LINES                         = IT_NOTE.
    ENDIF.
    *TO GET TERMS OF DELIVERY
      IF V_BSTYP = 'L'.
        V_ID = 'L05'.
      ELSEIF V_BSTYP = 'F'.
        V_ID = 'F05'.
      ENDIF.
    SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
                                      TDNAME EQ V_NAME1 AND
                                      TDID EQ V_ID .
      IF SY-SUBRC EQ 0.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            = V_ID
        LANGUAGE                      = SY-LANGU
        NAME                          = V_NAME1
        OBJECT                        = V_OBJ
      TABLES
        LINES                         = IT_DEL.
    ENDIF.
    *TO GET SHIPPING INSTRUCTIONS
    IF V_BSTYP = 'L'.
        V_ID = 'L06'.
      ELSEIF V_BSTYP = 'F'.
        V_ID = 'F06'.
      ENDIF.
    SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
                                      TDNAME EQ V_NAME1 AND
                                      TDID EQ V_ID .
      IF SY-SUBRC EQ 0.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            = V_ID
        LANGUAGE                      = SY-LANGU
        NAME                          = V_NAME1
        OBJECT                        = V_OBJ
      TABLES
        LINES                         = IT_SHIP.
    ENDIF.
    OPEN FORM
    DESCRIBE TABLE IT_TEXT LINES N1.
    DESCRIBE TABLE IT_NOTE LINES N2.
    DESCRIBE TABLE IT_DEL LINES N3.
    DESCRIBE TABLE IT_SHIP LINES N4.
    IF NOT ( N1 = 0 AND N2 = 0 AND N3 = 0 AND N4 = 0 ).
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       FORM                              = 'ZHML001_POANNEX'
       LANGUAGE                          = SY-LANGU.
    else.
    message 'For This P.O no annexure is maintained.' type 'I'.
    endif.
    WRITE FORM
    LOOP AT IT_ADRC.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'HEADER'
       WINDOW                         = 'HEADER'.
    ENDLOOP.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'FOTTER'
       WINDOW                         = 'FOTTER'.
    IF NOT IT_TEXT[] IS INITIAL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEXT1'
       WINDOW                         = 'MAIN'.
    LOOP AT IT_TEXT.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEXT'
       WINDOW                         = 'MAIN'.
    ENDLOOP.
    ENDIF.
    IF NOT IT_NOTE[] IS INITIAL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'NOTE1'
       WINDOW                         = 'MAIN'.
    LOOP AT IT_NOTE.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'NOTE'
       WINDOW                         = 'MAIN'.
    ENDLOOP.
    ENDIF.
    IF NOT IT_DEL[] IS INITIAL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'DEL1'
       WINDOW                         = 'MAIN'.
    LOOP AT IT_DEL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'DEL'
       WINDOW                         = 'MAIN'.
    ENDLOOP.
    ENDIF.
    IF NOT IT_SHIP[] IS INITIAL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'SHIP1'
       WINDOW                         = 'MAIN'.
    LOOP AT IT_SHIP.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'SHIP'
       WINDOW                         = 'MAIN'.
    ENDLOOP.
    ENDIF.
    CLOSE FORM
    CALL FUNCTION 'CLOSE_FORM'.
    Reward if it is helpful.
    Regards,
    Sangeetha.A

  • How to create one program from few programs

    Hi.
    I have for example 5 programs and I would like to create one program in which i could switch between this 5 programs. One of these should be running all the time and the others should start when i will switch to them. I need solution or something like that.
    Thanks.

    You can do a search on "dynamically called" sub vi's.
    See the tiny example below of how to call it.  You can actually call multiple VI's and they will run in parallel, although you have to be careful when doing this.
    You would have to wire False to  "Wait till done"
    You can stop/close the VI using property node.  If you wired False to "Auto Dispose Ref", then make sure you do close ALL references before exiting your program.
    Message Edited by Ray.R on 04-27-2010 08:19 AM
    Attachments:
    callByReference.png ‏16 KB

  • How to create a program in alv.

    Hi Experts,
    I am new to Alv programming. I am learning alv programming myself.I dont know anything about that. so can u please guide me how to create an alv program. give some documents to learn about alv.i ve searched it but i could not find any subsequent documents or materials here. please help me to learn.
    My some doubts are below.
    1.why are we using Type pools?
    2.How many type pools are there?
    3. give some links to learn alv.
    Thanks in advance.
    Urs
    Goreddem.

    HI,
    There are basically two types of ALV reports are there
    list and grid.
    List mode is good old list processing with standard functionalities,
    and grid mode is using a new OCX object displaying grids.
    For list check this
    http://www.scribd.com/doc/7345300/basic-ALV-1-Step-by-Step
    For Grid checkout this might be helpful.
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    http://help.sap.com/saphelp_sm32/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm
    Regards and Best wishes.

  • How to create executable file in labview 6.0

    i have a labview VI file in 6.0 and now i need to create an executable file for that VI.

    The Application Builder is an add-on package to LabVIEW and is available from National Instruments. You can use the LabVIEW Application Builder to create stand-alone executable programs, so that you do not need a copy of the LabVIEW development environment to run them. The Application Builder ships with the LabVIEW Professional Development System, but it may be purchased separately if you own the LabVIEW Base Package or the LabVIEW Full Development System.
    This URL will help you determine if you have App Builder:
    http://www.ni.com/support/labview/toolkits/appbuild/
    This URL will step you through creating an executable:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/4EF810EE05BEF63C86256BF30062EC31?opendocument
    Let me know if you need more help.

  • How to create a program in J2EE using eclipse

    Hello
    I am planning to start with J2EE. i have downloaded glassfish v3, maven, derby and JUnit and eclipse. But i am not getting how to start with it.
    please guide me.i am following apress publication's Antonio Goncalves. How to write a program , how to deploy with glassfish then.
    really confused..
    thanking in advance

    abhinav291988 wrote:
    Hello
    I am planning to start with J2EE. i have downloaded glassfish v3, maven, derby and JUnit and eclipse. But i am not getting how to start with it.
    please guide me.i am following apress publication's Antonio Goncalves. How to write a program , how to deploy with glassfish then.
    really confused..
    thanking in advanceIn terms of learning how to use Eclipse [http://eclipsetutorial.sourceforge.net/]
    In terms of learning how to use Java EE [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    In terms of how to write a program [http://java.sun.com/docs/books/tutorial/]
    If you have a specific question to ask, then please repost. My suggestion would be to take the Eclipse tutorial to familiarize yourself, and then follow along in your book. If the book is too advanced, buy one aimed more at beginners. Online tutorials should also help you out.
    - Saish

  • How to: Create a Program with the rs232 Device -Magcard Reader Writer

    Hi Guys!. 
    Im New in using VB.net 2010 express 
    and it is my first time to do a project with a device needed to incorporate with it.
    I have a device Magnetic Card Reader writer and a i want to create a connection and UI 
    that interacts with the device alone without using the default application and process.start command.
    the main problem i want to be solve is to perform the connection and commands on a single form by allowing the user to read and write the data on a single form. 
    what i want to do is to create a main form that executes the commands needed to activate the event or allows the user to use the device w/o using the software. with the use of text box and button, while the read executes automatically if the card is swipe
    to it end fill out the focus textbox given.
    i have here a document that discuss commands for the device and i think it is needed to successfully connect all the process from device to the system
    can you help me to do this project? tnx.. :)

    Hi,
    Welcome to MSDN.
    I am afraid that this is not the proper forum for this issue, since each  Magnetic Card Reader writer has its API for developers.
    You could consider getting supports by connecting with the publisher of that Magnetic Card Reader writer which should have the sample about using its API.
    In addition, I did a research, you could refer to
    Build a .NET Class for Serial Device Communications with P/Invoke to get how to communicate with that serial device.
    Thanks for your understanding.
    Regards.
    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.
    Click
    HERE to participate the survey.

  • How to create executable jar in eclipse using linking in compiler

    Hi,
    I have a project in Eclipse. I wrote already an ant build file for creating an executable jar which includes all project files.
    Now I want to create a second executable jar which is a subset of the project (a limited number of classes are necessary).
    I have a main class and I was looking for a way to generate a jar file which includes the main class and all the depending classes.
    Is there a way to do it? With ant or with another tool?
    Is it possible to compile a project given a main class, and include all depending classes?
    Regards,
    Biebel
    Edited by: biebel1975 on Jan 7, 2009 10:21 AM

    biebel1975 wrote:
    Some more information:
    When I compile all the classes, the jar file is +/- 3.5Mb inclusive the server side logic.
    The subproject I want to build, should be less then 1Mb (Only some screens and beans, no business logic ((only +/- 10% of the projects code) )).
    My question is: How can I create a executable jar with only the necessary class files which depends on the main class. (Linked with the imports).
    Is there a tool to do that? Can it be done with an ANT script? If so, how does the script looks?
    What are you talking about?
    You already said that you are using Ant.
    Ant uses script files.
    Since you have one with X items in it and you want something new with X-Y items in it the obviously it would make sense to construct an ant script that does less than the other ant script.
    The following provides a huge amount of information about Ant.
    [http://ant.apache.org/resources.html]
    Other than that no one can tell you want your Ant script will look like except that it will do less than the one that you already have.

Maybe you are looking for

  • Won't charge, won't sync new content...

    Long story short here... my iPod stopped working about 4 months ago. Meanwhile, the computer it was synched on, my Vista computer, went belly up. I drug my old XP computer out of the closet and booted it to satisfy my surfing needs. Meanwhile, there

  • How to do sum when using union

    hi, i am getting following example data from a query which uses UNION which is mandatory. is there a way to do sum of Units column to get a single row ? hire date units 01.08.2003 1,00 01.08.2003 12,50 like to see as a single row 01.08.2003 13,50 rgd

  • How many 11gR2 RAC instance servers would be needed?

    On the shared SAN drive - there will be as many as 6 11gR2 databases. For 2 node RAC instance servers - how many instance servers would work fine - are two separate servers needed for each database?

  • What happens in the background when a job is scheduled!!!

    Hi,    Can anyone tell me what exactly happens in the background in SAP when a job is set to "Scheduled" ( sm37) . Can v see the code executed in the background during the transtion from " Scheduled" state of a job to" Cancelled" to "Complete" state.

  • MDM Price are not revisited when SC qty is changed

    Hi Friends, We have a business scenario where in Qty based price scales are maintained in MDM catalogue for eg. Product A Qty 1           Price 1000 Qty 10      Price 100 Qty 100      Price 10 Qty 1000      Price 1 Shopper selects Product A from cata