Best way to package and run java in exe

I've made a java program (using swing) and I want people to use it, obviously not every one will compile it so what is the best way to turn my code into a .exe for example? so that anyone can run it

I've used JSmooth to make exe file from jar file, and it worked good. It was so along ago though I can't recall how to use it anymore.
Here's an example how to make a jar file from command line
http://forum.java.sun.com/thread.jspa?threadID=740310&messageID=4246794#4246794
There are plenty of others that can be found by using the search.
kari-matti
Message was edited by:
kari-matti

Similar Messages

  • Best way to Export and Run a CS2 action/plug-in and save to a JPG?

    Can someone help me with this? I am new to actions and droplets and LR/CS2 for that matter. :) sorry if this is basic beginner questions.
    Please let me know if this is not correct?
    * My assumption is I will get the best quality if I Export as a PSD,16-bit,300ppi file and then run my CS2 Plug-in and action ... then save to a JPG?
    If this is true ... this is my question.
    1) In LRv1 ... how do I Export the file as a PSD 16-bit ... and have a Action/droplet that will ultimatly save a JPG for me ... in another folder labled JPG?
    (prefer not to have a bunch of psd files that I have to go back and delete.
    2) p.s. I also would like to know I can do the same thing ... but this time configur my Action/droplet to save a "minimize embedded metadata' sRGB, constrained to 800px ... "save for WEB" JPG ... in a folder named WEB.
    3) The key question here "I guess" is when Exporting from LRv1 .. and running a action on LR Export ... Do I have to Export the "Same" type/size of file I plan to End up with???
    * So, If I want to end (after the action/droplet) with a 800x600 sRGB I need to Export it that way ...then LR will Run my Plug-in,& Sharpening Action on a smaller , lower bit file?
    Thank you all, who have helped me on LR
    * I am "trying" to automate LR ... my hope is true time savings :)

    I've used JSmooth to make exe file from jar file, and it worked good. It was so along ago though I can't recall how to use it anymore.
    Here's an example how to make a jar file from command line
    http://forum.java.sun.com/thread.jspa?threadID=740310&messageID=4246794#4246794
    There are plenty of others that can be found by using the search.
    kari-matti
    Message was edited by:
    kari-matti

  • Best way to control and run multiple (up to 20) processes independantly in LV

    Hi all, 
    I'm trying to build an application in LV to independantly control and run multiple (up to 20) processes, ie, it should be able to start and stop any of the processes at any given time. What would the best way to code for this? Off the top of my head would be to use a unique notifier to control each of the process, but I'm thinking that the code upkeep may be a handful with this number of notifiers being defined. Are there better ways of doing this?
    Appreciate any help and insight on this.Thanks a bunch in advance!
    Solved!
    Go to Solution.

    I forgot some more important questions:
    How large is your development group?
    How much "discipline" do you want to program into the Process Commands framework? For instance, is it OK for any VI to command a process into a certain state, or should your program generate a broken wire or run-time error if a command is sent from a non-authorized source?
    Where do your needs fall on this spectrum: simplicity that gets the job done and the product out the door and will probably not need much maintenance or upgrading, or flexible framework that will likely undergo multiple upgrades or fall into the hands of multiple developers?
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Plsql best way to store and run generated sql

    Oracle 11g
    I found a script on a web site that generates a bunch of sql to do basic data profiling on a set of tables (I've include 1 step in the script below that profile date columns ..see below). I'm currently having trouble with buffer overflows when I process a more than 5-10 tables. I'm looking for a better way to temporarily store the result set and execute the resulting sql. I don't have access to the server so using utl_file is not an option. Can I some how append the sql to a temporary clob varable? Any suggestions would be very helpful.
    declare
    t varchar2(2000);
    cursor c1 is select distinct owner,table_name from all_tab_columns
    where table_name in ('PS_F_BEGIN_BAL','PS_F_KK_ACTIVITY','PS_F_KK_ACT_FS','PS_F_KK_JOURNAL'
    ,'PS_F_KK_BUD_ASSOC','PS_F_KK_BALANCES','PS_F_KK_ENCUMRANCES','PS_F_KK_EXCEPTION'
    ,'PS_F_KK_FS_ALLOC','PS_F_KK_FS_RCVD','PS_F_KK_OVERRIDES','PS_F_KK_TRANS_LOG','PS_F_CLEDGER'
    ,'PS_F_FLOWS','PS_F_JOUNRAL','PS_F_LEDGER'
    begin
    t := 'INSERT INTO DATA_PROFILE_COL_SUM ';
    for i in c1 loop
    DBMS_OUTPUT.PUT_LINE(T);
    ----date
    FOR MYSQLTEXT IN (SELECT
    'select '
    || '''' || C.table_name || '''' || ' as tname, '
    || '''' || C.column_name || '''' || ' as cname, '
    || '''' || C.data_type || '''' || ' as data_type, '
    || '''' || nvl(c.data_length, 0) || '''' || ' as data_length, '
    || '''' || nvl(c.data_precision, 0) || '''' || ' as data_precision, '
    || '''' || nvl(c.data_scale, 0) || '''' || ' as data_scale, '
    || '''' || c.nullable || '''' || ' as nullable, '
    || '''' || nvl(c.num_distinct,0) || '''' || ' as num_distinct, '
    || '''' || nvl(c.density,0.0) || '''' || ' as density, '
    || '''' || nvl(c.num_nulls,0) || '''' || ' as num_nulls, '
    || '''' || nvl(c.char_col_decl_length,0) || '''' || ' as col_length, '
    || '''' || nvl(c.avg_col_len,0) || '''' || ' as avg_col_length, '
    || '''' || nvl(c.char_length,0) || '''' || ' as char_length, '
    || '''' || nvl(tblc.comments, 'NONE') || '''' || ' as table_comments, '
    || '''' || nvl(colc.comments, 'NONE') || '''' || ' as column_comments, '
    || ' count(*) as rcount, min('
    || c.column_name || ') as min_date, max('
    || c.column_name || ') as max_date, '
    || ' null as min_integer, null as max_integer, '
    || ' null as min_number, null as max_number, '
    || ' null as min_varchar2, null as max_varchar2, min(length('
    || c.column_name || ')) as min_len, max(length('
    || c.column_name || ')) as max_len, sysdate'
    || ' from '
    || C.owner || '.' || C.table_name
    || ' ' || CHR(13) || chr(10) || ' UNION ALL ' || chr(13) || chr(10) AS MYSQL
    from sys.all_tab_columns c
    inner join sys.all_tables t
    on c.table_name = t.table_name
    and c.owner = t.owner
    left outer join sys.all_tab_comments tblc
    on t.owner = tblc.owner
    and t.table_name = tblc.table_name
    left outer join sys.all_col_comments colc
    on c.owner = colc.owner
    and c.table_name = colc.table_name
    and c.column_name = colc.column_name
    where c.owner = I.OWNER
    and c.data_type = 'DATE'
    and c.table_name = I.TABLE_NAME
    LOOP
    -- utl_file.put_line(f,MYSQLTEXT.MYSQL);
    DBMS_OUTPUT.PUT_LINE(MYSQLTEXT.MYSQL);
    END LOOP;

    The buffer overflow id beacause of dbms_output. the max limit of the string is 255.
    It will not stop you from inserting or executing the sql dynamically.
    you can run dynamic sql by
    execute immediate 'your sql statement';if you want dbms_output to display allof it you have to use a loop. Look at the followinmg example
    DECLARE
       loopcntr       NUMBER := 1;
       vextend        NUMBER := 255;
       l_sql          VARCHAR2 (32767) := RPAD ( 'ORACLE', 1000, 'AB');
    BEGIN
       WHILE loopcntr < LENGTH (l_sql)
       LOOP
          DBMS_OUTPUT.PUT_LINE (SUBSTR ( l_sql, loopcntr, vextend));
          loopcntr    := loopcntr + vextend;
          vextend     := LEAST ( 255, LENGTH (l_sql) - vextend);
       END LOOP;
    END;G.

  • Best Practices for Packaging and Deploying Server-Specific Configurations

    We have some server-specific properties that vary for each server. We'd
    like to have these properties collected together in their own properties
    file (either .properties or .xml is fine).
    What is the best-practices way to package and deploy an application (as an
    ear file), where each server needs some specific properties?
    We'd kind of like to have the server-specific properties file be stored
    external to the ear on the server itself, so that the production folks can
    configure each server's properties at the server. But it appears that an
    application can't access a file external to the ear, or at least we can't
    figure out the magic to do it. If there is a way to do this, please let me
    know how.
    Or do we have to build a unique ear for each server? This is possible, of
    course, but we'd prefer to build one deployment package (ear), and then
    ship that off to each server that is already configured for its specific
    environment. We have some audit requirements where we need to ensure that
    an ear that has been tested by QA is the very same ear that has been
    deployed, but if we have to build one for each server, this is not
    possible.
    Any help or pointers would be most appreciated. If this is an old issue,
    my apologies, would you please point me to any previous material to read?
    I didn't see anything after searching through this group's archives.
    Thanks much in advance,
    Paul
    Paul Hodgetts -- Principal Consultant
    Agile Logic -- www.agilelogic.com
    Consulting, Coaching, Training -- On-Site & Out-Sourced Development
    Java, J2EE, C++, OOA/D -- Agile Methods/XP/Scrum, Use Cases, UI/IA

    The one draw back to this is you have to go all the way back to ant and the
    build system to make changes. You really want these env variables to be
    late binding.
    cheers
    mbg
    "Sai S Prasad" <[email protected]> wrote in message
    news:[email protected]...
    >
    Paul,
    I have a similar situation in our project and I don't create ear filesspecific
    to the environment. I do the following:
    1) Create .properties file for every environment with the same attributename
    but different values in it. For example, I have phoneix.properties.NT,phoenix.properties.DEV,
    phoenix.properties.QA, phoenix.properties.PROD.
    2) Use Ant to compile, package and deploy the ear file
    I have a .bat file in NT and .sh for Solaris that in turn calls theant.bat or
    ant.sh respectively. For the wrapper batch file or shell script, you canpass
    the name of the environment. The wrapper batch file will copy theappropriate
    properties file to "phonenix.properties". In the ant build.xml, I alwaysrefer
    to phonenix.properties which is available all the time depending on theenvironment.
    >
    It works great and I can't think of any other flexible way. Hope thathelps.
    >
    Paul Hodgetts <[email protected]> wrote:
    We have some server-specific properties that vary for each server. We'd
    like to have these properties collected together in their own properties
    file (either .properties or .xml is fine).
    What is the best-practices way to package and deploy an application (as
    an
    ear file), where each server needs some specific properties?
    We'd kind of like to have the server-specific properties file be stored
    external to the ear on the server itself, so that the production folks
    can
    configure each server's properties at the server. But it appears that
    an
    application can't access a file external to the ear, or at least we can't
    figure out the magic to do it. If there is a way to do this, please
    let me
    know how.
    Or do we have to build a unique ear for each server? This is possible,
    of
    course, but we'd prefer to build one deployment package (ear), and then
    ship that off to each server that is already configured for its specific
    environment. We have some audit requirements where we need to ensure
    that
    an ear that has been tested by QA is the very same ear that has been
    deployed, but if we have to build one for each server, this is not
    possible.
    Any help or pointers would be most appreciated. If this is an old issue,
    my apologies, would you please point me to any previous material to read?
    I didn't see anything after searching through this group's archives.
    Thanks much in advance,
    Paul
    Paul Hodgetts -- Principal Consultant
    Agile Logic -- www.agilelogic.com
    Consulting, Coaching, Training -- On-Site & Out-Sourced Development
    Java, J2EE, C++, OOA/D -- Agile Methods/XP/Scrum, Use Cases, UI/IA

  • Best way to find and copy files

    If i have a list of 2000 file names and want to find:
    if they exist in folder x
    then copy to folder y
    else
    output an error messege to txt file.
    What would the most efficient way to do this be? So far i've used listFiles() and put a >HUGE< directory listing into an Array. Then I did a comparison for each file name in the list against the array. I know this cant be the most efficient way. I posted earlier in the board but for some reason NO one answered. Can anyone suggest and easier way to do this? and what is the best way to copy files in java? opening a bufferwriter etc? Essectially, im doing a restore from multiple backup directories to the original directory. Please help me if you can take the time.
    Thank you,
    jon

    If i have a list of 2000 file names and want to
    find:
    if they exist in folder x
    then copy to folder y
    else
    output an error messege to txt file.
    What would the most efficient way to do this be?In a loop just read and write each file. If it does not exist, print an error.
    So far i've used listFiles() and put a >HUGE< directory listing into an Array. A directory with a million entries is a HUGE directory, I guess you only have a few thousand.
    I wouldn't bother reading the files into memory, you only need 2000 of them.
    Then I did a comparison for each file name in the list against the array. The OS will do this for you when you try to open the file, which you will have to do anyway to copy it.
    I know this cant be the most efficient way. More efficient way, don't do it at all.
    I posted earlier in the board but for some reason NO one answered. Perhaps the problem seemed too obvious.
    Can anyone suggest and easier way to do this?
    and what is the best way to copy files in java? Copy one at a time.
    opening a bufferwriter etc? Read a block of say 64K at a time. No buffers required.
    Essectially, im
    doing a restore from multiple backup directories to
    the original directory. Please help me if you can
    take the time.If you are recovering from a backup, the most important thing is ensuring the data is correct and valid, speed is less important. (It is no good if it is fast but corrupt)
    Coping 2000 files is going to be only as fast as your drive(s) can handle. How you copy the file is less important.

  • Is FOP the best way to create PDFs in java?

    hi,
    Is using FOP the best way to create PDFs in Java? I played with it for a while and it looks really cool.
    I think FOP is more flexible than iText since it uses XML and XSL to generate PDF files. In iText, you probably will have to hard code all the styles and layouts in java.
    Any other thoughts?

    We have a commercial alternative to FOP that might do the job - our Report Generator at http://big.faceless.org/products/report can take XML documents and convert them to PDF. Like FOP it uses CSS2, but instead of the XSL-FO tags it uses basically the same tags as HTML. There's a free trial download available so you can give it a try and see if it fits your needs.
    Cheers... Mike
    Mike Bremford - CTO mike(at)big.faceless.org
    Big Faceless Organization http://big.faceless.org

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • What is the best way to scan and sort old photos in iPhoto

    What is the best way to scan and sort old photos in iPhoto?  They do not have digital dates.

    Hey Chicago Sue,
    Once you scan them and have them on your desktop. You should use Automator and assign the common IPTC tags to the images, so that when you do import them into iPhoto, they get recorded.
    Here is an example of an action in Automator:

  • How is the best way to backup and organize Adobe layered .PSD files on iMac OSX maverick?

    How is the best way to organize and backup Adobe layered PSD files on iMac desktop OSX maverick?
    I lost all my Adobe Photoshop files + everything else on my IMAC when it crashed. They reinstalled Operating System.  But now i must install programs such as MS Word & Adobe indesign suite.
    Please help me determine what is the bestway to backup Adobe layered  PSD files? I believe these are my choices to be assured this doesn't ever hapen again. Please comment.
    Buy Apple Airport Time capsule $280.  But I am not sure if it can store PSD layers. Can it or do you have to have Apple Apperture  software to act be sure layers are saved
    I had had trouble getting Adobe Cloud to sync to save files and so just trusted my computer to not ever crash.  Any hints on this procedure
    Are there any hints on PhotoShop image organization for a current IMac usser ?
    Please help.
    Teann  ucreateit

    My backup plan is to use Time Machine to make a backup to an external disk drive plus I also do a clone of my system disk. So far between the bootable clone and the Time Machine backup this plan has covered all of my needs.
    Allan

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • What is the best way to secure and harden a Macbook Pro against unwanted surveillance?

    What is the best way to secure and harden a Macbook Pro against unwanted surveillance? Tor, VPN, Little Snitch, etc. This would be for that latest version of Mavericks.

    djbabybokchoy wrote:
    Nothing specific, just speaking in general. Ex-wives, governments, bad guys...anyone really. I'm just looking to make my Mac a bit more private and secure, especially when on public networks.
    Governments and ex's will/may have recourse to the legal process (or in the case of the Gov they can choose to ignore the legal system if they feel like it) when they want to see something of yours, good luck hardening your Mac against that. The best way to avoid the possibility of snooping over public networks is to avoid them but if you can't then Kappy's suggestion will help.
    Strong passwords (everywhere) and don't use the same password in multiple locations.
    If you really want to secure your home wireless use Mac address connection authentication, do not allow unknown Mac addresses to connect. It's much stronger than a WPA password alone.

  • What is the best way to connect macbook running sling adapter to the tv

    what is the best way to connect macbook running slig adapter content to the tv

    Since you posted in the Thunderbolt Display Community, I am guessing you are attempting to connect a MacBook Air to a Thunderbolt Display, but since you tagged projector, it makes me doubt my assumption. Can you provide some more details on what you are trying to connecto your MacBook Air to?

  • How to Set up the  variables and others to compile and Run Java Programs

    Hello,
    I have just downloaded the jdk1.6.0_07 and jre1.6.0_07 and installed it in C:\Program files\Java in my Windows XP ,So please tell me how to sett up the enviroment variables etc to compile and run Java Programs from Command Prompt.
    thanks

    To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:
    1. Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
    2. Click Advanced > Environment Variables.
    3. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
    C:\Program Files\Java\jdk1.6.0_<version>\bin

  • How to compile and run java files on a mac using command line?

    can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard

    What do you mean by "where to put them" ? What do you want to put anywhere ?
    Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
    Edited by: Michael_Knight on Aug 31, 2008 4:23 AM

Maybe you are looking for

  • Object selection manager

    is there any object manager that lists down all the objects present on a page or document? this often gets useful while making complex selections.

  • Transaction DeadLock Error

    Hi,    I am trying to execute a transaction in WorkBench and it gives me an Error "com.sap.xmii.illuminator.logging.LHException:com.microsoft.sqlserver.jdbc.SQLServerException:Transaction (Process ID 62) was deadlocked on lock resources with another

  • Lightroom printing too dark

    Hi Apologies if I didn't find this topic on the forum. I am evaluating Lightroom to replace Photoshop Elements as an organiser and I really like the Library tools however I am struggling seriously to get printing right. All my prints come out dull an

  • Secure BAPI/RFC call

    Hi All, Iu2019m wondering if I can set up a secure connection between MII and ECC when I'm working with BAPI/RFC calls. I heard that MII supports the SAP proprietary interface called Secure Network Communication (SNC), but I donu2019t know if it is a

  • About progress bar and Photoshop

    I have been reading a lot about how to make a progress bar in photoshop (scripting) and my conclusion is that it is not worthy. The only way to make a progress bar is by using Palette window but Photoshop does not support it. If we use a dialog windo