how to create .exe file in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhavalarana
    New Member
    • Mar 2007
    • 1

    how to create .exe file in java

    please send me one example of java .exe file with command

    i heared name jar file but how to create it i dont know

    send me a detail about it with example
  • DeMan
    Top Contributor
    • Nov 2006
    • 1799

    #2
    You can't (directly) create an exe file from java (as far as I know - It sort of defeats the whole principle of Java). However I think programs to compile java into exe format are available, and shoudl be easily found on the net (a simple search for "java exe" immediately reveals some options available)

    Comment

    • hirak1984
      Contributor
      • Jan 2007
      • 316

      #3
      java dont create exe files but the jar file is created by java which does the same as exe.

      to make a jar file out of your project,there are simple commands you will find in any standard book
      if you are using any editor like eclipse,the process is simplified by the gui they have included.
      Originally posted by dhavalarana
      please send me one example of java .exe file with command

      i heared name jar file but how to create it i dont know

      send me a detail about it with example

      Comment

      • DeMan
        Top Contributor
        • Nov 2006
        • 1799

        #4
        I thought a jar file simply bundles several classes together. This has some advantages, including ease of portability (you only need to move one file) and security (the program is harder to get to because it is packaged into the archive).

        IU don't think that this makes it anything like an exe file. My understanding, is that exe comes from EXEcutable, which implies a program that will run as a standalone. A jar (Java ARchive) fule, on the other hand, still requires java to run (which always causes the arguments on how portable java actually is.....but we'll leave that for now).

        Comment

        • hirak1984
          Contributor
          • Jan 2007
          • 316

          #5
          ya DeMan you are correct.What I meant was jar file run as a standalone application provided you have java installed.It is a limitation.

          But so is the limitation of exe.
          I dont think exe will run in Linux environment.It needs windows right?

          Originally posted by DeMan
          I thought a jar file simply bundles several classes together. This has some advantages, including ease of portability (you only need to move one file) and security (the program is harder to get to because it is packaged into the archive).

          IU don't think that this makes it anything like an exe file. My understanding, is that exe comes from EXEcutable, which implies a program that will run as a standalone. A jar (Java ARchive) fule, on the other hand, still requires java to run (which always causes the arguments on how portable java actually is.....but we'll leave that for now).

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            To run .jars one needs the JRE to be installed on the machine.

            Comment

            • DeMan
              Top Contributor
              • Nov 2006
              • 1799

              #7
              Originally posted by hirak1984
              But so is the limitation of exe.
              I dont think exe will run in Linux environment.It needs windows right?
              I see what you mean....

              Comment

              Working...