Tutorial or code sample in creating a .exe for windows

Hi all,
Can some kind soul guide me to a tutorial / materials / code sample in creating a .exe (for a java program) to run in windows ?
My intention is to create a .exe such that when it is clicked, the java program runs.
thanks a bundle.

Java in not intended to compile into system executables. IMO, you should not do this, let your application remain cross-platform. You can simply make an executable JAR file, which makes your application run with a double-click on any system which have a JRE installed.
Anyway, if you really want to help M$ solidify their work, search the forum. It has been asked and answered several times. You have two options:
1. Bundle a version of JRE with your application, and create an executable file which runs your application on the bundled JRE.
2. Use a native code compiler like ( http://www.excelsior-usa.com/jet.html ).
Also, try these:
http://www.dobysoft.com/products/nativej/
http://www.ej-technologies.com/products/exe4j/overview.html

Similar Messages

  • JTAPI tutorial and code samples??

    Hello guys!
    Please somebody could tell-me where can I download a tutorial and code samples to start my studies on Java Telephony?
    Or may could somebory send to me for [email protected] .
    Thanks a lot. God bless you all !
    bye bye.

    http://www.zurich.ibm.com/csc/distribsys/j323/jtapi-tutorial.pdf
    The above contains a simple tutorial. Also looking for tutorials if you get any let me
    know. email to nchirara at Gmail dot com.
    later
    you are what you think you are if you think you are what you are ?!

  • How to create recovery disk for windows 8.1 after update from windows 8.

    My laptop came with windows 8 and i have recovery discs for windows 8.
    Now i've updated to windows 8.1, so i want to creat recovery discs for windows 8.1.
     So in future when i use recovery discs i dont have to download windows 8.1 again.
    Please tell me if there is any way to do this.....

    As colakid posted, in Windows 8 the ability to create a recovery CD/DVD has gone. Your options are to:
    create a recovery USB; or
    create a recovery image.
    Recovery USB
    Colakid's post talks you through how to make a recovery USB: from control panel, choose Recovery, then Create a Recovery Drive, and follow the prompts.
    However, the 'recovery USB' can be a bit misleading. When the wizard starts, there is an option to 'copy the recovery partition from the PC to the recovery drive'. If you do not check this option, you will still need installation media to reset your PC.
    Since you have upgraded from Windows 8 to Windows 8.1, you will probably not be able to check this option, as it will be greyed out (like it is in the picture in Colakid's post).
    If you go ahead and create the USB anyway, you will be able to boot to it, but you won't be able to reinstall Windows unless you have the installation media (or possibly a system image, though I haven't tried that).
    Recovery image
    The recovery image is an image of your computer that Windows will use when you select the 'refresh my pc' option. You can create a recovery image using the recimg.exe tool.
    First, open an elevated command prompt (type cmd and press Ctrl + Shift + Enter).
    Next, create the recovery image by typing:
    recimg /createimage [path]
    Where [path] is the folder you want the image in, eg C:\Recovery. You cannot set the file name - it will always be called CustomRefresh.wim.
    Let it run its course. When it's done, you can check that it is the current recovery image by typing
    recimg /showcurrent
    It's important to keep in mind what a recovery image contains. It will have your Windows system files (in their current state), and the desktop apps you have installed (so it makes sense to do this after a fresh install of Windows). It will
    not backup any Metro apps or user files, because these are not deleted during a system refresh. If you want a complete backup of everything on your computer the way it is now, you should make take a complete system image (which
    can be done from the File History settings in control panel - at the bottom left there will be a 'System Backup Image' option - or you can do it using any other backup software like Ghost or Acronis).
    In my case, I created the recover image straight after upgrading to Windows and it was about 6 GB.
    Prepare/Create and register an recovery partition, so the option Copy the Recovery Partition becomes available in the recovery drive UI  application.
    In elevated command run> RECIMG -CREATEIMAGE C:\REFRESHIMAGE< 
    This will create a new custom.wim in a folder Refreshimage.
    Now lets get ready to register the path of the image, so our create recovery drive option(COPY THE RECOVERY PARTITION FROM THE PC TO THE RECOVERY DRIVE) becomes available.
    >  In the folder you created there will be a> custom.wim<
    change it to>INSTALL.wim<
    > Create a folder In Cd/directory using Elevated command> mkdir c:\Win8.1-Recovery,>
    Win81-Recovery<.
    > Copy the  INSTALL.WIM. Put in the Win81-recovery folder created.
    > Run in elevated commad>REAGENTC /SetOSImage /Path C:\Win81-Recovery\INSTALL.WIM /Index 1<
    Do not copy the arrows if using copy and paste, that is my way of pointing out lines of code
    Information provided by the link below, thanks Keith. I simplified the process for easy following and added my own tweak from trial and error for the install.
    blogs.technet.com/b/keithmayer/a···ive.aspx

  • Creating private apps for Windows

    Dear DPS Community
    I would like to create Windows App and distribute this app internally.
    I only found this information on Adobe's website:
    Creating private apps for Windows
    Microsoft has two requirements for enterprise deployment of Windows Store apps:
    The app's device must be joined to a domain.
    The certificate used to sign the .appx must be in the trusted list of certificates on the device.
    The .appxbundle file provided by DPS App Builder is signed for submission to Windows Store. For enterprise deployment, you might need to re-sign the .appxbundle and its contents with your own enterprise certificate. Contact your Adobe representative for more information. For distribution of the app file, use any supported Microsoft method. You can even use a simple command-line method.
    Where can I find further informations? Is there a companion guide for windows out there?
    Thanks for your help.
    - Cindy

    Microsoft’s guide for enterprise distribution of Windows Store apps is at http://technet.microsoft.com/en-us/library/hh852635.aspx. There's nothing special about DPS apps that makes them different from a distribution standpoint than any other Windows Store app, and the Microsoft guide is the go-to reference for how to do enterprise deployment of Store apps.
    Note that the DPS apps downloaded from App Builder are self-signed with an untrusted certificate. Most enterprises will likely have their own corporate certificate they’d prefer to use instead. To re-sign the DPS app:
    Unpack the bundle using makeappx
    makeappx.exe unbundle /p viewerpackage.appxbundle /d unpacked_directory
    makeappx.exe bundle /d unpacked_directory /p resigned_viewer_package.appxbundle
    signtool.exe sign /fd sha256 /f enterprisekey.pfx resigned_viewer_package.appxbundle
    Go into unpacked_directory
    Sign both .appx files using signtool
    signtool.exe sign /fd sha256 /f enterprisekey.pfx viewer_x86.appx
    signtool.exe sign /fd sha256 /f enterprisekey.pfx viewer_ARM.appx
    Re-pack the bundle using makeappx
    Sign the .appxbundle using signtoolsigntool.exe sign /fd sha256 /f enterprisekey.pfx resigned_viewer_package.appxbundle
      Neil

  • Error Code 8024200D while installing update KB3000850 for Windows 8.1

    Error Code 8024200D while installing update KB3000850 for Windows 8.1
    I have been prompted for the last 10 days to install the important update KB3000850 in my laptop, but the installation fails every time.
    Two days ago, on March the 12<sup>th</sup>, I installed 31 updates without any problem. What is wrong with this particular update?
    You will find below my dialogue with Microsoft Support Engineer, Mr Niranjan Manjhi, who referred me to you:
    Hi Michelle,
    Thank you for posting your query in Microsoft Community.
    I understand that you are unable to install the a specific update KB3000850. I will be happy to assist you with your query. Let me ask you;
    Is your computer connected to domain?
    Which security software is installed in the      computer?
    Do you remember making any specific change in the      computer prior to the issue?
    This November update rollup also includes all previous updates since the previous image update in April 2014 and this includes performance and reliability
    improvements.
    Cause:
    This issue occurs because a process keeps a file in the component store open. Therefore, the file cannot be deleted or overwritten. Let's try the methods below and
    check the status.
    Method 1: Depending on the architecture of your
    Windows 8.1 operating system, I would suggest you to install the following package first and then try installing the KB3000850.
    All supported x86-based versions of Windows 8.1: [link] Download the package now.
    All supported x64-based versions of Windows 8.1:
    [link] Download the package now. 
    Restart is required.
    Method 2:
    If the issue still persists, run the Windows Update Troubleshooter and check the status.
    Click to run
    [link] Windows Update Troubleshooter
    Also refer to:
    [link] Troubleshoot problems with installing updates
    Hope this information is helpful. Please feel free to reply in case you face any other issues with Windows in future.
    Regards,
    Niranjan Manjhi
    Dear Niranjan,
    Thank you for your answer.
    To answer your questions:
    1) Yes, my laptop is connected to the domain,
    2) My security software is McAfee Total Protection, the same I use for my PC running Windows 7 XP,
    3) I did not make any specific change to the laptop. It is true though that I run regularly McAfee´s QuickClean.
    In your answer, you suggested 2 methods for resolving the problem.
    I chose to apply first the second one, i.e. I ran once again the Windows Update Troubleshooter, which revealed again the following status:
    Potential Windows Update Database error detected Ox800F08F: Not fixed
    Windows Update components must be repaired: Fixed
    And a last information: Yesterday, McAfee´s Vulnerability Scanner was automatically activated, showing as "critical" the update in question ("important" according to Windows)!
    As for applying the first method you suggested, I will need the services of a professional, someone more IT literate than myself.
    Michelle
    Hi Michelle,
    Thank you for keeping us updated on the issue.
    Since the computer is connected to domain, I would request you to post your query in the TechNet forums as your question is beyond the scope of what
    is typically answered in this consumer forum and would be better suited for the IT Pro audience on TechNet.
    Please post your question in the link TechNet Forums.
    Regards,
    Niranjan Manjhi

    Hi there @Achintya-only
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I see that you are getting an error code, when you try to install Windows 8.1 from USB or DVD. I am happy to assist.
    Just to clarify, you are using a standalone Windows installation disk, you are not using a factory recovery image. Is that correct?
    Have you run the hardware diagnostics on your notebook? HP Notebook PCs - Testing for Hardware Failures (Windows 8)
    What operating system was on the system before, and have you made a set of recovery media, for your original factory installation?
    Please let me know what you find.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Dvd for adobe creative suite 5.5 web premium has set-up.exe for windows, but how to install on macbook?

    Hi,
    I have the dvd for adobe creative suite 5.5 web premium, I see a set-up.exe for windows, but how do I install this software on my macbook please?
    Thank you
    E

    You can't one way or the other. Serial numbers are platform specific and platform swaps only apply to current  versions, meaning you have to upgrade to CS6 and make the switch.
    Mylenium

  • Boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

    boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

    boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

  • If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    JDFitch wrote:
    Ok Great,
    Will installing Boot Camp drivers allow me to both read and write to the OS X Volume from windows?
    This is important as if it will it means i can make the windows partition a lot smaller and keep all my files on the OS X partition which would be preferable.
    Jon
    No, OSX will be read only (from Windows) and vice versa. (you can install 3rd party utilities on either or both partitions, to make read/write possible)

  • Need system32\AUDIODG.EXE for Windows 7

    Help - can anybody send me or make available for download a copy of system32\AUDIODG.EXE for Windows 7 SP1. I deleted mine some time ago and have found no way to get it back. "sfc /scannow" says it cannot restore it. Microsoft Fixit says my audio
    is fine, but it sure don't work without that file.
    Many thanks for any help.

    Here is a better forum for your problem. Not a development issue.
    -- pa

  • Creating unattend.xml for Windows 8

    I am trying to create a new unattend.xml file for Windows 8.1 
    Upgraded to MDT 2013 and ADK 8.1.
    MDT is failing to create an XML file. Tried using Windows System Image Manager and failing as well. The log states "1:43 PM : This application requires version 6.3.9600.16384 of the Windows ADK."
    When i am looking version of Windows System Image Manager, the version is 6.3.9600.16384.
    What am i missing?
    Thank you.

    The exe version is 6.3.9431.0. From WindowsBlue-ClientwithApps-64bit-English-X1899605 ISO. And MDT named is "Windows 8 Pro in Windows 8 Pro x64 install.wim" 
    And I upgraded the the deployment share.
    And a new Task sequence is created.
    I think task sequence is not the problem here as Windows
    System Image Manager is failing to create an xml file as well.
    Thank you,

  • How to create extra partitions for windows 7 after installing boot camp

    hello
    i am pretty new at imac so bare with me and i really need help.
    IMAC
    OS X version  10.9.5  ( i think its os X mavericks ??)
    iMac 21. inch  , Late 2013
    iMac model identifier  iMac 14,1
    i installed boot camp windows 7  and it works perfectly, after i tried to create two partition using disk utility  for windows 7 (ms-dos) format because i really want to separate my files on other partition instead of everything on Boot Camp drive.  after i restart choosing windows OS i cannot go back to windows 7.
    i hold option on the keyboard but does not show window 7 so i went back to Apple ox s , found my boot camp hd on the desktop with files in it.  checked boot camp assistance showing 
    " The startup disk must be formatted as a single Mac OS Extended (Journaled) volume or already partitioned by Boot Camp Assistant for installing Windows. "
    i read alot of article about but i don't seem to understand much about
    i understand alot of people created these kind of topics
    please if someone can help me solve this problem again
    i only want an apple os ,  boot camp for windows 7  and 2 extra partitions for storage  ,  my hard drive is 1TB
    thank you

    Last login: Mon Feb 16 16:11:46 on console
    YLFs-iMac:~ ylf$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            999.3 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *8.0 GB     disk1
       1:                 DOS_FAT_32 WININSTALL              8.0 GB     disk1s1
    YLFs-iMac:~ ylf$ diskutil cs list
    No CoreStorage logical volume groups found
    YLFs-iMac:~ ylf$ sudo gpt -vv -r show /dev/disk0
    Password:
    gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168
    gpt show: /dev/disk0: PMBR at sector 0
    gpt show: /dev/disk0: Pri GPT at sector 1
    gpt show: /dev/disk0: Sec GPT at sector 1953525167
           start        size  index  contents
               0           1         PMBR
               1           1         Pri GPT header
               2          32         Pri GPT table
              34           6        
              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
          409640  1951845952      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      1952255592     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      1953525128           7        
      1953525135          32         Sec GPT table
      1953525167           1         Sec GPT header
    YLFs-iMac:~ ylf$
    Also i do not have boot camp installed yet because like i said, it messed up my boot camp after i created the partition thats why i removed boot camp, right now i only have APPLE OS

  • Stand-Alone exe for Windows

    Hi -
    I would like to use Java to create executables that will run by themselves with their own icon in Windows 2000 prof. - preferably without any other software installed. I am learning Java but at this point I am confused by all the choices for compilers, interpreters, GUIs, IDEs, etc.
    Which of these elements and which versions will I need?
    Thanks,
    dppatt

    I don't think it's worth doing this. If all you want is a standalone installation that has an icon shortcut, you can do all of that with the JVM.
    1. Distribute the JRE in your application. Installs are for suckers. You don't need them. Create a subfolder in your application direcory and put the JRE you want to use in it.
    2. Write the java command to run your app using the jre from 1, don't just use java because you have no idea what the user has installed.
    3. Create a shortcut in windows. Right click, open properties. Select your icon. In the target, enter your java command but use javaw instead of Java.

  • How to create the recovery for windows 8

    Hello,
    I have windows 8 in my T430....I just wanted to know the detailed procedure for creating the recovery for it...
    Thanks 
    Harsh
    Solved!
    Go to Solution.

    Methodology to create Recovery Media and reload a Lenovo system with Microsoft Windows 8 preload
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • BC Assistant won't create single partition for Windows on four drive MacPro

    I have a Mac Pro with four HDs, and want to dedicate one of them to be a Windows disk.
    When I run Bootcamp assistant and select the intended windows disc, I have the options to partition or "Erase the Disk and Create a Single Partition for Windows".
    I select the Single partition option and continue, but the Bootcamp volume is not created. In Disk Utility it appears as an unmounted disk with name like disk4s2 or similar.
    If I select the partition option, it correctly creates an "Untitled" mac partition and a "Bootcamp" partition.
    I have repeated this with different hard drives and after zeroing out the intended disk.
    Thanks for any help.
    PS I have Softraid on my system, although neither my Boot drive or the intended windows drive are converted to Softraid format. The Softraid driver is installed on my boot drive. Do you think this might be the problem?

    Thanks Hatter,
    Thanks for the answer, which unfortunately isn't quite appropriate in my case, which I didn't lay out fully in the interest of brevity.
    My usual configuration is with a the bay 2 HD a dedicated Windows 7 whole disk installation, which works fine.
    I occasionally need to support my father with Vista problems. I used to have Vista on this bay 2 HD, and still have a Winclone image from then.
    My goal is to have a spare sled and slot in the Vista HD in when I need Vista. I don't want to start again installing etc.
    Since starting this thread, I decided to proceed with the Bootcamp assistant option which worked, ie to partition to an OSX and Windows partition, and make the OSX one as small as poss (5Gb) then delete that partition. I have restored the Winclone image, and all is working exactly as I want it, except I have lost 5gb. Not a big deal.

  • Creating Recovery DVDs for Windows 8.1

    I just bought the Lenovo C560 All-in-One and it came with Windows 8.1. I was able to use the One Key Recovery to create a backup file on my hard drive, that from what I've read appears to be the same as having a recovery disk. However, I'd also like to create the back up disks on DVDs incase for some reason something happens to the file saved on the hardrive.
    I open OneKey Recovery, Click on System Backup, Go to Back up to "Hard Disk or Removeable Hard Drive", then when I browse for a new location it will only display C:\ as the only option.
    Is it not possible to create back up DVD's for Windows 8.1?
    Also the Lenovo Solution Center is telling me to download Lenovo Rescue and Recovery, but it seems like that is only for Winows 7 and earlier. Do I need to download Rescue and Recovery or is OneKey Recovery what I need to use?
    I should also say, I've browsed through this form and Lenovo's support pages, but nothing I found seemed to be for systems that came with Windows 8.1. The posts I read all seemed to be about poeple who had upgraded to 8.1 from another OS.

    Windows 8 will allow you to make backups/system images: https://www.youtube.com/watch?v=UHjRZdL_kUs
    OKR will only recognized non-partitioned external HDDs 2 TB or less. If you have a 4 TB drive or a partitioned device then, OKR won't recognize the drive. 
    FYI: Trucrypt folder counts as a partition.
    You should only need the OKR system.

Maybe you are looking for