Results 1 to 7 of 7
  1. #1
    analog999 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default Compiling to native exe

    This might sound stupid, but give me a break please. I just installed Eclipse and am pretty impressed with it. My last dev experience with Java was using Borland JBuilder9, and prior to that I always coded and compiled from a text editor.

    I'm curious if Eclipse offers an easy way to compile my java app to a windows executable (exe)?

    If its not easy, is there a way to do it within Eclipse or am I going to have to look at an alternative solution?

    Thanks in advance.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Why do you want to make a .exe? Why not just create a runnable jar file?
    If you insist on the .exe, there is no built functionality for that in Eclipse, however there are a few open source tools for that reachable via google.

  3. #3
    analog999 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default

    For ease of distribution, I want the app and all dependencies compiled into one exe.

    Thanks for the answer.

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    One of the greatest advantages of Java is platform independence. Using it for platform dependent tasks rather invalidates that advantage.

  5. #5
    analog999 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default

    I'm very aware of what benefits I get from using Java. Just because I'm shipping an exe to windows users doesn't mean I can't ship a jar to everyone else.

  6. #6
    vogella is offline Member
    Join Date
    Aug 2009
    Location
    Heidelberg
    Posts
    47
    Rep Power
    0

    Default

    Eclipse RCP applications are distributed with a .exe files.

    For details on Eclipse RCP please see here: Eclipse RCP - Tutorial

  7. #7
    dleskov is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default Convert Java to EXE - Why, When, When Not and How

    Do a Google search for "java to exe" - the first link points to my article with plenty of information and links to tools.

    (Sorry I cannot post the link here due to this forum rules)

Similar Threads

  1. Replies: 0
    Last Post: 03-30-2009, 07:18 PM
  2. Loading a library (for native methods)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-23-2007, 07:45 AM
  3. Defining a Native Method
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-23-2007, 07:44 AM
  4. Native SQL in hibernate
    By Felissa in forum JDBC
    Replies: 1
    Last Post: 07-06-2007, 05:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •