Change the java program in *.exe

how can i do to change my java program in a .exe file ? This could be useful if the user doesn't have the java runtime environment.

Hello
You can use third party softwares like
PJ2Exe or sumthing like that
search on google
Rohan

Similar Messages

  • Need to change the directory using the java program

    hi,
    can anyone give me the code to change the directory in the java program by using the system command.
    as in C where we use the system call system("cd");
    the same way how to do that in java. please help me with that!!!

    Please search the forums for "runtime.exec", there are dozens of examples posted.
    Although this may not do you any good, since changing the os's directory is not likely to change anything you're using in Java. What are you trying to do?

  • The Java Programming Language (Javac.exe, java.exe) source code.

    Where can I get the java programming language source code ?
    Ernest Keshi
    [email protected]

    Check the 'Downloads' dropdown menu here at the top navigation bar.

  • How to change the java control panel and the default java in windows.

    Hi,
    Please help on the above problem. I need the answer urgently.
    I have two java version 1.4 and 1.5. I first installed the java version 1.4.2_06 and then 1.5.0_19.Now the default java is 1.5.
    Now I want to chang the java settings to 1.4 by changing the envioronment variable (classpath,path,java_home)
    C:\Program Files\Java\jdk1.5.0_09;C:\j2sdk1.4.2_06
    C:\Program Files\Java\jdk1.5.0_09\lib;C:\j2sdk1.4.2_06\bin
    C:\Program Files\Java\jdk1.5.0_09\bin;C:\j2sdk1.4.2_06\bin
    But after setting these does not solve the problem. The java control panel which appears is the same what was appearing for java 1.5.
    I want to see the control panel for 1.4.2_06.
    Thanks for your help.
    Regards,
    Sarita

    sarita2320 wrote:
    ..Please help on the above problem. I need the answer urgently. ...Is it still urgent?
    When I opened your post and saw that line, I immediately moved it to the 'last in line' of a whole bunch of other stuff I did not have time to look at immediately. Now that all that other stuff that did not bore me with someone else's time constraints is out of the way/taken care of, I've returned to your post.

  • Running the Java program as service.

    Hi,
    I want to create have java program, which runs continously. This would hit check a table in Database for any new records and if there is anything it would post a message to another service. It would keep track of how many messages were posted and how many were completed at any point of time.I should have the ability to stop this service. When a stop sequence is initiated, it should wait till all the messages are processed and shutdown. I am looking for inputs on how to invoke the java program as service and the second part (stopping the service). I dont want to Java wrapper service or commons daemon api. I am on JDK 1.4.2
    Thanks in Advance.
    Regards,
    Arul.

    Do you want to write a daemon? I dont think you can do it without some explicit OS support..
    Well, lemme know if you find a way

  • How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)?

    How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)? When I do what Apple said and go to a Pages file in finder and select "get info" then select "Pages 4.3" and "change all" it just defaults to the new one even though I'd selected the old one. Do I need to completely uninstall the new version of Pages or is there another work around because the new version of Pages comes dreadfully short of the features I need that are included in the old one?

    Eric Kraft wrote:
    HOWEVER, if you modified a document in 5.0, 4.3 can't open it. You'll have to use Time Machine to replace the modified version with an earlier version that was last modified in 4.3.
    Actually there is a workaround.
    If you open the file in Pages 5, it can then be exported on Pages 0.9 format to another folder. I had to do this as the document was only in iCloud and couldn't be recoverd by Time Machine.
    Worked for me!

  • When I open iTunes, I get a message that "iTunes has stopped working".  I've tried reinstalling itunes, creating a new user file, changing the startup programs, and am having no success in getting iTunes to stay open. Any "fixes" for this problem?

    When I open ITunes, I get a message that "iTunes has stopped working".  I have tried reinstalling iTunes, creating a new user file, changing the startup programs in accordance with articles in iTunes troubleshooting, but am having no success in getting iTunes to stay open.  Any fixes for this problem?

     

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

  • When I try to change the default program for opening a specific file type The "Always use the selected program to open this type of file" does not highlight.

    I can not therefore change the default program. How can I get this to highlight?

    Hi Swansong,
    It is also possible to [[Set how Firefox handles different types of files]]

  • How to change the java cup icon for all the JFrames?

    Hi,
    I would like to know if I can change the Java cup defult icon that appears in the upper left corner of the JFrames in one time, instead of setting the JFrame's icon in every created JFrame.
    Regards,
    Gabriel

    Then don't set the parent to null. If you don't want a parent, just set it to
    JOptionPane.showMessage(new IconFrame(), ...
    [\code]
    where IconFrame extends JFrame and sets the icon in it's constructor.  The optionpane will then use the icon from it's parent frame.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Change the print program from the Transaction F150

    Hi all.
    Does somebody can help how to change the print program in the transaction F150?.
    I have copied the F150_dunn_01 (form) and the SAPLF150 (printprogram)
    This transaction calls the form F150_dunn_01 I want to know how to assign to this transaction my print program ZSAPLF150
    Thanks and regards.

    Hi Srinivas Adavi.
    Ok, I have taken this path...
    IMG-->Financial Accounting
         -->Accounts Receivable and Accounts Payable
           -->Business Transactions
             -->Dunning
               -->Printout
    In this, appears:
    Define Dunning Forms (with SAPScript)
    Define Dunning Forms (with SAP Smart Forms)
    Assign Dunning Forms
    Define Sender Details for Dunning Forms
    Develop Enhancements for the Dunning Print Program
    Attached Payment Media
       -->And So On.
    What are then next steps to make the configutation; sorry I'm newbe jeje

  • How to abend the java program -if the condition fails

    Hi
    My program counts the number of headers in the input file and if the condition fails to satisfy the number we expected , it should comeout of the java program . Is their a specific statement to abend the program in java .
    if(columnCount == 5)
    // do all the steps
    else
    //abend the program }
    how to do that .... is it System.exit(1) or anything else
    thanks..
    Edited by: 1sai on Apr 23, 2009 6:52 PM

    BigDaddyLoveHandles wrote:
    It must have been that the [card sorters|http://en.wikipedia.org/wiki/Card_sorter] were making such a ruckus that I didn't hear it. The model 84 -- 2,000 cards a minute? -- dämn, that's sweet.
    I remember the first time I saw a card sorter in action, thinking it was kind of cool.
    I also think the teacher used it to describe some sorting algorithm, maybe radix sort??
    You've got me thinking, that might be part of the problem with computing today, not enough moving parts. No big tape drives spinning and oscillating. And few if any line printers anymore. Now there's an interesting piece of equipment.

  • How to invoke the .bat(batch file ) from the java program

    i want to run some commands when i run one java program.
    I wrote those dos commands on the batch file and i want to include the bat file in the java program so that i can execute the bat file when i run the java program.
    tell me the way that i can run my bat file inside the java program.

    i tried this :
    a .bat file named test.bat, with this code : copy test.bat test2.bat
    a java class, Test.class, in the same directory
    public class Test {
         public static void main(String[] args) {
              try {           
                   Runtime rt = Runtime.getRuntime();
                   Process proc = rt.exec("cmd /c test.bat");
                   proc.waitFor();
                   int exitVal = proc.exitValue();
                   System.out.println("Process exitValue: " + exitVal);
              catch (Throwable t) {
                   t.printStackTrace();
    }

  • Is it possible to run the java program without main?

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    Ramya

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    RamyaWhy do you ask? It sounds like an odd question. Your program can be an applet and it doesn't need a main method in that case.
    Kaj

  • Cannot change the default program to open a specific file type.

    Whenever I attempt to change the default program to open a file, it automatically reverts to whatever was selected previously.
    I work with a lot of .ai files and my default Illustrator version is set to Creative Cloud. CC crashes constatnly on my machine, however CS6 runs smooth as silk. I'd like to be able to double click an .ai file and have it open in CS6, not CC. When I right click > Get Info > Open with and change it, it reverts as soon as I click "Change all..."
    This isn't a huge deal... only takes a few seconds out of my day but it isn't something I should have to worry about.
    Any suggestions?
    Thanks in advance.

    I just successfully changed on my .docx to open into Pages. I went the same route that you mentioned... Right click---> Get Info---> Open With and changed it to Pages. When I clicked Change All, a dialog came up asking me if I am sure that I want to change all of my .docx to open in Pages. I click accept and tested it. Now my .docx open in Pages.
    So my question is, is your issue just applying to .ai files? Or is affecting other files, such as .docx? If it's just affecting .ai files, then there maybe an underlying reason for that. And it may not be able to be changed.
    Just a thought.
    KOT

Maybe you are looking for