Q&A for How to Create an Executable File from Eclipse

Return to Full Article

Search
Add New Question
  • Question
    What should I do if the executable file doesn't open?
    Community Answer
    Check if you exported JAR properly, defined all the paths, and launched configuration according to your main class. The JAR export might be damaged, in which case your .exe file wouldn't work.
  • Question
    Is it possible to wrap an appropriate version of JRE with the executable so that the end user doesn't need any JRE installed to run the program?
    Community Answer
    Yes. In Launch4j, under the JRE tab, it's the first field at the top.
  • Question
    Where should I get a .ico file?
    Community Answer
    You can create a .ico file yourself with SIB icon editor, or download from the web.
  • Question
    When I try to launch, it just loads without doing anything. What should I do?
    Community Answer
    Check your version of Eclipse. If your version has a Package Explorer folder, then export your project to the run-able JAR file from the "Package Explorer" folder, not the "Project Explorer" folder. After that, follow all other steps as outlined in this article.
  • Question
    Does every subclass branching off from the main get included too?
    Community Answer
    Everything inside the project folder which you are extracting is included. Classes outside the folder only get a reference if they are linked with your content.
  • Question
    What do I do if I have created an .exe JAR file, but it is not showing an icon image?
    Community Answer
    Make sure your icon dimensions are 256x256 and that the file format is .ico according to the instructions above. However, you will probably have to export JAR to .exe again.
  • Question
    How do I save an executable file from Eclipse as a jar file?
    Community Answer
    In Project Explorer, right click on the project that you want to convert. Then click on Export and look out for JAR File in the JAVA Folder.
  • Question
    How do I do the same thing for a Mac, which doesn't use exe files?
    Community Answer
    Use keyboard shortcuts. Many Mac keyboard combinations use the Command (⌘) key. Learn more keys and keyboard shortcuts. Cut - Command-X. Copy - Command-C. Paste - Command-V. Undo - Command-Z. Print - Command-P. Close window - Command-W. Switch apps - Command-Tab. Quit app - Command-Q. Forward delete - Fn-Delete or Find files - Command–Space bar. Force quit app - Option-Command-Esc. Take screenshot - Shift-Command-3.
Ask a Question

      Return to Full Article