Results 1 to 4 of 4

Thread: Can I create .exe file in java?

  1. #1
    Join Date
    Aug 2009
    Posts
    12

    Can I create .exe file in java?

    Hi,

    I am not sure about the , .exe files & i want to know how can I create an .exe file in java & execute it or If I can execute an .exe file stored on my hdd?

    Please help me with .exe files. I know these are executable files but want to know how to create them & execute them in java?

  2. #2
    Join Date
    Apr 2008
    Posts
    43

    Re: Can I create .exe file in java?

    Well one thing that you must know is that Java is platform independent language.
    The exe files are executable files which run on microsoft windows whioch do not require compilers or interpreters for execution.
    Its possible to create an exe file in java but its not a good idea & not recommended.

  3. #3
    Join Date
    May 2008
    Posts
    33

    Re: Can I create .exe file in java?

    Hi I think you need to read this :
    Convert Java to EXE -
    How do I make an .EXE file from my Java application
    Need help converting jar to exe
    Is it possible to create a Windows executable using Java

    Please go through this too.
    Packaging Programs in JAR Files

  4. #4
    Join Date
    May 2008
    Posts
    32

    Re: Can I create .exe file in java?

    You can't make exe file of the Java class, I heard there are some third party tools which may help you but its against javas fundamental rule 'write once execute anywhere',
    but u can create executable jar of java file , can do like this
    jar -cf Customer.jar META-INF -C C:\build files
    Customer.jar is what is going to create & meta-inf directory contains your dd files and files is the file which u need to be get it in to jar.

Similar Threads

  1. Replies: 1
    Last Post: 21-03-2013, 03:52 PM
  2. Windows 7: Unable to create file with File system error (65535)
    By TheHibiscus in forum Operating Systems
    Replies: 4
    Last Post: 23-01-2011, 07:07 PM
  3. Create Zip File in Java
    By Kushan in forum Software Development
    Replies: 3
    Last Post: 08-12-2009, 01:04 PM
  4. How to create XML file in Java
    By Suzane in forum Software Development
    Replies: 3
    Last Post: 27-04-2009, 06:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,643,439.37063 seconds with 16 queries