Results 1 to 5 of 5

Thread: How to make a java programe run whiout JBiulder or JDK

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    china(ÖØÇì)
    Posts
    60

    Unhappy How to make a java programe run whiout JBiulder or JDK

    How to make a java programe run whiout JBiulder or JDK.
    for examepl make it to a .exe document.
    I am a vb fine,
    but my English was poor.

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    As long as the runtime is installed then you can run your program. Same goes with Visual Basic .Net untill the runtime is integrated into the windows OS.

  3. #3
    Hyperactive Member Filter300's Avatar
    Join Date
    Aug 2001
    Posts
    413
    Suns Java compiler can not make EXE's but there are other compilers out there than can do this but that completly defeats the purpose of using java.. if you want to make exe's use C++

  4. #4
    Member
    Join Date
    Apr 2001
    Location
    Hamilton, ON, Canada
    Posts
    43
    excelsior JET can compile your java program into a native windows .exe file

    http://www.excelsior-usa.com/jet.html

    It also converts the entire java API into native .dll files which your .exe file will need inorder to run.

    You could also write a launcher in a native language which starts the JVM and runs your program. Or you could use a batch file (windows) or script (unix) to run your program. They also come in handy if you need to repeatedly compile numberous source files. Or you could put your .class files in a jar archive. You can run programs in jar files by double clicking in windows.

  5. #5
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    there also are programs that will write a "Wrapper" for your java files so that when you double click the exe all it does it call the jvm and pass the class location, tis makes it easier to use while remaining cross-platform (except for the wrapper of course)
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

Posting Permissions

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



Click Here to Expand Forum to Full Width