Results 1 to 9 of 9

Thread: Java .exe file

  1. #1
    mohammad8065 is offline Member
    Join Date
    Dec 2008
    Posts
    4
    Rep Power
    0

    Default Java .exe file

    hello!
    I wrote a program and I want to make .exe file from my project.
    what i have to do?
    please help me.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    First you would probably be explain to tell us why you'd want to hamper your program in this way. If you make it an exe, you're limiting it to running on Windows-based machines only. Most here create Jars files when desiring to deploy their programs. You can find out about Jars here: Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    are you absolutely positively sure that he wants an exe file or could he have said an executable file or even class files? It would be most unusual for a Java programming instructor to request this, most unusual.

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    I can guarantee that what he wants is both the source and the "compiled" program. Compile it and package it into a jar. If your instructor actually wants a native executable, then find another course, as the instructor has his priorities backwards, or simply doesn't have a clue what he's talking about.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    There are several non-standard utilities for creating exe files from java. Your best bet is to google them and test them out.

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Whatever, interpret what he said however you want to. I can guarantee you're wrong, but oh, well, it's your grade.

  7. #7
    mohammad8065 is offline Member
    Join Date
    Dec 2008
    Posts
    4
    Rep Power
    0

    Default

    Anyway...Thanks all of you that replied me.
    Last edited by mohammad8065; 01-18-2009 at 11:47 PM.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    If you want to create *.exe file for your Java application use JSmooth. It's an open source application. And there are several available, just search on Google.

    But actually this is a stupid thing, creating *.exe for Java application, as other members commenting.


  9. #9
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Do exactly what your instructor said, but talk to them first, to make sure understand exactly what they want.

Similar Threads

  1. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 10:57 AM
  2. Replies: 7
    Last Post: 05-23-2008, 04:46 AM
  3. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  4. Converting text file(.txt) to JPG file(.jpg) in java
    By javadeveloper in forum Advanced Java
    Replies: 0
    Last Post: 11-09-2007, 05:22 PM
  5. exe File Java
    By cachi in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 02:50 PM

Posting Permissions

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